Page MenuHomePhabricator

Page doesn't load at-all. It's just a blank page!
Closed, ResolvedPublic

Description

Author: crypticsources

Description:
Hi all,

I installed this wiki on my test server before I add it to my production server,
where it will be going into heavy use pretty much instantly, so hopefully you
can help me out with this.

When you go to the URL, all that loads is a blank page, and thats it. Here's the
stuff from the installation log:


  • PHP 5.0.4 installed
  • Found database drivers for: MySQL PostgreSQL
  • PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
  • Have XML / Latin1-UTF-8 conversion support.
  • PHP's memory_limit is 32M. If this is too low, installation may fail!
  • Have zlib support; enabling output compression.
  • Neither Turck MMCache nor eAccelerator nor APC are installed, can't use

object caching functions

  • GNU diff3 not found.
  • Couldn't find GD library or ImageMagick; image thumbnailing disabled.
  • Installation directory: /var/www/vhosts/sourcez.co.uk/httpdocs/wiki
  • Script URI path: /wiki
  • Environment checked. You can install MediaWiki.
  • Warning: $wgSecretKey key is insecure, generated with mt_rand(). Consider

changing it manually.

  Generating configuration file...
* Database type: MySQL
* Loading class: DatabaseMysql
* Attempting to connect to database server as wikiuser1...success.
* Connected to 4.1.21
* Database wikidb exists
* Creating tables... using MySQL 4 table defs... done.
* Initializing data...
* Created sysop account WikiSysop.
*

  Initialising "MediaWiki" namespace...
  Clearing message cache...Done.

  Creating LocalSettings.php...

  Installation successful! Move the config/LocalSettings.php file into the

parent directory, then follow this link to your wiki.


...looks okay to me, but I still had the problem even though I installed it twice!

So, I checked the error logs and found these:


[client 86.142.151.61] PHP Warning: main() [<a
href='function.main'>function.main</a>]: open_basedir restriction in effect.
File(/usr/share/pear/UtfNormalUtil.php) is not within the allowed path(s):
(/var/www/vhosts/sourcez.co.uk/httpdocs:/tmp) in
/var/www/vhosts/sourcez.co.uk/httpdocs/wiki/includes/normal/UtfNormal.php on
line 36, referer: http://www.sourcez.co.uk/wiki/config/index.php

[client 86.142.151.61] PHP Warning: main(UtfNormalUtil.php) [<a
href='function.main'>function.main</a>]: failed to open stream: Operation not
permitted in
/var/www/vhosts/sourcez.co.uk/httpdocs/wiki/includes/normal/UtfNormal.php on
line 36, referer: http://www.sourcez.co.uk/wiki/config/index.php

[client 86.142.151.61] PHP Fatal error: main() [<a
href='function.require'>function.require</a>]: Failed opening required
'UtfNormalUtil.php'
(include_path='/var/www/vhosts/sourcez.co.uk/httpdocs/wiki:/var/www/vhosts/sourcez.co.uk/httpdocs/wiki/includes:/var/www/vhosts/sourcez.co.uk/httpdocs/wiki/languages:.:/usr/share/pear')
in /var/www/vhosts/sourcez.co.uk/httpdocs/wiki/includes/normal/UtfNormal.php on
line 36, referer: http://www.sourcez.co.uk/wiki/config/index.php


looks like a permission issue but then I have no experience with linux servers
so any help you can provide would be greatly appreciated as I need to get this
sorted out quick for the release date to be met.

Regards,

Dave


Version: 1.7.x
Severity: blocker
URL: http://www.sourcez.co.uk/wiki/index.php

Details

Reference
bz7385

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 9:26 PM
bzimport set Reference to bz7385.
bzimport added a subscriber: Unknown Object (MLST).

jimmy.collins wrote:

Hi Dave,

replace the follwing line in includes/normal/UtfNormal.php:
require_once 'UtfNormalUtil.php';

with this one:
require_once dirname(FILE).'/UtfNormalUtil.php';

and try again.

Cheers Jimmy

crypticsources wrote:

It works! Thanks a LOT Jimmy, yuo've sorted it first time! :)

Cheers,

Dave