Hello
for security reason I want disable php engine for some folders ? Could you please help ?
thanks
This is a discussion on how to disable php engine on a folder ? in the VPS & Dedicated forum
Hello
for security reason I want disable php engine for some folders ? Could you please help ?
thanks ...
Hello
for security reason I want disable php engine for some folders ? Could you please help ?
thanks
I mean disable php engine for a folder and its sub folders too .
on my VPS, users unable to upload images if folders chmoed 755, I must chmod it to 777, but 777 is not safe
thanks
thanks, 766 mean public can not execute but still can write ?? Is it safe ?
Answers to all your questions depend on how php is insalled on your vps. Please post more details about control panel and php setup (apache module or cgi/suphp).
details:
php5, runs as module of apache, plesk control panel
thanks
Add this directive in .htaccess file:
php_flag engine off
This should disable php in that folder and all subfolders under it. Please test to verify.
Hello
I have uploaded .htaccess file with, and upload file info.phpphp_flag engine off
I still can run php file on that folder : http://abc.com/info.php
Copyright © 2011 JaguarPC.com
Bookmarks