Problem with apache and php

swiety4

New member
Joined
Apr 3, 2012
Messages
3
When I recompiled php 5.2.17 with --enabled-exif
./build clean
./build php n

when compialtion finished APACHE stop working

Stopping httpd: [ OK ]
Starting httpd: httpd: Syntax error on line 18 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: undefined symbol: sapi_globals

this is Centos 6.2 , apache 2.2 , php 5.2.17
 
more info

php -v
PHP 5.2.17 (cli) (built: Feb 4 2012 10:02:00)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.10, Copyright (c) 2002-2011, by ionCube Ltd., and
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

-------------------------------
cat /usr/local/directadmin/custombuild/configure/ap2/configure.php 5
#!/bin/sh
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql \
--with-mysqli \
--with-pcre-regex=/usr/local \
--with-pdo-mysql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-mbstring
 
What do you expect you are using an outdated insecure version of php. Upgrade it with custombuild.
 
Problem solved.
Unfortunately, few clients have pages that do not work correctly in 5.3.x this server must be for them to v5.2.17.

solution was
deleting the directory. / custom /

./bulid clean
./bulid update

added --enabled-exif in file configure.php5

./bulid php y
 
You should copy the configure folder into custom, cause on a new build update your configure.php5 will be overwritten, so, at least that file (mantaining directory listing) is pretty suggested.

Regards
 
Back
Top