Long story made very short, I want to enable PHP APC caching on our server. I have it up and working, kinda. Right now suPHP is the PHP handler and I need to change it to DSO so that APC will actually persist the data that is being store (as it doesn't play nicely with really anything but DSO). I've hit a big road block and I can't choose a PHP handler. When I go to the Configure PHP and suEXEC screen it shows me my current setup, but the drop downs are empty/say "none".
I've tried running easyapache probably 6-7 times and after an error with compiling 3-4 of those times, I finally got it to compile correctly and now it's being awesome (/etc/hosts had a weird entry for 127.0.0.1 giving a mirror error at the end)
I increased the Max Cpanel Process Memory.....setting in "Tweak Settings" to unlimited, ran /etc/init.d/cpanel restart, rebuilt using easyapache, still no dice. I don't think suhosin is installed, but I haven't figured out how to check? It's not an option when using the exhaustive list in easyapache.
I've been googling for a few hours this morning and haven't found a solution that works for me. Here's some output to chew on.
Current PHP Handler using /usr/local/cpanel/bin/rebuild_phpconf --current
What happens when I try to switch to DSO using /usr/local/cpanel/bin/rebuild_phpconf 5 none dso 1
The error that gets logged after trying to switch it in command line at /usr/local/cpanel/logs/error_log
This is line 65 of PHPINI.pm which is the output from /usr/bin/php -v
It fails this regex and returns the top error from the error_log file (line 73)
Output when I run /usr/bin/php -v myself
At a loss at this point. Any ideas?
I've tried running easyapache probably 6-7 times and after an error with compiling 3-4 of those times, I finally got it to compile correctly and now it's being awesome (/etc/hosts had a weird entry for 127.0.0.1 giving a mirror error at the end)
I increased the Max Cpanel Process Memory.....setting in "Tweak Settings" to unlimited, ran /etc/init.d/cpanel restart, rebuilt using easyapache, still no dice. I don't think suhosin is installed, but I haven't figured out how to check? It's not an option when using the exhaustive list in easyapache.
I've been googling for a few hours this morning and haven't found a solution that works for me. Here's some output to chew on.
Current PHP Handler using /usr/local/cpanel/bin/rebuild_phpconf --current
Code:
Available handlers: suphp dso cgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: suphp
SUEXEC: enabled
RUID2: not installed
Code:
Invalid combination.
PHP5 is not available. Please rebuild apache if you require this configuration.
Code:
Building global cache for cpanel...Done
[2013-10-18 11:06:44 -0600] warn [Cpanel::PHPINI] Unexpected output from /usr/bin/php -v : at /usr/local/cpanel/Cpanel/PHPINI.pm line 73
Cpanel::PHPINI::check_installed_php_binaries() called at /usr/local/cpanel/Cpanel/PHPConfig.pm line 489
Cpanel::PHPConfig::_get_partial_advconfig_conf() called at /usr/local/cpanel/Cpanel/PHPConfig.pm line 169
Cpanel::PHPConfig::configure_php(HASH(0xbffdc0)) called at /usr/local/cpanel/bin/rebuild_phpconf line 64
Code:
my $phpout = Cpanel::SafeRun::Errors::saferunallerrors( $installed_phps->{$phpinstall}{'path'}, '-v' );
Code:
if ( $phpout =~ m/^PHP\s+(\d+\.\d+\.\d+)\s+\(([^\)]+)\)/m ) {
Code:
PHP 5.4.20 (cgi-fcgi) (built: Oct 18 2013 10:47:57)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies