403 It is forbidden to try to execute php scripts

New installation of the Debian server. Apache2, PHP5.

When I try to view a PHP file, I get a 403 ban. I can view html files.

I tried the following:

  • Reinstall Apache, PHP, libapache2-mod-php5
  • Restart apache
  • Check the conf file completely, copied by default, set the correct directory path and allow everything
  • Checked directory permissions since the test gave full permission 777 / var / www / site - still forbidden

Could you think what else to try?

+3
source share
2 answers

Run the chmod 755directory where the PHP scripts are located.

After that restart the Apache / nginx server

or

, , URL-, mod_security. , .

+1

, alow/deny http.conf. apache?

0

Source: https://habr.com/ru/post/1776830/


All Articles