Question
Which PHP handlers work with mod_userdir?
Answer
The SuPHP, DSO, or LSAPI handler is needed in order to run mod_userdir. The following PHP handlers do not allow you to use the Apache mod_userdir module:
- PHP via CGI
- FastCGI
- PHP-FPM
This chart summarizes support for mod_userdir:
Handler | Supports mod_userdir? |
PHP via CGI | NO |
FastCGI | NO |
PHP-FPM | NO |
SuPHP | YES |
DSO without ruid2 | YES |
DSO with ruid2 | NO |
LSAPI | YES |
For more information, refer to our Apache mod_userdir Tweak page.
Please also note that we do not recommend the use of mod_userdir. It is preferred to use the hosts file, as described in How can I view my site without pointing DNS?