Page 1 of 1

Debian / Php / Apache

Posted: Sat Sep 16, 2006 2:43 pm
by Todd_Z
I don't know whether this is a ubuntu issue or a debian issue in general, but when i perform a

Code: Select all

sudo apt-get install php
It will install apache along with it. Why must I install apache to have php? I am trying to use lighttpd and having apache on my machine just makes things more difficult.

Posted: Tue Sep 19, 2006 7:24 am
by ibbo
Your php distro may have been compiled against Apache (plus its normall used in conjunction with Apache) therefore your package manager (apt) will have) flagged this and set Apache to be a dependant of php (or visa versa).

If you dont want it to install you can try apt --ignore-deps=Apache

ibbo

Posted: Tue Sep 19, 2006 8:00 am
by Jenk
have a look at the man pages for the various flags for apt-get

Code: Select all

man apt-get

Posted: Fri Sep 29, 2006 9:07 am
by a94060
if your trying to set up debian lmap server,genius guide at http://allyourtech.com/content/articles ... _linux.php

Re: Debian / Php / Apache

Posted: Fri Sep 29, 2006 9:57 am
by timvw
Todd_Z wrote:I don't know whether this is a ubuntu issue or a debian issue in general, but when i perform a

Code: Select all

sudo apt-get install php
It will install apache along with it. Why must I install apache to have php? I am trying to use lighttpd and having apache on my machine just makes things more difficult.
blame it on the meta-package :p (anyway, isn't there a php-cli package that gives you just php? ;))

Posted: Fri Sep 29, 2006 11:19 am
by Todd_Z
well i am using lighttpd, so thats why i did't want the apache dirtying up the system

Posted: Fri Sep 29, 2006 3:05 pm
by Christopher
Usually with Debian there are specific packages named something like "lighttpd-php5". You might want to check for something like that.

Posted: Fri Sep 29, 2006 5:39 pm
by Todd_Z
thats not the problem, lighty is very easy to configure/use with php. It was just that when i install php5, apache is automatically detected as a dependency, which doesn't make sense to me. Whatever, its easy to get around.

Posted: Sat Sep 30, 2006 1:44 pm
by Jenk
http://www1.apt-get.org/search.php?quer ... %5B%5D=all

For a list of the available php packages.