Skip to main content

.user.ini files not recursive

Comments

8 comments

  • cPanelMichael
    Hello, Internal case EA-6167 is open to address an issue where PHP-FPM in combination with .user.ini files acts non-recursively in the public_html directory due to trailing slash in proxy_fcgi_module configuration. I'll update this thread with more information on the status of this case as it becomes available. In the meantime, you can create custom Apache Virtual Host templates as a temporary workaround. EX:
    cp -a /var/cpanel/templates/apache2_4/vhost.default /var/cpanel/templates/apache2_4/vhost.local cp -a /var/cpanel/templates/apache2_4/ssl_vhost.default /var/cpanel/templates/apache2_4/ssl_vhost.local
    Once you create the local template files, you can modify the .local files to modify the PHP-FPM entry from:
    [%- IF vhost.php_fpm %] SetHandler proxy:unix:[% vhost.php_fpm_socket %]|fcgi://[% wildcard_safe(vhost.servername) %]/
    To:
    [%- IF vhost.php_fpm %] SetHandler proxy:unix:[% vhost.php_fpm_socket %]|fcgi://[% wildcard_safe(vhost.servername) %]
    Then, rebuild the Apache configuration file:
    /scripts/rebuildhttpdconf
    Thank you.
    0
  • Cormac Kernan
    Great temporary solution - that's worked a treat. Hopefully, a later cPanel release will fix this issue and then presumably we should revert to the vhost.default and ssl_vhost.default files in case we miss any future updates to these files?
    0
  • cPanelMichael
    Great temporary solution - that's worked a treat. Hopefully, a later cPanel release will fix this issue and then presumably we should revert to the vhost.default and ssl_vhost.default files in case we miss any future updates to these files?

    You could simply remove the .local files that you created to remove the customization once a resolution is published. Thanks!
    0
  • dmwalk
    Any progress on fixing this? (Internal case EA-6167)
    0
  • opt2bout
    Any progress on fixing this? (Internal case EA-6167)

    The default configuration in release 66 (Current) applies these changes automatically--so no need for .local versions when 66 goes to Release. I'm running Current and have removed my .local versions of my apache config.
    0
  • cPanelMichael
    Any progress on fixing this? (Internal case EA-6167)

    This was fixed as part of internal case HB-2719 in the most recent
    0
  • dmwalk
    This was fixed as part of internal case HB-2719 in the most recent
    0
  • cPanelMichael
    What WHM version will this be included in?

    EasyApache 4 updates are independent of cPanel updates. You should be able to use the "yum update" command to update the EA4 RPMs on your system. Thank you.
    0

Please sign in to leave a comment.