Apache is running the wrong version of PHP.
Posted
by The Rook
on Server Fault
See other posts from Server Fault
or by The Rook
Published on 2010-05-20T04:25:07Z
Indexed on
2010/05/20
4:31 UTC
Read the original article
Hit count: 344
I am trying to enable CURL in php, and possibly update php as well. I have run into a road block where Apache seems to be running the wrong version of PHP. Here is some evidence.
#lsof | grep php
httpd 18397 nobody 135w REG 8,3 242 528537 /usr/local/apache/modules/libphp5.so
I download the latest php 5.2.13 and build from source. I run a service httpd stop
, do a make install
and then I manually overwrite /usr/local/apache/modules/libphp5.so
just to be safe. Using ldd
i can see that its my fresh binary compiled with curl (the old one doesn't have curl.)
ldd /usr/local/apache/modules/libphp5.so | grep curl
libcurl.so.4 => /usr/local/lib/libcurl.so.4 (0x0064e000)
I execute a phpinfo() and 5.2.3 is being executed instated of my new 5.2.13 and "curl" is nowhere to be found. What am I doing wrong? Why is curl disabled even though its statically linked? This is a RHEL 5.5 system.
© Server Fault or respective owner