LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot load libphp4.so into server. (https://www.linuxquestions.org/questions/linux-software-2/cannot-load-libphp4-so-into-server-523949/)

wlaki 01-30-2007 12:20 AM

Cannot load libphp4.so into server.
 
Hello all.

I tried configuring PHP with cURL.
Installed the latest version of curl - 7.16.1.
Curl installs ok and i then i do configure of php and then do make and make install.
But when i try restarting apache i get the following error -

Syntax error on line 209 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: empty_string

I have checked to see if the path to libphp4.so is correct or not. It is correct and the file does exist in /usr/local/apache/libexec/

I have tried configuring php without curl but i still get this error.

Any ideas? Iam unable to find any information anywhere on this.

Do i need to install the latest versions of php and apache?

My OS is centos 4.4, apache 1.3.36 and php 4.4.4

bathory 01-30-2007 02:08 AM

Move libphp4.so to another location and recompile php to see if it works. Sometimes "make install" does not ovewrite the old module.

wlaki 01-30-2007 02:34 AM

Thanks for your reply.
Tried what you suggested. I moved libphp4.so to another location and recompiled php. But it still shows the same error.

bathory 01-30-2007 02:50 AM

Did you ran "make clean" before re-compiling php?

wlaki 01-30-2007 03:22 AM

bathory, thank you very much. Im just getting my feet wet with linux.
Yes thats the trick i missed. I did a make clean this time before recompiling php with curl and it works beautifully.

Also if it would be of interest to anyone, PHP didnt compile with the lastest version of cURL, so i compiled it with an older version of cURL - 7.14.0 and it works well.

cheers.


All times are GMT -5. The time now is 04:32 AM.