Why isn't MediaWiki loading?

Posted by E L on Server Fault See other posts from Server Fault or by E L
Published on 2012-09-12T00:20:33Z Indexed on 2012/09/18 3:40 UTC
Read the original article Hit count: 610

Filed under:
|

I recently set up MediaWiki on an Apache server with PostgreSQL. It installed successfully. However, when I try to access the website, I get a blank page.

The error log reports the following.

[error] PHP Fatal error:  require_once(): Failed opening required '/var/www/mediawiki-1.19.2/LocalSettings.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/mediawiki-1.19.2/includes/WebStart.php on line 134
[error] PHP Warning:  require_once(/var/www/mediawiki-1.19.2/LocalSettings.php): failed to open stream: Permission denied in /var/www/mediawiki-1.19.2/includes/WebStart.php on line 134
[error] PHP Fatal error:  require_once(): Failed opening required '/var/www/mediawiki-1.19.2/LocalSettings.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/mediawiki-1.19.2/includes/WebStart.php on line 134

I've seen other people with similar problems and the solutions have involved using chmod on LocalSettings.php to 644 or in other cases 755. Others have said using chown to make LocalSettings match the Apache user, which is just 'apache' in my case. None of these solutions have worked for me. Does anyone have other suggestions or maybe I missed something?

© Server Fault or respective owner

Related posts about linux

Related posts about mediawiki