I'm encountring some difficulties with my Apache2/PHP5. All was well-configured and working, but after reinstalling apache2
, the PHP files are displayed without being interpreted.
I tried many workarounds like:
AddType application/x-httpd-php .php
in the httpd.conf
file, but still get the same issue. Please note that httpd.conf
was not changed.
Best Answer
Are you loading PHP Module ? In your httpd.conf, check :
Of course, you must change module path, to where your libphp5.so is.
Furthermore, you also need your entry
If you want to use indexes with .php, modify the dir_module condition :
But before running all of that, you could run an apt-get :