Hi, Just wondering if anyone can help me with a problem to do with safe_mode, open_basedir, and doc_root.
I have read through lots of the manuals and stuff and have tried lots of different combinations of config settings but have not been able to work this one out. I have also seen posts here about the same sort of question but again they have not helped me very much. What i have is a single website located at /website/apache/htdocs i also have a dir at /website/apache/htdocs/php What i want is any .php file in the /php dir to execute as normal and be served. For example if i had a file - phpinfo.php - with <? phpinfo() ?> in it, and i went to that dir on the server using a web browser and opened phpinfo.php i would get a dump of all the php information. but i want it so that if i put that same file in any other dir, other than /php(and subdir's)/, it would just eaither denie access to that file, or just spit out the source (just anything other than execute the php code inside). Some of the things i have tried is to turn safe_mode on and put open_basedir = /website/apache/htdocs/php but that does not seem to help and the other thing i have tried is to do the same with a doc_root = /website/apache/htdocs/php and again, that did not seem to help at all. I have been making these changes in the php.ini file that is listed when i do phpinfo(), and have been restarting the apache server after i have made the changes. PHP is not compiled as a module, but is compiled into the apache httpd. I have the latest stable release of both of them, at time of writing. Any help would be great. Thanks -|- Hurgh -|-