Missing apxs in Apache 2

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
czamora
Forum Newbie
Posts: 8
Joined: Thu Feb 26, 2004 9:30 am

Missing apxs in Apache 2

Post by czamora »

Hi,

I'm trying to install php 4.4 from source, and my server has Apache 2.0, but it lacks apxs. How can I install php then? What option should I use in the configure (--with-apxs2=... does not work because it does not find the apxs app).

Any hints will be appreciated.
Thanks.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

It should be in <apache prefix path>/bin/apxs

If it's not then you most likely didn't compile apache with support for it ;)
czamora
Forum Newbie
Posts: 8
Joined: Thu Feb 26, 2004 9:30 am

Post by czamora »

Oh, I forgot to mention that the current php on that server was compiled with --with-apxs2=/usr/sbin/apxs, but there is not such file at /usr/sbin
So Apache must have had support for it, right?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

czamora wrote:Oh, I forgot to mention that the current php on that server was compiled with --with-apxs2=/usr/sbin/apxs, but there is not such file at /usr/sbin
So Apache must have had support for it, right?
If you've never changed the apache installation then it should be there.... if it's not there then something must have changed with apache. Have you tried /usr/bin/apxs ?
czamora
Forum Newbie
Posts: 8
Joined: Thu Feb 26, 2004 9:30 am

Post by czamora »

I haven't changed anything on the apache installation since I rented the server with it already installed.
I have tried /usr/bin, and I have even searched with "find / -name apxs", but only found:

/var/www/manual/programs/apxs.html
/usr/share/man/fr/man1/apxs.1.gz

Any ideas on how to restore apxs?
Thanks a lot.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

czamora wrote:Any ideas on how to restore apxs?
Grab a copy of the apache sources and install it again enabling apxs when you ./configure.
czamora
Forum Newbie
Posts: 8
Joined: Thu Feb 26, 2004 9:30 am

Post by czamora »

Ok, thanks, I'm trying that. But I would need to know the exact ./compile command that I should use so that the new installation behaves exactly the same as the existing apache web server.
Is there a way to find out what parameters were used in the ./compile command for an existing web server?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

czamora wrote:Ok, thanks, I'm trying that. But I would need to know the exact ./compile command that I should use so that the new installation behaves exactly the same as the existing apache web server.
Is there a way to find out what parameters were used in the ./compile command for an existing web server?
It's ./configure not ./compile ;)

I think phpinfo() tells you this but if you still have the old source directory from when you installed previosuly (NOTE: You should always store these somewhere!) then:

`cat /path/to/old-httpd-source/config.nice'

That contains the last ./configure details you ran.

I'm not sure if enabling the extended status info in httpd.conf gives you this information too. I bet ~timvw has an answer :P
Post Reply