LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-09-2005, 04:55 AM   #1
swmok
Member
 
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?

Thanks.

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

Rep: Reputation: 30
Apache2 on Sarge works differently:

http://www.debian-administration.org/articles/101

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.
 
  


Reply


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 03:56 PM
Help loading php4-gd with php4 already installed. (Debian) sdduuuude Linux - Software 3 10-24-2005 06:13 AM
apache2 + php4 atheist Linux - Software 6 10-25-2004 04:12 PM
php4 with apache2? the debian way, how? Tisch Debian 4 08-19-2004 10:35 AM
Debian, apache2 and php4 Pasi Linux - Distributions 1 03-20-2003 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:46 AM.

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