Apache2 and PHP5 and missing apxs file on Fedora Core 3

Ok next problem that I bumped into today while trying to install PHP5 on Apache2.  In the php instructions it tells you to use the –with-apxs2 and point that to the apxs file.  Now the standard install of Fedora 3 doesnt install this file for you, so you need to install the httpd-devel package.  This can be done easily using up2date with this command.

up2date httpd-devel

and this will install the apxs file which for should now sit in /usr/sbin

then to configure the php5 issue the command

./configure –with-apxs2=/usr/sbin/apxs –with-mysql

hope that helps

7 thoughts on “Apache2 and PHP5 and missing apxs file on Fedora Core 3

  1. I’ll try that I’ve been trying to get PHP5 and MySQL to Work for two days now without luck…I hope this is it!

    Thanks
    Martin Lihme

  2. Cheers Paul. That saved me no end of hastle, works just as described, just update FC3 and configure PHP with the appropriate directives. Great stuff.

  3. “up2date httpd-devel” didn’t work for me (it couldn’t find it on the first few mirrors), but “yum install httpd-devel” did work – and /usr/sbin/apxs appeared – allowing compilation of php5… thanks 🙂

  4. Installing httpd-devel via yum also solves this missing apxs issue too. although I have a missing up2date that I have yet to solve…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.