I need to block files in directory from being executed, i was recommended to set
php_flag engine off
Now i need go get list of other engines running and disable each of them.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I guess you are looking to secure a kind of a file upload directory from executing source codes.
1) Security checks :
You may first check whether this directive *php_flag engine off* is effectively taken into account by your server, putting a php file and calling it from your browser. As far as I remember, this directive works with Apache2 and above but not below.
Provided that you can activate additional php modules (mod_mime), I guess you could also complete your .htaccess file by 2 lines :
2) “Running engines” :
Your question is not clear to me and in any case, the answer depends on your OS and distro. On a debian, you’ll show up information about Apache, Bind DNS, or Postfix smtp server and their port numbers like this :
3) AddHandler :
But maybe you are looking for the file types handled by the server in a particular directory. For this, you have to check your apache.conf or httpd.conf file and find which types of files are handled in your conf file(s). Then you shall check for the AddHandler directives. To find those lines on a debian machine with apache2 installed from the standard packages into the default directories :