Verena | 28 Apr 2012 12:40
Picon
Picon

problems with installation

Hello, I got the following message as answer to

<?php
require_once 'System.php';
var_dump(class_exists('System', false));
?>

Warning: require_once(): open_basedir restriction in effect. 
File(/usr/share/pear/System.php) is not within the allowed path(s): 
(/var/www/vhosts/domain/subdomains/server2/httpdocs/:/tmp/) in 
/var/www/vhosts/domain/subdomains/server2/httpdocs/chkpear.php on line 2 
Warning: require_once(/usr/share/pear/System.php): failed to open 
stream: Operation not permitted in 
/var/www/vhosts/domain/subdomains/server2/httpdocs/chkpear.php on line 2 
Fatal error: require_once(): Failed opening required 'System.php' 
(include_path='.:/usr/share/pear') in 
/var/www/vhosts/domain/subdomains/server2/httpdocs/chkpear.php on line 2

the path is usr/share/pear/ where I see the System.php

I don't understand, where I did something wrong.

Thanks for helping me.
Verena

--

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

(Continue reading)

Christian Weiske | 28 Apr 2012 12:49
Picon
Favicon
Gravatar

Re: problems with installation

Hello Verena,

> Warning: require_once(): open_basedir restriction in effect. 
> File(/usr/share/pear/System.php) is not within the allowed path(s): 
> I don't understand, where I did something wrong.

You need to change your php.ini file. In it, there is a line
> open_basedir
> = /var/www/vhosts/domain/subdomains/server2/httpdocs/:/tmp/

Append ":/usr/share/pear/" to it.

--

-- 
Regards/Mit freundlichen Grüßen
Christian Weiske

-=≡ Geeking around in the name of science since 1982 ≡=-

Gmane