A friend of mine installed mediawiki on a location line: http://somedomain.com/bla/new/instalati … ki-1.1.16/
He thought he could simply move the instalation folder ![]()
![]()
![]()
I don't use mediawiki and I don't know anything about the way is build. Can anybody tell me where is the base url defined so I cn go there and change it for him before he just goes and change every single page by hand like he already talked about?
thanks
Offline
In LocalSettings.php look for this
$wgScriptPath = "/wiki/whatever";
Last edited by SimonK (2007-07-20 22:56:04)
Offline
Mediawiki requires "hacking" to install, setup, configure, and reconfigure it, so, see also
http://www.mediawiki.org/wiki/Manual:Moving_a_wiki
and
http://www.mediawiki.org/wiki/Manual_talk:Moving_a_wiki
... which my be cryptic but is at least a reference. Once you have successful experience PLEASE go to these links and share your information for others to use - fix the contents (copied below) - it's a wiki, after all - EDIT EVERY PAGE!
To quote today:
Manual:Moving a wiki
From http://www.MediaWiki.org
It's possible to move or duplicate a wiki running the MediaWiki software to another server. This is often needed when moving to a new web host or domain, or both.
Contents
* 1 Versions and upgrading
* 2 Overview
* 3 Backup
* 4 Re-create the database, user and permissions
* 5 Import the database backup
o 5.1 Possible methods
* 6 Import the MediaWiki files
o 6.1 Notes
* 7 Check the configuration file
* 8 Test
1 Versions and upgrading
The instructions on this page should apply more or less evenly to any given version of MediaWiki. Ensure, prior to moving, that any upgrading of the software and database schema is done. You should avoid moving the database from an older version of the software into a newer version; this will not work.
2 Overview
1. Back up the database
2. Back up the MediaWiki files
3. Re-create the database, user and permissions
4. Import the database backup
5. Import the MediaWiki files
6. Check the configuration file
7. Test
3 Backup
To move or copy your wiki, you need of course to make a copy (i.e. a backup). You should copy at least the following:
* the wiki's content, from the database
* images and other media files (the contents of the images directory)
* configuration files; LocalSettings.php and AdminSettings.php (if present)
* MediaWiki's program files, including all skins and extensions
See Manual:Backing up a wiki for instructions.
4 Re-create the database, user and permissions
On the destination server, create a new MySQL database and a user, and grant that user permissions on the database. SELECT, INSERT, UPDATE and DELETE permissions should suffice. You may need to consult the MySQL documentation, your hosting provider's control panel documentation, or the documentation of any other utilities you are using for information on how to do this.
Note: It doesn't matter if the database doesn't have the same name; indeed, in a commercial hosting environment, where database names are usually prefixed with a hosting account username, a different database name is almost guaranteed. In addition, the username can differ, as can that user's password. You will have to adjust the LocalSettings.php file on the new location accordingly.
5 Import the database backup
The next step is to import the database backup you made earlier. This will create the tables in the database and populate them with data. Following this point, you will have a duplicate of the database on the other server. Again, according to the means you are using to manage your MySQL databases, the process for this varies. You may need to upload the .sql script file from earlier to your server via FTP, or this may be done for you by the utilities you are using. Consult the documentation to find out how it's done.
After importing, which takes a variable amount of time, depending upon the number of pages, users, edits, etc. in your wiki, you should have circa 20-25 tables in the new database.
Possible methods
Possible methods for performing the import include:
* mysqldump
* phpMyAdmin or a similar tool
* The command-line console, mysql
6 Import the MediaWiki files
The final "large" step in the moving process is to upload/copy the MediaWiki files to the destination server. If you followed the instructions above, and backed up the entire directory, this will include the images and extensions directories, plus custom skins, etc. and the configuration file.
If you backed up only portions of the directory, e.g. images, extensions, etc. then you will need to first upload/copy a fresh install of the MediaWiki files, then transfer the backed-up directories and files into the correct locations in the new filesystem.
Notes
* If following the latter process, ensure that your "fresh install" consists of the same version of MediaWiki as the old one did
* Check that the upload directory has the correct permissions set if using uploads; it needs to be writable by the web server
7 Check the configuration file
The final, real task is to tweak the LocalSettings.php file. Certain entries in this will almost undoubtedly require changing, and you may need to change the database connection information as well.
Check the following configuration options:
$IP Needs to be correct for the paths on the new server
$wgScriptPath Needs to be correct for the path on the new server
$wgDBserver Check the database server name is correct
$wgDBname This might have changed in a shared hosting environment
$wgDBuser This might have changed in a shared hosting environment
$wgDBpassword Check this is correct for the new user
You might also need to check the paths to diff3, ImageMagick, etc.
8 Test
At this point, attempt to access the wiki on the new server and use it. Log in as a sysop and a regular user and check that viewing, creating and editing pages and uploading files still works. You will need to fix any problems reported either by PHP or MediaWiki itself.
--
PLEASE report back here and let us know how it works.
Offline
You are not logged in.