Debian / Php / Apache

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Debian / Php / Apache

Post 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.
User avatar
ibbo
Forum Commoner
Posts: 51
Joined: Tue Sep 19, 2006 6:20 am

Post 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
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

have a look at the man pages for the various flags for apt-get

Code: Select all

man apt-get
User avatar
a94060
Forum Regular
Posts: 543
Joined: Fri Feb 10, 2006 4:53 pm

Post by a94060 »

if your trying to set up debian lmap server,genius guide at http://allyourtech.com/content/articles ... _linux.php
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Re: Debian / Php / Apache

Post 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? ;))
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

well i am using lighttpd, so thats why i did't want the apache dirtying up the system
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Usually with Debian there are specific packages named something like "lighttpd-php5". You might want to check for something like that.
(#10850)
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post 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.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

http://www1.apt-get.org/search.php?quer ... %5B%5D=all

For a list of the available php packages.
Post Reply