Topic on Project:Support desk

Installing a Farm with Symlinks - PHPVersionCheck.php not found

4
Bidesclown (talkcontribs)

Hey all,

im trying to install a farm via the Symlinks method. I had a look on the Farming Articles (tbh it is a mess) and also found the https://sharkysoft.com/wiki/how_to_configure_multiple_MediaWiki_instances_on_a_single_host .

I have a SLES 12 and since i symlinked the Directory "/srv/www/htdocs/wiki" with all the stuff of my MediaWiki Installation from "/opt/MediaWiki/". I dont know why but it says:

[Mon Oct 15 11:58:08.956570 2018] [:error] [pid 2027] [client 10.111.93.194:56524] PHP Warning:  require_once(/opt/mediawiki/../includes/PHPVersionCheck.php): failed to open stream: No such file or directory in /opt/mediawiki/index.php on line 27

[Mon Oct 15 11:58:08.956668 2018] [:error] [pid 2027] [client 10.111.93.194:56524] PHP Fatal error:  require_once(): Failed opening required '/opt/mediawiki/../includes/PHPVersionCheck.php' (include_path='.:/usr/share/php7:/usr/share/php7/PEAR') in /opt/mediawiki/index.php on line 27

I tryed to add the path to the php.ini with the include_path but it gave me the "opt/MediaWiki/opt/mediawiki". -> No luck.

I tryed to copy the whole "/includes" directoy, instead of symlinking, but it also says it will not find the PHPVersionCheck.php

User and Group are wwwrun / WWW so this should not be the Problem.

What am I missing / overseeing ?

Best regards and thanks in advice !

This post was hidden by Bidesclown (history)
Bidesclown (talkcontribs)

Hey all,

I found something:

as I edited the index.php of "/opt/MediaWiki/" on line 27 from "require_once dirname( __FILE__ ) . '/../includes/PHPVersionCheck.php';" to "require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php';" and line 39 from "require dirname( __DIR__ ) . '/includes/WebStart.php';" to "require dirname( __DIR__ ) . '/mediawiki/includes/WebStart.php';" I got rid of these Errors.

But now it says in the Error-Log that I already declared "wfInstallerMain();" on Line 41:

PHP Fatal error:  Cannot redeclare wfInstallerMain() (previously declared in /opt/mediawiki/index.php:44) in /opt/mediawiki/mw-config/overrides/index.php on line 41

Should I start over with a fresh Server or what are your advice ?

Best regards!

Bawolff (talkcontribs)

Something seems very screwed up here. I think you somehow symlinked to mw-config instead of the mediawiki directory maybe? Its as if you somehow switched mediawiki/index.php with mediawiki/mediawiki-config/index.php

Reply to "Installing a Farm with Symlinks - PHPVersionCheck.php not found"