Hi. I've encounteres problem with open_basedir option with MOD-PHP. First of all after creating new website there's a few paths in line PHP open_basedir in "WEB DOMAIN -> OPTIONS". One of that path is /srv/www/mydomain. Howevere there's no such path created automaticlu (there's only /srv). Anyway my problem is that I install Shop application that somehow uses PHP open_basedir function and ISP Logs says: "permission denied" and installation hangs. I cannot remove those paths from OPTIONS (it says: path can't be empty) so I just # it in apache2/sites-enabled/mydomain.vhost. Is that function PHP open_basedir important? Does my trick is ok or it can cause malfunctions?
under options are you talking about Apache directives i have nothing listed under any of my sites and have no troubles
Php ... Hi. Thanks but DIRECTIVES are empty.... I was talking about path below DIDECTIVES ... see the path is /srv/www/skrzypczynscy.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin where apache has no access sicnce it doesn't work as a root
Error Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/php/Zend/Translate/Adapter/Translate_Adapter_STXml.php) is not within the allowed path(s): (/var/www/clients/client51/web104/web:/var/www/clients/client51/web104/tmp:/var/www/motkolandia.pl/web:/srv/www/motkolandia.pl/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin) Which is right because apache cant get to /srv/www/motkolandia.pl/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin.
Your zend installation is in /usr/share/php and you missed to add this path to the open_basedir. The solution is to add: :/usr/share/php at the end of the open basedir path in this site. If other sites shall be able to use this path as well, then add it in the system settings too.
Php can you tell me what "system settings", because adding only to apache2/sites-enabled/mydomain.vhost doesn't work
The one that you listed above. From your post: "First of all after creating new website there's a few paths in line PHP open_basedir in "WEB DOMAIN -> OPTIONS"" And if you need this for all websites, add it to system > server config > web too. Never edit a vhost file directly. All your changes will get removed automatically.