While configuring PHP in the server following error was getting generated. checking whether to enable XMLWriter support… yes, shared checking for xml2-config path… (cached) /usr/bin/xml2-config checking whether libxml build works… (cached) yes checking for XSL support… yes, shared configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution Fix yum install libxslt-devel
Category: PHP
checking for PCRE headers location… configure: error: Could not find pcre.h in /usr
We were getting following PHP compilation error checking for PCRE headers location… configure: error: Could not find pcre.h in /usr Fix yum install pcre-devel
Steps for assigning PHP 5.3 with FCGI handler on easyapache 4 server.
If any website scripts stringently need FCGI handler for working, you can install it from EA4 experimental Repository. Follow below steps for assigning PHP 5.3 with FCGI handler on easyapache 4 server. 1. Install ea4-experimental Repository and mod_fcgid module. === yum install ea4-experimental yum install ea-apache24-mod_fcgid.x86_64 === 2. Create a file "/etc/apache2/conf.d/php-fcgi-53.conf" with below pasted … Continue reading Steps for assigning PHP 5.3 with FCGI handler on easyapache 4 server.
Error configure: *** apu library not found
Fix This can be fixed by using yum install apr-util-devel
PHP warning: Function ereg() is deprecated in includes/file.inc
In Php 5.3, ereg() should be replaced with preg_match better solution is using the preg_match replacement so elseif ($depth >= $min_depth && ereg($mask, $file)) { becomes elseif ($depth >= $min_depth && preg_match("/$mask/", $file)) {