• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Zend Optimizer & Plesk 9.0 problem

M

MikeVL

Guest
I`m need to use Zend Optimizer on Ubuntu 8.04 with Plesk 9.0.
After the installation was the next errors:

In apache log:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1096179541 bytes) in /var/www/vhosts/joblibrary.ru/httpdocs/dev/umitest.php on line 1

Fatal error: Call to undefined function (null)() in /var/www/vhosts/joblibrary.ru/httpdocs/dev/umitest.php on line 1
[Tue Jan 13 10:19:02 2009] [notice] child pid 25915 exit signal Segmentation fault (11)
[Tue Jan 13 10:19:05 2009] [notice] child pid 25909 exit signal Segmentation fault (11)
[Tue Jan 13 10:19:07 2009] [notice] child pid 25906 exit signal Segmentation fault (11)

# php -v
PHP 5.2.4-2ubuntu5.4 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 25 2008 22:10:31)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with the ionCube PHP Loader v3.1.29, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
Segmentation fault
 
Not sure if it is related, but I read somewhere that you have to take the lines out of the httpd.conf and put them in the ionCube conf.

Seems there is a conflict between ionCube and Zend.

Again, I don't know if it is related, but hopefully this gives you a direction to look.
 
Is there anything in suhosin.ini or php.ini that are limiting memory usage? Is your system low on memory when you get that error message ?

Does the website work at all?
 
Also can be also mod_security

SecResponseBodyLimit 2621440

It is happened to me some times as I remeber, but not 100% sure now. I try to look in my memory and is not upgraded yet. :))
 
Hi,

First of all check out the following article about segmentation fault when using ioncube and zend optimizer:
http://kb.odin.com/en/1336

If this does not help then make sure you have set set enough limits on memory in /etc/php.ini. Same problem discussed in the following article:
http://kb.odin.com/article_50_780_en.html (I know its about webmail but instructions for increasing memory limits would be same as in your case)

Also as you have Suhosin-Patch I would recommend looking at the following articles (would be helpful if you have Parallels Sitebuilder as well):
http://kb.odin.com/en/5429
http://kb.odin.com/en/5503
 
PHP with ionCube, Zend Optimizer and Suhosin patch started to work after turn off xcache.
 
Remove/Disable IonCube

I installed Zend Optimizer 3.3.3 and when I tried to start apache, a single unresponsive apache httpd process would go to 99.9% cpu usage. After searching, I found an answer on the Zend forums. I disabled (commented out with a ";") the ionCube module in the /etc/php.d/ioncube-loader.ini and then restart apache.

It most likely will hang and ignore stop commands, but if you are unable to stop apache after starting apache, you will need to stop apache, then kill the hung pid.

"apachectl -k stop" then "killall -9 httpd"

Original Thread that helped me: Zend Optimizer 3.3.3 installed but not work

That solved the problem with zend & ioncube problems.
 
The post above just disabled ioncube. I later realized that there was one site out of 200 that needed it for one page so it had to go back in.

I moved the stuff for zend out of the php.ini file into the file that I renamed /etc/php.d/ioncube-loader.ini to /etc/php.d/ioncube-and-zend.ini. Then I undid the symbolic link for the php.ini file that the zend installer made and put the php.ini file where it belonged.

I have no idea why the zend installed put the thread safety files in there along with the non-TS files. I just commented out the TS ones. Each line under the [Zend] section is what the installer put in there. Here is what my ioncube-and-zend.ini says:

zend_extension=/usr/lib/php4/ioncube_loader_lin_4.3.so

[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
 
Back
Top