Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 06-09-2005, 03:55 AM   #1
Registered: Jul 2003
Posts: 152

Rep: Reputation: 30
Apache2 and php4 in Debian

Hi All:

I've just install the newest Debian 3.1 (with kernel 2.6).
I trust the apt-get tool and install the apache 2 and php4 by

apt-get install apache2
apt-get install php4

After installation, the apache2 works fine (I can browse my homepage).
However, the php4 doesn't work.

Question 1.
I found that the installation php4 include the apache 1.3.
Is it normal?
Do I need to use the apache 1.3 instead of apache 2?

Question 2.
I've modified apache2.conf and httpd.conf based on the php official homepage. It still doesn't work.
What changes should I make? Any suggested readings?


Old 06-09-2005, 05:21 PM   #2
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Apache2 on Sarge works differently:

Configuration files for your websites go into /etc/apache2/sites-available/ and you need to symlink them from /etc/apache2/sites-enabled/. The same goes for modules.

For php you'll need libapache2-mod-php4 to connect the two. If you have this installed it shouldn't be installing Apache 1.3.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 not processing PHP4 pages on Debian Sarge blue penguin Linux - Software 8 08-24-2006 02:56 PM
Help loading php4-gd with php4 already installed. (Debian) sdduuuude Linux - Software 3 10-24-2005 05:13 AM
apache2 + php4 atheist Linux - Software 6 10-25-2004 03:12 PM
php4 with apache2? the debian way, how? Tisch Debian 4 08-19-2004 09:35 AM
Debian, apache2 and php4 Pasi Linux - Distributions 1 03-20-2003 07:28 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration