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.
Missing apxs in Apache 2
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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 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?
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.
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.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
It's ./configure not ./compileczamora 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?
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