LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-22-2004, 04:36 AM   #1
Elijah
Member
 
Registered: Feb 2003
Location: Philippines
Distribution: Debian, Mandrake, Redhat
Posts: 90

Rep: Reputation: 15
Can't test php, browser keeps downloading it


Hi,

I'm using Debian and have apache, php4 and mysql installed (via apt-get). I've put the info.php to my /var/www directory (info.php contains phpinfo() to test my install), opened up mozilla firefox and entered: http://localhost/info.php

what happens is that firefox doesn't seem to recognize the php file and opens up the download prompt, same thing happens in IE in my WinME box.

What am I doing wrong??
 
Old 05-22-2004, 04:47 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Not too familiar with apt-get installation of these
tools, but it may well be that your apache doesn't
know anything about php yet ... found any relevant
references to php in httpd.conf (that is either an
include mod_php.conf or direct entries for addModule
and addType application)....?



Cheers,
Tink
 
Old 05-22-2004, 05:12 AM   #3
Elijah
Member
 
Registered: Feb 2003
Location: Philippines
Distribution: Debian, Mandrake, Redhat
Posts: 90

Original Poster
Rep: Reputation: 15
Only thing I found is the AddType:

Code:
    AddType application/x-httpd-php .php
    #AddType application/x-httpd-php-source .phps
I can't seem to find mod_php.conf and AddModule though...
 
Old 05-22-2004, 05:17 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Code:
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
is missing, then ...


Cheers,
Tink
 
Old 05-22-2004, 05:24 AM   #5
Elijah
Member
 
Registered: Feb 2003
Location: Philippines
Distribution: Debian, Mandrake, Redhat
Posts: 90

Original Poster
Rep: Reputation: 15
Cool. It's working fine now, Thanks a lot!

I had to change the first line though:

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
 
Old 05-22-2004, 03:56 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Glad I could push you in the right direction ;)


Cheers,
Tink
 
  


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
JavaScript/browser speed test WilliamS Slackware 0 02-14-2005 08:44 AM
Downloading from browser creates mumble jumble Kasperisa Linux - Newbie 2 07-15-2004 02:02 PM
problem downloading w/ any browser digsby0007 Linux - Software 2 08-16-2003 06:54 AM
Browser won't work while downloading funkenbooty Linux - Software 2 07-28-2003 05:09 PM
Downloading a new browser..help!!! suselinux Linux - General 1 09-02-2001 08:28 PM


All times are GMT -5. The time now is 05:59 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