Blog Archives for category php

configure: error: Please reinstall the libmagic distribution

I was installing fileinfo from source in a litespeed server. cd /usr/src wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz tar -zvxf Fileinfo-1.0.4.tgz /usr/local/lsws/lsphp5/bin/phpize ./configure –with-php-config=/usr/local/lsws/lsphp5/bin/php-config… Continue reading »

openssl.c:182: error: expected specifier-qualifier-list before ‘LHASH’

‘make’ command gave me the following error while trying to compile php 4.4.9 in a RHEL6 server. /usr/src/php-4.4.9/ext/openssl/openssl.c:182: error: expected… Continue reading »

make: *** [ext/dom/node.lo] Error 1

Got the following error while running make command in a custom php-5.3 installation in a server. /usr/src/php-5.3.10/ext/dom/node.c: In function ‘dom_canonicalization’:… Continue reading »

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in

I was getting the following error on my website. Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or… Continue reading »

PHP COMPILATION ERRORS

Some PHP compilation errors you may encounter while configuring PHP and their fixes: checking for BZip2 support… yes checking for… Continue reading »

Fatal error: Call to undefined method Zend_Validate_Hostname::setTranslator()

Got the following error while trying to submit a form in one of our sites. Fatal error: Call to undefined… Continue reading »

/usr/selector/php.ini

Selector is cloud linux addon used to select version of PHP interpreter inside CageFS. PHP info page under user accounts… Continue reading »

/usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so doesn’t appear to be a valid Zend extension

Got the following error while trying to check the php version in a server.   php -v /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so doesn’t appear… Continue reading »

Enable/Install php file info module in linux servers

To enable php fileinfo on your server please follow the below steps. 1. Download and extract the package wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz tar… Continue reading »

Executable not set-uid root

Internal server error was encountered when couple of PHP sites were called after an easy apache upgrade in one of… Continue reading »