Hi
I need to get apache which is chrooted to acces pear. So I tried first a test like this, but it fails and cannot see why.
mkdir -p /webroot/usr/share/pear
cd /webroot/usr/share/pear
cp -avr /usr/share/pear .
chown apache:apache /webroot/usr/share/pear -R
/etc/php.ini
include_path = ".:/webroot/usr/share/pear/pear"
apache restart
then run:
www.idole.com/infoTest.php
<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
require_once 'System.php';
var_dump(class_exists('System'));
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
//set_include_path('');
phpinfo();
?>
produces:
Warning: require_once(System.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/idole.com/httpdocs/infoTest.php on line 7
Fatal error: require_once() [function.require]: Failed opening required 'System.php' (include_path='.:/webroot/usr/share/pear/pear') in /var/www/vhosts/idole.com/httpdocs/infoTest.php on line 7
So I guess there is something I don't see here. Can anyone help me fix this please
Brian
Recent comments
1 day 9 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 16 hours ago
1 day 18 hours ago
1 day 19 hours ago
2 days 11 hours ago
2 days 12 hours ago
2 days 15 hours ago