WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: why does php5 require apache?  (Read 2235 times)

Offline flits

  • Newbie
  • *
  • Posts: 1
why does php5 require apache?
« 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

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: why does php5 require apache?
« Reply #1 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.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard