Forum Moderators: coopster
* My open_basedir:/var/www/vhosts/mydomain.com/httpdocs:/tmp:/var/www/vhosts/mydomain.com/private
1.- The script that I execute is /var/www/vhost/mydomain.com/httpdocs/index.php
2.- this scripts requires the script var/www/vhosts/mydomain.com/private/libraries/main.php
3.- And this main.php script requires /var/www/vhost/mydomain.com/private/config/list.php
This is not posible and I have the next error:
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/var/www/vhost/mydomain.com/private/config/list.php) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/httpdocs:/tmp:/var/www/vhosts/mydomain.com/private) in /var/www/vhosts/mydomain.com/private/libraries/main.php on line 58
Warning: require_once(/var/www/vhost/mydomain.com/private/config/list.php) [function.require-once]: failed to open stream: Operation not permitted in /var/www/vhosts/mydomain.com/private/libraries/main.php on line 58
Fatal error: require_once() [function.require]: Failed opening required '/var/www/vhost/mydomain.com/private/config/list.php' (include_path='.:.:') in /var/www/vhosts/mydomain.com/private/libraries/main.php on line 58
¿Somebody knows what is happening?
Looks like a plesk control panel structured site considering that "vhosts" subdirectory there.
Sorry, I confused you. What I meant by that statement was that it looks as if you are running plesk on your server. Am I correct?
If so, go into the control panel for that domain and look at the setup area. PHP is likely enabled, but the "safe mode" box on the same line is checked/unchecked, I cannot recall which way it goes right now.
What I mean is that the problem is solved. My problem was a pathh problem, look:
/www/vhosts/mydomain.com/private/libraries/main.php
/var/www/vhost/mydomain.com/private/config/list.php
One path has vhosts and the other vhost, i was writing wrong the include path.
Thanks for all