Last modified: 2010-05-15 15:41:20 UTC
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
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
It works! Thanks a LOT Jimmy, yuo've sorted it first time! :) Cheers, Dave