The configuration file can be found in the /opt/bitnami/mediawiki directory. If asked for the “upgrade key”, open the MediaWiki configuration file, LocalSettings.php, and look for the key assigned to $wgUpgradeKey. Follow the instructions on the screen to upgrade it. The existing installation should be detected. For example, if your wiki is at /mediawiki/Main_Page, then navigate to /mediawiki/mw-config/. Always backup before performing database maintenance. In that case you should use the command-line interface (not from the web). NOTE: If your database is already large in size and in high production usage, then you should not be using the Web updater, as the update process might time out when the script’s maximum execution time is reached. Otherwise they won’t be touched by the update script. If you use a shared database, you should pass the -doshared parameter if you want the shared tables to be updated. MediaWiki will inspect the existing schema and update it to work with the new code, adding tables and columns as needed. Update the database schema: $ php maintenance/update.php Navigate to the MediaWiki directory: $ cd /opt/bitnami/mediawiki Make sure that your web server (such as Apache) and your database sever (such as MySQL) are running.įrom the command line follow these steps: To get it working, I need the older version of WAMP stack. This also prevents the application to run on the current stack. There are couple of changes in Apache, which were not relevant when the application was on that stack, but now are. Upgrading from the command line is recommended, since this reduces the risk of the upgrade process being interrupted by a timeout or connection reset. I have an application that works on a previous version of the WAMP stack. You can upgrade the MediaWiki database in two ways: from the command line or from the web browser (since version 1.17). If you have installed plugins in the previous version, copy the folders from the vendor/plugins directory into the new installation directory, into the plugins directory. Restore the new database: $ mysql -u root -p bitnami_mediawiki < backup.sqlĬopy the MediaWiki /opt/bitnami/mediawiki/files directory from the old installation to the new one. Mysql> create database bitnami_mediawiki Remove the previous database and create a new one: $ mysql -u root -p $ sudo /opt/bitnami/ctlscript.sh start mysql Stop all servers and start only MySQL: $ sudo /opt/bitnami/ctlscript.sh stop Launch a new MediaWiki cloud server instance.Ĭopy the database backup to the new server. To migrate the database from an old version to a new one, follow these steps: Migrate the database from an old version to a new one If you have important data, it is advisable that you create and try to restore a backup to ensure that everything works properly. It is strongly recommended that you create a backup before starting the update process.
0 Comments
Leave a Reply. |