LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-02-2004, 03:18 AM   #1
myguest
LQ Newbie
 
Registered: Jun 2004
Location: Zimbabwe
Distribution: redhat
Posts: 21

Rep: Reputation: 15
Angry Apache and Php problems


I installed Apache 2.0.49 and configured with --enable-so option. I tested and it worked fine.

I then installed php 4.3.6 which i ran the configure script with --with-apxs2 option.

My problem came then i added the line to load the PHP module in my httpd.conf file.

I tried to start apache server and i am getting the following error :

cannot load libphp4.so into the server, no such file or directory.

I also tried to search for the file on the entire server but there is no such file.

Other thing i tried was recompiling and reinstalling both apache and PHP but i am still getting the same problem


Other Information - redhat 9.0
 
Old 06-02-2004, 07:14 AM   #2
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Rep: Reputation: 30
Could you post all the configuration flags you used when ./configureing both apache and php?

Here's a tutorial I used for setting up php with Apache: http://lamps.efactory.de/e-lamps-2-0.shtml
It's pretty good but a bunch of things had to be modified for it to work for me so just let me know if you run into any problems and I'll look up what it was exactly that I did.
 
Old 06-03-2004, 04:05 AM   #3
myguest
LQ Newbie
 
Registered: Jun 2004
Location: Zimbabwe
Distribution: redhat
Posts: 21

Original Poster
Rep: Reputation: 15
I configured apache with the following configure options

./configure --prefix=/etc/httpd/conf --eneble-so


And as for PHP
./configure --with-apxs2=/etc/httpd/conf/bin/apxs --with-mysql

I also wanted to ask how to uninstall these two packages so that i can start
again
 
Old 06-05-2004, 05:00 PM   #4
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Rep: Reputation: 30
I didn't ./configure apache with --eneble-so but php worked fine for me.
I'm not sure how to uninstall. It's sometimes possible to just type "make uninstall" but sometimes you have to track down the files installed and remove them by yourself.
Here's how I ./configured php:
Code:
./configure --with-apxs2=/etc/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/lib --enable-versioning --enable-track-vars=yes --enable-url-includes --enable-sysvshm=yes  -enable-sysvsem=yes --enable-ftp --with-config-file-path=/etc --with-gd && make && make install
 
Old 06-05-2004, 06:34 PM   #5
jrbush82
Member
 
Registered: Mar 2002
Location: Hampton, VA
Posts: 86

Rep: Reputation: 15
Do a search on your system for libphp4.so and double check to be sure that it is being called from the correct location in the httpd.conf file.

ie: find / | grep libphp4.so

or

locate libphp4.so

If you see that it isn't being called correctly, just change the path in the config file.
 
Old 06-05-2004, 06:48 PM   #6
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
myguest

Redhat 9 should have Apache on the install CD's and has PHP precompiled

Pete
 
Old 06-11-2004, 09:28 AM   #7
myguest
LQ Newbie
 
Registered: Jun 2004
Location: Zimbabwe
Distribution: redhat
Posts: 21

Original Poster
Rep: Reputation: 15
I searched for libphp4.so using both find / | grep libphp4.so and secondly

find / -name libphp4.so and there is no such file on my server
 
  


Reply



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
Problems with PHP on Apache Super Tijano Linux - Software 3 11-19-2005 01:21 PM
Apache 1.3.33 + PHP 5.02 problems... NuTBoMbS Linux - Software 1 11-09-2004 01:36 AM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
php + apache problems nocturnal Linux - Software 1 07-02-2003 07:50 PM
php on apache problems andrew001 Linux - Software 3 06-21-2003 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration