LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2006, 01:28 PM   #1
johndmann
LQ Newbie
 
Registered: Mar 2006
Location: Texas
Distribution: Debian Sarge
Posts: 16

Rep: Reputation: 0
PHP Not Working Right?


I have Debian Sarge 3.1, running Apache 1.3.33, PHP4. My PHP modules are installed in Apache, and even the mime type is set, but when I browse to my domain, it pops open a window asking me to save index.php to disk, instead of parsing it. Any clues?

This is a fresh install from Debian Netstall CD. After booting, ran:

apt-get install curl
apt-get install php4-pear
apt-get install php4 php4-cgi php4-imap php4-mysql
apt-get install mysql-server mysql-client
apt-get install apache-common
apt-get install apache

And checked Apache to be sure it was working
index.html works fine, but index.php prompts user for download.

Last edited by johndmann; 03-12-2006 at 01:31 PM.
 
Old 03-12-2006, 02:08 PM   #2
johndmann
LQ Newbie
 
Registered: Mar 2006
Location: Texas
Distribution: Debian Sarge
Posts: 16

Original Poster
Rep: Reputation: 0
Well, even though it was in my modules.conf, php4 wasn't enabled or something...

apache-modconf apache enable mod_php4

Is all I needed in the end!
 
  


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
Help getting php working TheDirtyPenguin Linux - Software 12 03-19-2004 05:19 AM
PHP not working SoftwareParadis Linux - Software 1 06-08-2003 03:02 PM
PHP Not working.. Dirt Linux - Newbie 1 06-06-2003 08:22 PM
PHP not working Tekime Slackware 6 08-22-2002 03:01 PM
PHP Not working? hubergeek Linux - Software 1 03-26-2002 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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