Today i tried to update to mediawiki 1.3.5 to version 1.4.0
I am afraid that the included instructions are at all not clear (for someone whose native language is not English)
As far as I understand there is the Web installer, it doesn't say; but that would mean installing everything from the bottom up, risking to loose everything if a contradicting answer is given?
So I decided to take option 2: Command line upgrade. Here my english failes: 'Additionally' does that mean you have to run the Web-installer AND the command line upgrade? Or is the command line script an additional option ('Additionally you *can* run...)?? Or can you just run the update script??? Then I spent a *long* time looking for the correct syntax of AdminSettings.php, until I noticed I had to copy AdminSettings.sample and edit it. It is not written in the UPGRADE, perhaps I am stupid and should have known!
So I decided t just run the command mode script, edited AdminSettings.php, and then I got the output:
============
php update.php
Status: 404 Content-type: text/html X-Powered-By: PHP/4.3.10
No input file specified. ============
And when I point my browser to the new install I get a blank screen...
Can somebody tell me what I have done wrong, and moreover: what I should have done? And then please no more guesses, just a cookbook recipe how to upgrade 1.3.5 to 1.4.0
Thanks! Daniel
Daniel K. wrote:
php update.php
Status: 404 Content-type: text/html X-Powered-By: PHP/4.3.10
No input file specified.
That's the CGI version of PHP, not the command-line version.
Sometimes the command-line version is named 'php-cli' instead of regular 'php'.
And then please no more guesses, just a cookbook recipe how to upgrade 1.3.5 to 1.4.0
First, back up all data.
Untar the archive. Run 'php maintenance/update.php' (with a real command-line PHP; if the command is named differently use the actual name.) Remember that for command-line maintenance scripts an AdminSettings.php is necessary; see AdminSettings.sample.
If command-line PHP is not available, remove LocalSettings.php and AdminSettings.php, and run the web installer. Give it the same language, database, name etc settings and it will run the updates on the existing backups.
-- brion vibber (brion @ pobox.com)
Still no luck upgrading to 1.4. I guess something is missing in the instructions:
Brion Vibber wrote:
And then please no more guesses, just a cookbook recipe how to upgrade 1.3.5 to 1.4.0
First, back up all data.
Untar the archive. Run 'php maintenance/update.php' (with a real command-line PHP; if the command is named differently use the actual name.) Remember that for command-line maintenance scripts an AdminSettings.php is necessary; see AdminSettings.sample.
I untarred the archive in /usr/local and made a symlink from my documentroot
Then I copied the old Localsetting.php and modified contents to correct paths
The I ran update with the following result:
--------- [root@kropix mediawiki-1.4.0]# php maintenance/update.php PHP Warning: chdir(): No such file or directory (errno 2) in /usr/local/mediawiki-1.4.0/maintenance/commandLine.inc on line 28 Content-type: text/html X-Powered-By: PHP/4.3.10
A copy of your installation's LocalSettings.php must exist in the source directory. -----------
So what does this script do, and how can I check if it did anything: ie does it modify the database??
Daniel
On 30 Mar 2005, at 10:04, Daniel K. wrote:
PHP Warning: chdir(): No such file or directory (errno 2) in /usr/local/mediawiki-1.4.0/maintenance/commandLine.inc on line 28
So, does that file exist, and is the entire path traversable by the effective user that your webserver is running under?
Also, I believe it needs to be a hard path. I've had bad luck trying to get MediaWiki work via symlink.
:::: If there ever is a time of plenty, this very fact will automatically lead to an increase in the population until the natural state of starvation and misery is restored. -- Richard Dawkins :::: Jan Steinman http://www.Bytesmiths.com/Van
mediawiki-l@lists.wikimedia.org