Thursday 27 December 2007 2:26:48 am
Hi, I am running eZpublish 4.0 and want to add a new extension. I keep getting the following error
<b>Fatal error: Class 'ezcFile' not found in /var/www/vhosts/andypmountainguide.com/httpdocs/lib/ezutils/classes/ezautoloadgenerator.php on line 283 Fatal error: eZ Publish did not finish its request</b> Looking through the forum it seems I need to install eZComponents. So I have followed the installation guide, and used PEAR to install. PEAR has installed the components to /usr/share/php/ezc/ so I have added this to the php.ini
include_path = .:/usr/share/php:/usr/share/php/ezc
I still get the same error message when trying to install a new extension. I also set up a php test file in my home directory to test if eZComponents are installed correctly. This is the code that is required to be added to php scripts according to the eZComponent install documentation
<?php
set_include_path( "/usr/share/php/ezc/Base" . ini_get( "include_path" ) );
require_once '/usr/share/php/ezc/Base/base.php';
function __autoload( $className )
{
ezcBase::autoload( $className );
}
?>
When I run this I get the following errors <b>Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/usr/share/php/ezc/Base/base.php) is not within the allowed path(s): (/var/www/vhosts/andypmountainguide.com/httpdocs:/tmp) in /var/www/vhosts/andypmountainguide.com/httpdocs/comptest.php on line 13 Warning: require_once(/usr/share/php/ezc/Base/base.php) [function.require-once]: failed to open stream: Operation not permitted in /var/www/vhosts/andypmountainguide.com/httpdocs/comptest.php on line 13
Fatal error: require_once() [function.require]: Failed opening required '/usr/share/php/ezc/Base/base.php' (include_path='/usr/share/php/ezc/Base.:/usr/share/php:/usr/share/php/ezc:/usr/share/php/ezc/Base') in /var/www/vhosts/andypmountainguide.com/httpdocs/comptest.php on line 13 </b> Do I need to set open_basedir to the eZComponent directory? Any help would be appreciated. Thanks....
www.peakm3.com
|