Topic on Project:Support desk

Maintenance scripts not showing correct PHP version

6
GeorgeBarnick (talkcontribs)

On a wiki I've been working with, http://biosector01.com, I'm trying to update from MediaWiki 1.22 however when I do there are database issues. When I try to run update.php, I get an error saying the PHP version is insufficient, thinking it's PHP 5.2. However, Special:Version, as well as php -version say it's PHP 5.4 that's running, as well as when I run top it only shows php54 processes. PHP 5.2 isn't running on the server so I can't figure out why update.php won't run because it thinks the PHP version won't work. Any help would be appreciated.

81.157.75.80 (talkcontribs)

Remove php and then reinstall it see if that fixes the problem.

88.130.64.13 (talkcontribs)

Without having further information, this does not seem to be an appropriate advice. This doubtfully helps and given George's questions I am rather sure that this will leave him with a broken system.

Do you maintain the server (especially the PHP installation) yourself? If not, ask your host how you can run PHP 5.4 from the shell!

Often, different PHP versions are available under different names. E.g. calling php might call one PHP version, while something like php54 might call another version (5.4 obviously). If that is the case for you and how these programmes are named, depends on the server setup.

GeorgeBarnick (talkcontribs)

The site is based on a Dreamhost shared VPS. I have little involvement with maintaining it. I think what you said is probably what's wrong with the server. php is probably the command for an older version whereas the actual version we're trying to run is php54.

88.130.99.200 (talkcontribs)

You can test that running php54 --version. This should display the version information, if a PHP version is available under that command. Otherwise ask your host for the right command.

GeorgeBarnick (talkcontribs)

Hmm, now looking at top it says the process name is php54.cgi. Since this server is a shared server without root permission I can't look at where that's installed or where any other versions are installed.

Maybe I can talk the owners of this site I'm trying to upgrade if they'd be able to move to a dedicated server. I don't think they have any strong attachment to Dreamhost and there are a lot of reasons I can give them why they'd be better off with a dedicated server.

Thanks!

Reply to "Maintenance scripts not showing correct PHP version"