Page 1 of 1
Missing apxs in Apache 2
Posted: Sun May 28, 2006 7:52 pm
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.
Posted: Mon May 29, 2006 4:07 am
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

Posted: Mon May 29, 2006 5:54 am
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?
Posted: Mon May 29, 2006 6:31 am
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 ?
Posted: Mon May 29, 2006 10:20 am
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.
Posted: Mon May 29, 2006 11:45 am
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.
Posted: Tue May 30, 2006 7:13 am
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?
Posted: Tue May 30, 2006 7:28 am
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
