LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing PHP onto Apache (https://www.linuxquestions.org/questions/linux-software-2/installing-php-onto-apache-341722/)

LinuxStart 07-09-2005 08:14 PM

Installing PHP onto Apache
 
Hi

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

Code:

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

Code:

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.

rylan76 07-10-2005 05:15 AM

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!

J.W. 07-10-2005 01:39 PM

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.


All times are GMT -5. The time now is 01:41 AM.