![]() |
|
|
|
||||||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
disable php engine on a folder and its sub folders ??
Hello
I have a VPS, php5 runs as apache mod, for security I want disable php excute on a folder and its sub folders ??? how can I do ? thanks for your time ! HN |
|
#2
|
|||
|
|||
|
don think you can do that, but you prevent access to any .php file using simple deny rules in htaccess
|
|
#3
|
||||
|
||||
|
Try to use RemoveHandler (or RemoveType) in .htaccess (http://httpd.apache.org/docs/1.3/mod...#removehandler)
|
|
#4
|
||||
|
||||
|
Are you trying to disable php exec(), or are you trying to disable php from running on a directory?
exec() can be disabled directly in httpd.conf, or in .htaccess. Php can be disabled using htaccess in the specific directory as wmtips suggested. |
|
#5
|
|||
|
|||
|
some folders need to chmod 777 for users upload images, mp3 , 777 is not secure ??? so I want any php file can not run from these folders .
I am newbie thanks |
|
#6
|
||||
|
||||
|
Try chmod 666 or 776 for any of those folders. Test to make sure it works, but this should remove the ability to execute from all the files in that directory.
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is there a difference between "/folder/" and "/folder/index.php"? (dupe content) | robdp | Search Engine Optimization | 2 | May 8th 2008 9:49 am |
| Redirect root traffic to new folder without affecting other folders | AccidentReport | Site & Server Administration | 2 | Mar 20th 2008 1:12 am |
| Help with php include and folders | gre | PHP | 2 | Oct 20th 2007 9:53 am |
| Private folders via php | elvee | PHP | 2 | May 19th 2006 9:24 am |
| insert .txt or .php on empty folders | clover | Apache | 0 | Mar 4th 2006 4:50 am |