- SuExec - Enable suexec module to allow users to run CGI scripts etc as themselves. In debian lenny… a2enmod suexec /etc/init.d/apache2 reload apt-get install apache2-suexec Virtual hosts and the docroot setting suexec is normally compiled with its d...
- Apache MPM Prefork vs Worker - MPM prefork is a non-threaded pre-forking server. Is it thread safe. MPM worker is a multi-process multi-threaded server. It is not thread safe. Prefork is generally recommended for servers that will be serving PHP applications, as may libraries are ...
- mod_alias - For addition to .htaccess: # Redirect old site pages via mod_alias. Redirect 301 /the/old/url.html http://example.com/the/new/url.html Redirect 301 /another/old/url.html http://example.com/another/new/url.html See Apache Module mod_alias for mod_ali...
- Apache basic authentication - In .htaccess: AuthType Basic AuthName "Restricted Files" AuthUserFile /the/location/of/.htpasswd (or /the/location/of/whatever/pass/file) Require user the_username In vhost: <VirtualHost *:80> ServerName www.example.com ServerAdmin webmas...
- Apache - Apache 2 hangs when not enough entropy - If Apache2 hangs, it could be because the system doesn't have enough entropy, which is needed by mod_auth_digest. To check how much entropy you've got, run cat /proc/sys/kernel/random/entropy_avail. Apache2 need...
- FCGID - You need mod_fcgid and suexec enabled. <VirtualHost *:80> ServerName drupal DocumentRoot /home/steph/webapps/drupal/ <Directory "/home/steph/webapps/drupal/"> Order allow,deny Allow from all AllowOverride All Options ...

