Manual talk:Moving a wiki
Need more detailsEdit
The instructions don't help, they just refer to other places... annoying indeed. 184.108.40.206 18:57, 17 February 2007 (UTC)
Can I import pages from a moinmoin wiki?Edit
I have a little wiki with just one user (me) that I created with moinmoin. I'd like to import the content to my new MediaWiki. How can I do it?
Changing the folder's name post-installEdit
Hi, this is my first post here, I will try to keep a high SNR.
@Before: a freshly installed MediaWiki 1.11 (upgraded from 1.6), labelled mediawiki-1.11.0 @after: a non-working MediaWiki 1.11 simply labelled mediawiki.
Removing the version number from the folder name broek the wiki. I modified LocalSetting.php (the $wgScriptPath variable) but it still does not work.
Here is the text I get:
Warning: require_once(/srv/d_latapie/www/www.latapie.name/htdocs/mediawiki-1.11.0/includes/ProfilerStub.php) [function.require-once]: failed to open stream: No such file or directory in /srv/d_latapie/www/www.latapie.name/htdocs/mediawiki-1.11.0/StartProfiler.php on line 3 Fatal error: require_once() [function.require]: Failed opening required '/srv/d_latapie/www/www.latapie.name/htdocs/mediawiki-1.11.0/includes/ProfilerStub.php' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/d_latapie/www/www.latapie.name/htdocs/mediawiki-1.11.0/StartProfiler.php on line 3
Any idea on how to solve it? Thank you. David Latapie 06:32, 17 January 2008 (UTC)
- Hi - I have a similar problem. I just want to change my wiki folder's name, but it breaks everything. Do I have to do a SQLDump, delete the DB, reinstall and import... or is there an easy solution? Thanks, --Thekryz 16:19, 18 May 2008 (UTC)
In your LocalSettings.php file, look for any mention of the old name and replace it by the new name. It should work then. No pathes are stored in the database. -- Duesentrieb ⇌ 08:21, 19 May 2008 (UTC)
PS: Note that $wgScriptPath refers to the web path, while the error above is caused by a bad include path. The include path is stored in the variable $IP, which is usually atomatically set at the very top of your LocalSettings.php file. You can try to set it to the absolute (filesystem) path of your installation manually, just before the line saying $path = array... HTH -- Duesentrieb ⇌ 08:25, 19 May 2008 (UTC)
PPS: hm, actually... StartProfiler is special, because it's used before LocalSettings is even read. It doesn't use $IP at all. Since it's in the same directory as the index.php, it should always simply work. Hm... this *could* be caused by symlinking the include directory. other than that, I have no idea. -- Duesentrieb ⇌ 08:28, 19 May 2008 (UTC)
Not the exact answer to OP's problem, but something that could give a headache to newbies like me. When shifting the wiki, make sure that in LocalSettings.php, all the variables containing path are changed properly. In my case, it was $wgArticle variable which needed to be changed. But, it is not clear from the article. -- Mehul Ved 08:16, 19 September 2009 (UTC)
Hi Not sure about the old version of mediawiki, but the latest version I'm currently using does save the local path of the wiki in the database, for example the editors and some other stuff related to themes. So, I encounter the same problem like others. Anyway, I couldn't delete the database so I wrote a script that basically downloads the entire database, search for the old path (or whatever you want) and replace it with the new path (or again whatever you want) and finally upload it back to the database. I uploaded it to Github, so feel free to use it
These instructions are terribleEdit
It is very sad that eight years after mediawiki was first created, mediawiki, a program intended to involve everyone in the creative process, can only be installed by a minute portion of the population.
Part of the problem is the complex software, but a good portion of the blame is the god awful instructions found on most mediawiki pages. This page is a shining example of computer geniuses attempting to write simple easy to understand instructions and failing miserably. This sentence embodies how worthless the majority of the instructions are for the vast majority of people:
- 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.
You might as well be explaining quantum mechanics to myself and most people. Complex terms are not explained, there are no screenshots, the writers make a lot of assumptions, and it is written badly.
As someone who has published a guide, over the past five years I have spent hundreds of hours attempting to rewrite dozens of articles here and other mediawiki sites to the best of my ability. But articles like this are nearly hopeless.
I don't know why it is that technical information on wikipedia and guides on mediawiki are so completely worthless. Why?
Maybe the mediawiki foundation can hire professional writers to volunteer to write these pages. Maybe the mediawiki can ask current authors to release their guides to mediawiki. All I know is this guide is awful, a reflection of most pages on this mediawiki.
I would rewrite it myself from the ground up, but I just spent 20 days trying to get help to upload multiple images to my wikia. My multiple requests for help here and IRC were left unanswered, and I finally ended up paying someone $65 to help me. I don't have the technical skills to write this without dedicated help.
In 2012 at mediawiki's ten year anniversary is there still not going to be a simple mediawiki installation guide that even 30% of the public can understand?
video tutorial of how to install mediawiki?Edit
Note there maybe a good enough video found on youtube already:
- I was thinking about this lately, maybe:
- installation videos,
- screenshots taken from those videos, and
- written tutorials corresponding to those screenshots
- added to this page would be the way to go.
- Even though I no longer need another mediawiki, I would be willing to work with an established trusted editor to create a mediawiki installation video, installing mediawiki on my site on my computer:
- An editor could log on through logmein onto my computer.
- I would turn on a screen video capturer
- We could discuss the video progress real time over Skype as this editor installs mediawiki. As a complete newbie, who has never installed mediawiki, I would be able to give them a newbies perspective on what is confusing and when to slow down the installation for the video.
- We would edit out the personal information and post it here or on youtube if there is a youtube extension on this site.
- I could then take screenshots from this mediawiki installation video to create a written tutorial.
- I have a domain name I am not using which expires in December which we can use and godaddy allows as many websites as I want on my account.
- Anyone interested? All you would have to do is have logmein and skype on your computer, and install mediawiki remotely, I will do the rest. Adamtheclown 19:10, 23 November 2010 (UTC)
Need updated instructions on moving a wiki from an old version to new, empty instanceEdit
Why? Because I think there are many people like me who want to upgrade an existing, working wiki, to gain benefit of new features, while leaving the existing, working instance undisturbed. I do NOT want to run the upgrade process on an old instance!
Import the database backupEdit
The Import the database backup doesn't actually explain anything about importing the database from the backup made earlier. Saying "Consult the documentation to find out how it's done." is not helpful. The Possible methods given are just external links, none of which provide the necessary information.
How does one import the database backup, in each of the different methods?
Example:From the command line using mysqlEdit
After using mysqldump, (first check in LocalSettings.php for which character-set to specify) eg.
mysqldump --default-character-set=binary --user=foobar --password=barbaz olddb > dbdump.sql
Note: After using using mysqldump, you can't just use mysqlimport. Mysqlimport requires the data to be loaded in some delimited text format, eg. CSV, whereas the output of mysqldump is a script of SQL statements, in a plain text file.
To import dbdump.sql from the command line do:
mysql --silent --local --password=barbaz newdb < dbdump.sql
and afterwards in the maintenance sub-folder do:
Help me blank page after migrationEdit
I can't understand where is the problem in this migration of my Mediawiki 1.23 from my old hosting to the newone Ovh.
- I have my wiki.sql backup and I Imported on my new database wikinew
- I uploaded via Ftp the directory mediawiki with all files from old hosting to the newone in the same position
- I changed the configuration on LocalSettings.php for the access to the newdatabase
But when I try to go to the Index page I have a blank page with only a twitter button. If I make page source I see this code:
What is wrong? Something with the permission files?
Update: Now I wrote in localsettings.php this code
error_reporting( E_ALL ); ini_set( 'display_errors', 1 );
for give me an output error. Now in the main page I have some extension that are pointing to my old hosting.... I think that same extension are pointing to reference of the old hosting. For example in the main page I have this error Warning: include(/containers/30123/www/bancadati/extensions/Widgets/smarty_plugins/modifier.validate.php): failed to open stream: No such file or directory in /home/ioleggoljm/www/bancadati/extensions/Widgets/compiled_templates/f638d7e934e1b07e19ae457b51ab33154bb9769d.wi
How can modify the main pointer to the right place? .Htacces file? In my backup and sump db.sql there aren't links to my old hosting..... — Preceding unsigned comment added by Rafama82 (talk • contribs)
- Most likely the old paths are then stil coming from a cache, e.g. from the objectcache table in the database. Maybe purging the affected pages is also needed in order to make MediaWiki render them again... --2003:72:6D5E:1B00:A922:BD3E:3C85:8533 22:01, 23 July 2017 (UTC)
extensions vs includesEdit
Make sure any extension directories have the correct permissions as well (e.g., if linux: chmod -R o=rx extensions "or" chmod -R o=rx includes)