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 07-02-2008, 02:58 PM   #1
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Rep: Reputation: 31
trouble with PHP/Apache....


Ok, I am running Etch on my main server (had it in for a while), and am just now getting to putting apache and all that on it. Before I ran Apache/MySQL/PHP to assist with any web development I do on previous servers. So for this server I had installed Apache and turns out I forgot to install PHP. So anyways, I installed PHP last night and do have Apache up and running, but when I open a PHP page it's like it wants to save it...almost like it doesn't recognize the file. But html and css it loads up fine. I do have the AddType application/x-httpd-php .php and AddType application/x-httpd-php-source .phps lines uncommented for PHP4. Also LoadModule php4_module /usr/lib/apache/1.3/libphp4.so shows up in the modules.conf file. I have performed an updatedb and restarted the server (apache itself I mean) a number of times with no success. Any ideas? Am I overlooking something else?
 
Old 07-02-2008, 04:57 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,644

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
How did you install php?
 
Old 07-02-2008, 06:33 PM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Did you install libapache2-mod-php5 alongside php?
 
Old 07-03-2008, 08:31 AM   #4
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

Original Poster
Rep: Reputation: 31
I installed it using apt-get. I don't believe I installed libapache2-mod-php5. Would that make a difference though as I mainly downloaded and installed PHP4?
 
Old 07-03-2008, 11:41 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
http://www.php.net/downloads.php
=>
Php 4 has been discontinued. In one month, there will be no more security updates.

Would be better to download the package mentionned by reddazz maybe?
 
Old 07-03-2008, 03:27 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,644

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
I was looking more for the names of the packages you installed.

apt-get install libapache-mod-php5 php5
 
  


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
Trouble installing OCI8 support w/ PHP Apache nathank Linux - Server 1 06-15-2007 06:43 AM
having trouble with apache and php mohtasham1983 Linux - Networking 0 04-18-2006 06:01 PM
PHP Sessions causing trouble in Apache 2 / SuSE 9.2 Spudley Linux - Software 1 06-08-2005 01:21 AM
PHP & Apache Trouble Boffy Linux - Networking 4 04-30-2004 06:09 PM
Apache + PHP = Trouble??? craddy Linux - General 5 01-26-2004 05:18 PM


All times are GMT -5. The time now is 01:55 PM.

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