LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-18-2004, 01:53 AM   #1
phamtranquocvie
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Rep: Reputation: 0
apache not able to recognize php files


Hello,
I just installed apache 2.0.48 and php4.3.x.x. After every thing is done, I try:
http://locahost/~user/test.php and it says,
"The file is of type application/x-httpd-php and Mozilla does not know how to handle this file type". Could you please tell me what is wrong.

I added This line: AddType application/x-httpd-php .php to httpd.conf already.

Thanks
 
Old 03-18-2004, 05:43 AM   #2
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
Hello phamtranquocvie,

you should add this line to the 'mime.types' file:

application/x-httpd-php php

your httpd.conf should have these lines:

LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c

greetz,
-= iluvatar =-

*** EDIT ***
or did they change the configuration files with apache 2 so much? this is for apache 1.3.27...

Last edited by iluvatar; 03-18-2004 at 05:46 AM.
 
Old 10-06-2004, 11:32 AM   #3
cascokid
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
"localhost" in http://localhost/~me/file.php
is not resolving to your ip number. Use
the actual IP number "127.0.0.1" or other.
http://127.0.0.1/~me/file.php will work OK.
 
  


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
apache config files and php waynejkruse10 Linux - Software 8 12-05-2006 09:40 PM
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
php files errors on apache - sometimes amimusa Debian 1 04-07-2005 12:52 PM
writing files on to apache with php djgerbavore Programming 12 11-15-2004 02:01 PM
running apache/php files limp Programming 3 11-07-2004 08:10 PM


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