Archive for August, 2010



Suhosin error on subdomain

Friday, August 20th, 2010

On a cPanel server, we were asked to install vbulletin on a subdomain and while doing so we came across errors which were not allowing us to install it. The errors were as below:

ERRORS :

[Wed Aug 11 13:58:17 2010] [error] [client 89.165.120.238] /usr/bin/php:

symbol lookup error:

/usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so:

undefined symbol: zend_atol, referer:

http://forum.mydomain.com/install/install.php?step=2

[Wed Aug 11 13:58:17 2010] [error] [client 89.165.120.238] Premature end of script headers: install.php, referer:

http://forum.mydomain.com/install/install.php?step=2

To get this issue fixed, you can do the below steps:

It seems that Suhosin breaks the application. So need to disable the Suhosin for this domain. You can disable the suhosin by creating a php.ini file at /home/username/public_html/php.ini with the following code.

suhosin.simulation = On

If you are still getting same error then you need to create same php.ini file with same code (suhosin.simulation = On) at each directories. In this case at these paths also /home/username/public_html/php.ini, /home/username/public_html/forum/php.ini and /home/username/public_html/install/php.ini

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


Plesk – Error: Unable to remove client: mailmng failed: Some errors occured.

Saturday, August 7th, 2010

On a plesk dedicated server while removing a client we were facing problems, we were getting the error:

Error: Unable to remove client: mailmng failed: Some errors occured. See log for details

Couldn’t find anything specific in the logs.

Solution:

Stop mail service by the below command:

root# /usr/local/psa/admin/sbin/mailmng --stop-service

Find all corrupted mail headers using the following command. For example:

root# find /usr/local/psa/handlers/before-* -type f | while read h ; do [ ! -d /usr/local/psa/handlers/info/$(basename $h) ] && echo $h  ; done

Delete the file you have got in the output of the above command:

rm -f /usr/local/psa/handlers/before-local/recipient/email@somedomain1.com/11-spam-asdDemCa

Run utility mchk to recreate mail handlers by the below command:

root# /usr/local/psa/admin/sbin/mchk --with-spam

Then, Start the mail service after the reconfiguration is completed by the below command.

root# /usr/local/psa/admin/sbin/mailmng --start-service

This should fix the problem that you’re facing, if for some reason this doesn’t work for you backup the handlers directory.

root# mkdir /root/back
root# cp -a /usr/local/psa/handlers/before-* /root/back/
root# cp -a /usr/local/psa/handlers/info /root/back/

Then, delete all the email handlers:

root# rm -rf /usr/local/psa/handlers/before-*/*
root# rm -rf /usr/local/psa/handlers/info/*

Run utility mchk to recreate mail handlers by the below command:

root# /usr/local/psa/admin/sbin/mchk --with-spam

Then, Start the mail service after the reconfiguration is completed by the below command.

root# /usr/local/psa/admin/sbin/mailmng --start-service

This should surely fix the problems.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.