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 12-01-2004, 08:17 PM   #1
t3kn0lu5t
LQ Newbie
 
Registered: Aug 2003
Location: Indiana
Distribution: Debian recently from FreeBSD
Posts: 28

Rep: Reputation: 15
Problem with DirectoryIndex and PHP not processing


I have just installed Sarge, apache2, and php4 (with libapache2-mod-php4)

my DirectoryIndex list index.php, and when I go to http://www.mysite.com/index.php PHP will process the page like normal. However when I go to http://www.mysite.com, it sends me the php source in a file as opposed to processing it first.

Anyone experienced this? or know what I can do to solve my problem?

Thanks
 
Old 12-01-2004, 08:55 PM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 383

Rep: Reputation: 31
Re: Problem with DirectoryIndex and PHP not processing

Quote:
Originally posted by t3kn0lu5t
I have just installed Sarge, apache2, and php4 (with libapache2-mod-php4)

my DirectoryIndex list index.php, and when I go to http://www.mysite.com/index.php PHP will process the page like normal. However when I go to http://www.mysite.com, it sends me the php source in a file as opposed to processing it first.

Anyone experienced this? or know what I can do to solve my problem?

Thanks
This might sound insane, but I did find a reference to this exact problem for you. Take a look at this webpage:

http://httpd.apache.org/docs/misc/FA...set-servername

It appears that if you do not have your webserver properly named, it does not know how to handle the redirection that you are describing above....
 
Old 12-01-2004, 10:47 PM   #3
t3kn0lu5t
LQ Newbie
 
Registered: Aug 2003
Location: Indiana
Distribution: Debian recently from FreeBSD
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks for the info.
Unfortunately the symptoms aren't exactly the same, and my servername is set correctly.

I haven't had this problem with any other OS.. I know it's not the OS but some configuration that's deeper than my knowledge


help please
 
Old 12-02-2004, 01:17 AM   #4
debian_dummy
Member
 
Registered: Apr 2004
Distribution: Debian SID and Woody
Posts: 77

Rep: Reputation: 15

Dumb answer removed

Last edited by debian_dummy; 12-02-2004 at 01:18 AM.
 
Old 12-02-2004, 06:03 AM   #5
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 383

Rep: Reputation: 31
One other thing to check is to see if there is anything in /etc/apache{2}/conf.d that might be causing some issues. I know that php can sometimes put configuration files in there as well.
 
Old 12-02-2004, 12:33 PM   #6
t3kn0lu5t
LQ Newbie
 
Registered: Aug 2003
Location: Indiana
Distribution: Debian recently from FreeBSD
Posts: 28

Original Poster
Rep: Reputation: 15
Well, after hours last night of toiling, rebooting, reinstalling all to no avail, I woke up this morning and it 'just works'. Thanks to those who tried to help, must have just been one of those weird unsolvable occurances.
 
  


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
(Debian)DirectoryIndex not allowed here MDFH Linux - Newbie 1 02-04-2005 04:38 PM
PHP mysql_query not processing nro Programming 1 09-19-2004 09:43 PM
PHP.. not processing? digitaloutsider Slackware 2 04-29-2004 07:45 PM
apache 1.3.29 directoryindex and chmod axion0917 Linux - Software 1 11-30-2003 01:01 PM
Apache DirectoryIndex problem jester_69 Linux - General 1 07-14-2002 12:39 PM


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