LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-02-2004, 06:09 PM   #1
familyman
LQ Newbie
 
Registered: May 2004
Distribution: Redhat/Debian
Posts: 10

Rep: Reputation: 0
New to debian, php problems with apt-get


Yesterday I got a vps account on a remote server with a stripped down install of debian. I am pretty excited to get away from redhat (a little too ms-like in mentality), but I'm really having a hard time just getting a LAMP solution in.

Excited about apt-get resolving dependency issues I jumped in.

# apt-get bind
(worked great)

# apt-get php5
# apt-get --purge remove php5
(decided to go with php4 instead)
# apt-get php4

# apt-get apache
(Hmm... installed 1.3, I was running 2 before)
# apt-get --purge remove apache
(Didn't seem to remove any init.d/rcX.d files.)
# apt-get httpd
(Uh... just going back to default)
# apt-get --purge remove httpd
# apt-get apache

# apt-get mysql-common mysql-client mysql-server

I go to domain, apache works great.

# touch /var/www/test.php
# echo "<?php phpinfo(); ?>" >> /var/www/test.php

Open Mozilla, go to mydomain.com/test.php. Tries to download php file.
Go into httpd.conf uncomment "AddType application/x-httpd-php .php"

# apachectl restart

Open Mozilla, go to mydomain.com/test.php, same problem. After hours of searching, re-apt-getting, and trying to manually recompile php. I am asking for help.

Also, I'm wondering if I can cleanly remove all the apt-get installs I've done, that didn't help me. I have limited hard drive space.

Thank you in advance

Last edited by familyman; 05-02-2004 at 06:13 PM.
 
Old 05-03-2004, 09:05 AM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
I guess you didn't configure Apache to enable php?
 
Old 05-03-2004, 09:55 AM   #3
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 30
You have to install php as a module of Apache.
 
Old 05-03-2004, 11:58 AM   #4
familyman
LQ Newbie
 
Registered: May 2004
Distribution: Redhat/Debian
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks a lot.

In case others have this problem and end up here...

How to get LAMP (Linux Apache Mysql Php) going on Debian.

# apt-get install apache
# apt-get install php4
# apt-get install mysql-common mysql-client mysql-server
# apt-get install php4-mysql

# vi /etc/apache/httpd.conf

Uncomment the following 2 lines:

AddType application/x-httpd-php .php
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

Thanks again!

Last edited by familyman; 05-03-2004 at 01:22 PM.
 
Old 05-04-2004, 11:58 AM   #5
CBlue
Member
 
Registered: Mar 2004
Location: South Carolina, USA
Distribution: Mepis
Posts: 287

Rep: Reputation: 30
Glad it's working for you now!
 
  


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
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM
Apt configuration problems during Debian Installation gunncyclopedia Linux - Networking 4 04-10-2005 09:56 PM
Installing newer version of php (apt-get) waffe Debian 11 06-09-2004 05:17 PM
problems with apt-get upgrade in Debian unstable Boogieman Debian 8 05-13-2004 02:18 PM
problems setting up libgtk2.0-common via apt-get on debian unstable f3lix Linux - Software 1 04-15-2003 12:41 PM


All times are GMT -5. The time now is 01:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration