Skip to main content

PHP-FPM and Apache Mod_Userdir

Comments

3 comments

  • cPanelKenneth
    Just to rule it out: have you tried restarting Apache and php-fpm? /scripts/restartsrv_httpd /scripts/restartsrv_apache_php_fpm
    0
  • exelletor
    I didn't know about the existence of cPanel ticket support, but the problem is now sorted. For users that might run into the same issue as I did - PHP-FPM is not compatible with mod userdir. So you need to view your websites through the regular domain like domain.com and not with cPanels host.com/~user which I used for my staging environments.
    0
  • cPanelMichael
    I didn't know about the existence of cPanel ticket support, but the problem is now sorted. For users that might run into the same issue as I did - PHP-FPM is not compatible with mod userdir. So you need to view your websites through the regular domain like domain.com and not with cPanels host.com/~user which I used for my staging environments.

    Hello @exelletor, Thank you for taking the time to update this thread with the outcome. Currently, when you browse to "WHM > Security Center > Apache Mod Userdir Tweak", you will see the following message if Mod_Ruid2 or MPM_ITK are enabled: mod_userdir is disabled Web server processes on this system currently run as the user. For security reasons, mod_userdir is disabled in this case. Consequently, no changes you make in this interface will take effect until mod_userdir is enabled. To use mod_userdir, you must disable mod_ruid2 and mpm_itk and recompile EasyApache.
    Internal case CPANEL-9418 is open to reduce confusion by updating this message to include PHP-FPM and the CGI handler for PHP, as neither are compatible with Mod_Userdir. I'll update this thread with any status updates on this case as they become available. Thank you.
    0

Please sign in to leave a comment.