Click to See Complete Forum and Search --> : apxs problems


blobaugh
12-18-2003, 08:24 PM
I installed apache from a tar that was untarred in the dir /progs/http.... and then I just ran ./configure with no options, then make make install. The I installed mysql from an rpm. And now I'm trying to install php from a tarball. It keeps saying
Sorry, I was not able to successfully run APXS. Possible reasons:

1. Perl not installed
2. Apache not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of apxs follows
./configure: apxs: command not found
configure: error: Aborting

What do I need to do. I realize that I need apxs to install php. Do I need to reconfigure apache? How would I do that? Just run it like it was the first time? Or is there an easier way? Somehow to get apxs without recompiling? I searched on G4L and couldn't find anything but the man page. My com doesn't even have that, more proof it doesn't exist. So what should I do now?

j79zlr
12-19-2003, 06:23 AM
Did you install apache 2.0.48? If so you need to use --with-apxs2

blobaugh
12-19-2003, 12:50 PM
So if I do ./configure --with-apxs2 will it overwrite the first time I compiled or make a new set? I hoping you say overwrite cause I'm tight on space.

theN
12-20-2003, 03:50 AM
Originally posted by blobaugh
I realize that I need apxs to install php. Do I need to reconfigure apache? How would I do that? Just run it like it was the first time? Or is there an easier way? Somehow to get apxs without recompiling?
* AFAIK apxs is needed to run PHP as a DSO. If you want to run PHP directly as a Apache-module then you can configure PHP with --with-apache=/path/to/apache. I never tested this though and seems to be relevant only for Apache1.3x. Whats your Apache version?

Before you compile PHP, you can also do this - ./configure --help.

* Yes you *must* reconfigure Apache with mod-so to run PHP. All you need to do is ./configure --enable-so.

Apxs needs PERL in the path.

I don't know of anyway to get apxs with out recompiling Apache. Read the Apache docs.

* ./configure --with-apxs2=/path/to/apache/bin/apxs is the right way.

links - Apache Docs (http://httpd.apache.org/docs-2.0/) and PHP+Apache2 Installation (http://www.php.net/manual/en/install.apache2.php)

BTW, if you're using MySQL with PHP don't forget to do --with-mysql=/path/to/mysql.

If you don't know where the MySQL directory is, start MySQL and look for the mysql.sock file (usually in /tmp) and configure PHP with --with-mysql-sock=/path/to/mysql.sock

hth & regards
akr

blobaugh
12-20-2003, 01:59 PM
Well heres what I had going. I downloaded the newest Apache which is only available in tarball form. I'm not too used to dealing with compiling them and whatnot cause I have not done it too much. So rather than fight it I finally went and found the rpm for the older one. Thanks for all the help though

terets
12-27-2003, 08:16 PM
Here is some good info for you as well....

http://www.php.net/manual/en/install.apache2.php