web analytics

Geeks Terminal

          Linux | Open Source | Web Hosting and more..

php logoIf you are getting following error related to suhosin

/usr/bin/php: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so: undefined symbol: zend_atol
[Sun Jan 30 11:07:08 2011] [error] [client] Premature end of script headers: /home/username/public_html/wp-admin/index.php

It means that suhosin should be disable for the particular domain

This can be done by  following some simple steps

1) Check the loaded global php.ini

# php -i | grep php.ini

Output

Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

2) Copy it under the account in the problem

# cp /usr/local/lib/php.ini /home/username/public_html

# cd /home/username/public_html

3) Edit php.ini using any editor

# vi php.ini

4) Search for

extension=”suhosin.so”

5) Comment the line

;extension=”suhosin.so”

6) Add the following line

suhosin.simulation=On

or

suhosin.simulation On

7) Restart apache service

 

 If any feedback, queries are always welcome!

The author is a Linux System Administrator and likes to blog.

Facebook Twitter LinkedIn Google+ 


Find helpful? Spread it!
Categories: PHP

Comments are closed.