I am trying to upgrade php on a rather old RedHat system. The process
looked pretty simple. I configured php with
configure --prefix=<...>/php-5.2.11 --enable-zip --with-mysqli --
with-mysql --enable-mbstring --with-gd --with-ldap --with-pear --with-
tidy --with-bz2 --with-openssl --with-apxs2=/usr/sbin/apxs --enable-
soap --enable-sockets --enable-pcntl --enable-ftp --enable-calendar
And everything "make"d and installed OK. I moved a copy of libphp5.so
into the path at the apache config expects and tried to restart the
web server. I get the message:
Starting httpd: Syntax error on line 201 of /etc/httpd/conf/
httpd.conf:
Cannot load /usr/lib/httpd/modules/libphp5.so into server: /usr/
lib/httpd/modules/libphp5.so: undefined symbol: _emalloc
What did I do wrong?
Which compiler are you using? Are you sure you don't have more than one
copy of the library on your system?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================
Hello,
this error can also accure if you succesfull compiled php but the final file
could not be copied to the right location, leaving the old file untouched.
Make sure you use the right so file and use the right user to compile php which
has access to the /usr/lib/httpd/modules/ folder.
regards,
johannes keßler
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (GNU/Linux)
iEYEARECAAYFAkru23YACgkQE++2Zdc7EtfPigCgjhMC3o68iuOv1e4saIsSNhai
8CIAoJmmRVdVkor0ltEsAjfGaBWFly+9
=GvV6
-----END PGP SIGNATURE-----
gcc version 3.2.3
I downloaded and configured php as me but compiled and tried to
install it as "root"
> I am trying to upgrade php on a rather old RedHat system.
...
> And everything "make"d and installed OK. I moved a copy of libphp5.so
> into the path at the apache config expects and tried to restart the
> web server. I get the message:
>
> Starting httpd: Syntax error on line 201 of /etc/httpd/conf/
> httpd.conf:
> Cannot load /usr/lib/httpd/modules/libphp5.so into server: /usr/
> lib/httpd/modules/libphp5.so: undefined symbol: _emalloc
>
> What did I do wrong?
The error message indicates that the system hasn't yet been informed of the
changes, and "ldconfig" as root should fix that if the proper entries exist
in /etc/ld.so.conf and/or the derivative directory /etc/ld.so.conf.d
That's version is over six years old. Current is gcc 4.4.2. I'm not
sure if PHP will work with a compiler that old or not. I doubt it.
I would highly recommend you upgrade gcc to a much more current version.