Skip to main content

EasyApache 4 PHP-FPM sometimes downloads PHP files instead of executing

Comments

3 comments

  • SysSachin
    Hello, Please check if there is any php handler type code added in your website .htaceess file. If yes then try to disable that code.
    0
  • teo_
    I"ve just seen that there are
    # 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-php70 .php .phtml # php -- END cPanel-generated handler, do not edit
    and
    # 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-php56 .php .phtml # php -- END cPanel-generated handler, do not edit
    on all PHP-FPM sites. I"ll try to uncomment AddType line (just after "Do not edit" :rolleyes:) if it happens again and check what happens. Thanks.
    0
  • cPanelMichael
    Hello, You shouldn't uncomment those lines, as "WHM MultiPHP Manager" properly sets those entries as commented when enabling PHP-FPM. Feel free to open a support ticket if the issue with the PHP pages not parsing continues so we can take a closer look. You can post the ticket number here and we can update this thread with the outcome. Thank you.
    0

Please sign in to leave a comment.