Skip to main content

PHP 5.4 Issues with choosing PHP Handler

Comments

5 comments

  • n0nag0n
    One other thing, if I run php -v or /usr/local/bin/php -v I get the following. I know that my php install is running off of /usr/local/lib/php.ini so could this be the problem (mixing up php installs)? PHP 5.4.20 (cli) (built: Oct 18 2013 10:47:55) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    0
  • n0nag0n
    And one last thing (can't seem to find the edit button), when I run in php the following, it outputs cgi-fcgi [PHP][/PHP]
    0
  • cPanelMichael
    Hello :) Try checking to see if you have an invalid entry in your /usr/local/lib/php.ini file. You can do this by backing up the php.ini file and regenerating it via: mv /usr/local/lib/php.ini /usr/local/lib/php.ini.backup /scripts/phpini
    Then, check to see if you can alter the PHP handler. If you can, try adding back in any custom entries to the php.ini by comparing it to the backed up version, and then run EasyApache again to ensure your modules are properly added to the PHP configuration file. Thank you.
    0
  • n0nag0n
    That actually worked generating a new php.ini file. I found that the extension that caused it to break was the APC extension. The extension itself installs correctly with no error, and it actually works, however when it's enabled it breaks the functionality of the Configure PHP and suEXEC area. I installed APC by using Software -> Module Installers -> PHP Pecl -> and then I installed APC from there. How should I go about this so that I can have APC installed and have the functionality be DSO? Should I take out the extension line in php.ini, then change it to DSO, then add the extension line back in and say a prayer?
    0
  • n0nag0n
    Well I went ahead and did it, and now it is working. I had to also add AddHandler application/x-httpd-php .php .htm .html
    to my root .htaccess file as all my php files wanted to download themselves :) Thanks for your help. Hopefully this helps someone in the future.
    0

Please sign in to leave a comment.