apache: PHP not working in UserDir
Some versions of Debian based distros (like Ubuntu) disable by default the usage of PHP in userdir websites (http://server/~user). To enable, remove the following lines from /etc/apache2/mods-: <IfModule > <Directory…
Permission denied: exec of … failed in apache
If apache returns 'Permission denied: exec of <filename> failed' then you are in two possible situations: 1. 'filename' IS A CGI SCRIPT There could be several reasons for this, for…
apache: enable .htaccess support
Do the following in order to enable .htaccess support: 1. Check if the module rewrite_module is loaded: # httpd -M | grep rewrite_module (in FreeBSD) # apachectl -M | grep…
apache: fixing ‘config variable XX is not defined’ error
PROBLEM: You try to execute from a shell some apache command like this: # apache2 -t -D DUMP_MODULES and you get the following error messages: AH00111: Config variable ${APACHE_LOCK_DIR} is…
apache: show loaded modules
There are many ways to list the modules currently loaded in an Apache server, here are 2 of them: Method 1: use apachectl Execute from the command line: apachectl -t…