LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-30-2007, 01:20 AM   #1
wlaki
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
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
 
Old 01-30-2007, 03:08 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,956

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Move libphp4.so to another location and recompile php to see if it works. Sometimes "make install" does not ovewrite the old module.
 
Old 01-30-2007, 03:34 AM   #3
wlaki
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 01-30-2007, 03:50 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,956

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Did you ran "make clean" before re-compiling php?
 
Old 01-30-2007, 04:22 AM   #5
wlaki
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
  


Reply

Tags
apache, installation, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot load libphp4.so becasue i havent such a file papitu76 Linux - Software 8 01-07-2005 01:12 PM
Can' t load libphp4.so into apache delfins Slackware 3 01-10-2003 10:49 AM
cannot load libexec/libphp4.so into server GabeF Linux - Software 1 11-29-2002 05:36 PM
Cannot load /usr/lib/apache/libphp4.so into server jmnovak Linux - General 3 07-01-2002 11:52 AM
apache can't load libphp4.so rangga_k Linux - General 7 03-01-2001 03:52 AM


All times are GMT -5. The time now is 03:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration