Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

PHP-FPM issues with .htaccess in EA4

Comments

14 comments

  • jazz1611
    I have installed github.com/engintron/engintron. If i enable PHP-FPM for userA, the website will show 502 Bad Gateway and not enable PHP-FPM for userA the website work normal. Don't have any logs when show error.
    0
  • cPanelMichael
    I just migrate from EA3 to EA4 and enable PHP-FPM for all user. I see on "top" and pool "user" working but the website have .htaccess (like Wordpress site) don't work. How can i resolve it?

    Hello, Could you post the contents of the .htaccess file on an account that isn't working after enabling PHP-FPM? Thank you.
    0
  • jazz1611

    # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress # php -- BEGIN cPanel-generated handler, do not edit # NOTE this account's php is controlled via FPM and the vhost, this is a place holder. # Do not edit. This next line is to support the cPanel php wrapper (php_cli). # AddType application/x-httpd-ea-php55 .php .phtml # php -- END cPanel-generated handler, do not edit
    After enable PHP-FPM on this user, the website show "Error 520 Web server is returning an unknown error". Also i have create ticket support ID 7917133 Regards,
    0
  • hrace009
    hi have the same problem, this error show when trying to upload a file
    0
  • cPanelMichael
    Unable to perform getpwnam on user:
    Hello, Internal case CPANEL-9766 is open to address instances where PHP-FPM continually logs "Unable to perform getpwnam on user" messages in the PHP-FPM error log. I'll update this thread once the resolution is published. Thank you.
    0
  • MaxFein
    > PHP-FPM continually logs "Unable to perform getpwnam on user" messages in the PHP-FPM error log I'm also experiencing this issue, looking forward to timely resolution =)
    0
  • cPanelMichael
    Hello @MaxFein, This is now tracked with case number ZC-2319. It will appear under the EA4 Change Log once it's published: EasyApache 4 Change Log - EasyApache 4 - cPanel Documentation I'll also update this thread when it's released. Thanks!
    0
  • alexis75
    Hi, any news on that problem with 'continually logs "Unable to perform getpwnam on user' ? I see also a lot of these in /var/log/messages: "ERROR: [pool xxxx] Unable to perform getpwnam on user: xxxx No such file or directory (2)" if I enable PHP-FPM for accounts that runs PHP 5.3. Can this cause a problem? thought php-fpm should be available since php 5.3.3.. There are no warnings/errors for accounts with PHP-FPM enabled, but with PHP 5.5 How to fix this?
    0
  • cPanelMichael
    if I enable PHP-FPM for accounts that runs PHP 5.3. Can this cause a problem? thought php-fpm should be available since php 5.3.3..

    PHP 5.3 is not supported in EasyApache 4, and thus the published resolution would not have been applied to that version. Are you using a third-party application such as PHP Selector with CloudLinux to use that version? Thank you.
    0
  • Rajesh Chauhan
    I am still facing this issue no codes in htaccess working correctly with Engintron
    0
  • cPanelMichael
    I am still facing this issue no codes in htaccess working correctly with Engintron

    Are you able to reproduce the issue when Engintron is temporarily disabled? Thank you.
    0
  • alexis75
    PHP 5.3 is not supported in EasyApache 4, and thus the published resolution would not have been applied to that version. Are you using a third-party application such as PHP Selector with CloudLinux to use that version? Thank you.

    Yes, we are running CloudLinux 7, thus using PHP Selector for Php versions (5.3+). Currently just not enabling PHP-FPM for 5.3, no errors in logs for PHP 5.5+
    0
  • cPanelMichael
    Yes, we are running CloudLinux 7, thus using PHP Selector for Php versions (5.3+). Currently just not enabling PHP-FPM for 5.3, no errors in logs for PHP 5.5+

    You can report this directly to CloudLinux at: CloudLinux - Main | New template Thank you.
    0
  • alexis75
    Ok, thank you! I'll try that option.
    0

Please sign in to leave a comment.