[CentOS] I am running RHEL 4.4 and CentOS 4.4, I dont run Apache only Lighttpd. How do I compile php from php.srpm without apache support?

Barry Brimer lists at brimer.org
Fri Sep 8 12:50:43 UTC 2006

> Well I have been compiling php from srpm like this forever
> rpmbuild -ba --target=i686 php.spec
> But today it somehow bugged me, I dont use apache on this server. But
> its asking me to install httpd and httpd-devel to compile.
> Isnt there a syntax to skip the apache stuff?

You need to edit the spec file and remove references to httpd and apxs and 
then compile again.


More information about the CentOS mailing list