I tried to protect the directory in my www folder using the .htaccess file, which had no effect, so I changed the line
AllowOverride None
in apache2.conf for
AllowOverride All
as root.
Now I see that this is not the best way to do this. when trying to restart apache using
/etc/init.d/apache2 restart (or stop and start)
The following error message appears:
[FAIL] Starting web server: apache2 failed! [warn] The apache2 configtest failed. ... (warning). Output of config test was: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory Action 'configtest' failed. The Apache error log may have more information.
I changed the line to AllowOverride None again, but the problem remains. Apache2 error.log does not contain any information. And line 140 in the configuration file
IncludeOptional mods-enabled/*.load
as the error message indicates that libphp5.so in / usr / lib / apache 2 / modules is just libphp5filter.so
source share