Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
I am having an unusual problem with Zend Optimizer and PHP. Latest stable build of cPanel and CentOS 5.2 64-Bit.

Main >> Service Configuration >> Apache Configuration
Configure Suexec and PHP

Once I change the PHP5 Handler from DSO to suPHP Zend Optimizer is no longer functional and not listed in a phpinfo. When I move it back to DSO it re-appears.

I need to get it working with suPHP of course.
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
Any ideas?

I have tried using a manual install with the zend optimizer with no luck.
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
Yes, that is correct. eacelerator will not work with suPHP. Zend Optimzer on the other hand will absolutely work with it.

I don't know much about Zend optimizer, but I know that things like eaccelerator will not work with suphp. Are you sure that Zend optimizer will?
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider

Michael-MS

Well-Known Member
Apr 16, 2003
144
0
166
Having the same problem as original poster. Zend Opt works with CGI but not with suPHP.. swapping between the two in WHM enables/disables Zend Opt server-wide.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
41
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
What is your PHP version?

Code:
php -v
Please post the entire content of the return for that command and do this when you have suPHP enabled with Zend Optimizer enabled. You can also just install Zend Optimizer using this script:

Code:
/scripts/phpextensionmgr install ZendOpt
The uninstall command would be:

Code:
/scripts/phpextensionmgr uninstall ZendOpt
 

Michael-MS

Well-Known Member
Apr 16, 2003
144
0
166
php -v
PHP 5.2.17 (cli) (built: Mar 14 2011 15:09:52)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

PHPINFO() does not return the same info. It is showing no Zend Optimizer. If I change from suPHP module to CGI then it works.

P.S. Just ran /scripts/phpextensionmgr install ZendOpt and it didn't change anything.
 

Michael-MS

Well-Known Member
Apr 16, 2003
144
0
166
cPanel support helped me fix it. (thanks Nick!)

I had some bad local php.ini settings in the folder I was testing. Copied over the php.ini file fresh and suPHP loaded up Zend Opt perfectly. Sorry guys, noob mistake on my part.