Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
We used to be able to limit php scripts from accessing files outsite the users home directory by using the following command in the /etc/apache/httpd.conf file for each users virtual host
php_value open_basedir ~
( ~ specifies home dir )
For some reason the ~ has stopped working? we now have to add the full path down eg
php_value open_basedir /home/user/public_html
~ used to work - I am thinking that maybe an update we applied may have caused it to stop functioning.
I have also tried
php_admin_value open_basedir "/home/users/public_html"
which works but we want to set it as a global setting in the php.ini file that users are always locked in their home dir however the ~ not working is a problem?
Any Ideas ?
Does anyone know why this may have stopped working?Thanks for any info

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |