Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-09-2005, 08:14 PM   #1
Registered: Nov 2004
Distribution: Shrike
Posts: 55

Rep: Reputation: 15
Installing PHP onto Apache


I'm trying to install PHP onto apache, unfortunately the apache that came with Redhat 9.0, might not have been compiled with DSO support.

Thus when i try to compile php with the following command

./configure --with mysql --with-apxs=/usr/local/apache/bin/apxs
In the end i get an error

 Sorry, I was unable to successfully run APXS. Possible reasons:
1. Pearl is not installed
2. Apache was not compiled with DSP support (--enable-module=so);
3.'apxs' is not in your path. Try to use -with-apxs=/path/to/apxs
The output of /usr/local/apache/bin/apxs: No such file or directory
configure:error: Aborting

2. Apache was not compiled with DSO support (--enable-module=so);
so what im asking is there any way to activate DSO support and if not how do i remove the old apache and install the new one.

Thank you.
Old 07-10-2005, 05:15 AM   #2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,542

Rep: Reputation: 101Reputation: 101
Well, to uninstall Apache, go to /usr/local and MAKE SURE YOU TYPE CORRECTLY:

rm -rf apache2 <enter>

This will remove apache and all its subdirectories. Be careful, if you make a typo you can delete stuff you might not want deleted. Obviously, you'll need to be root to do this.

You can then attempt to reinstall Apache. If an instance of Apache is running, first stop / kill it before trying to start up the "new" Apache.

One thing I also noticed is that I got exactly the same error as you when I tried to compile the Apache version I used on RH9 (2.0.48) on Fedora Core 3 - I had to get Apache 2.0.54 before I could again compile Apache on FC3, WITHOUT the exact same error you are experiencing.

Hope this helps!
Old 07-10-2005, 01:39 PM   #3
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
I personally would recommend this LAMP tutorial by Bruce Timberlake. It worked for me, and the writing is very clear. Good luck with it -- J.W.


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
Installing Apache, MySQL and PHP foo_mulan Linux - Newbie 1 07-16-2004 06:28 AM
Problems installing Apache 2.0.49, PHP 4.3.6, and GD 2.0.22 Thorin98 Linux - Newbie 1 04-20-2004 02:13 AM
Installing Apache 2, PHP 4.3.4 and MySQL 4.0.17 drews Slackware 12 02-15-2004 06:52 PM
need help installing php with apache jsbush Linux - Newbie 3 11-17-2003 09:06 PM
Installing Apache/MySQL/PHP triki Linux - Software 3 09-24-2003 01:28 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 AM.

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