Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: flits on November 01, 2009, 03:42:40 AM

Title: why does php5 require apache?
Post by: flits on November 01, 2009, 03:42:40 AM
Im looking into various distributions to turn an old pc into a webserver. Today im trying out tinycore and ive noticed something strange:

The php5 package is listing apache2 as dependency which i find odd. I intended to use nginx or maybe lighttpd but not apache since apache uses more resources. So im wondering why apache2 is a dependency
Title: Re: why does php5 require apache?
Post by: robc on November 01, 2009, 06:07:40 PM
The php5 extension is php for apache, it includes the apache module

If you want to use php as stand-alone or for a different httpd server (ie lighttpd) then you should use the php5-cgi extension. There are some instructions in the info file for how to get it to work with lighttpd and apache. I haven't tried it with others.