LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 05-02-2005, 11:07 AM   #1
jme
Member
 
Registered: Sep 2003
Location: Cardiff, UK
Distribution: Debian
Posts: 49

Rep: Reputation: 15
Apache-ssl not correctly parsing php files


I have recently installed apache-ssl onto my server to provide a secure site. I have it all installed with php working, but any time that I surf to the site or to any directory within the site where a index.php file is called I am prompted to download the file.

I have all the relevant options set in the httpd.conf file and have restarted so that it uses the new version, but I am still getting nowhere.

I hope that this is just me missing something really obvious.

Many thanks.

I have the following in my httpd.conf file:

Code:
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.php index.html index.htm index.shtml index.cgi
</IfModule>
[/code]

And

Code:
    #
    # And for PHP 4.x, use:
    #
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
php is working when you type the full url into the address bar (www.domain.com/index.php) but not when it should be reading the directory index.
 
Old 05-03-2005, 06:21 AM   #2
pave
Member
 
Registered: Oct 2004
Posts: 42

Rep: Reputation: 15
Your DirectoryIndex is inside <IfModule xxx> group. It means this line applies only if this module is loaded. Try to find another DirectoryIndex in your httpd.conf file. If there's no just add this line:

DirectoryIndex index.php index.html index.htm index.shtml index.cgi

somewhere outside any groups.
 
Old 05-03-2005, 12:04 PM   #3
jme
Member
 
Registered: Sep 2003
Location: Cardiff, UK
Distribution: Debian
Posts: 49

Original Poster
Rep: Reputation: 15
I thought that too but it doesn't make any difference even if it's outside of the module clause.

Many thanks.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing PHP Scripts using Apache in SuSe 9.3 (without a dedicated server) elliotfuller Suse/Novell 7 07-27-2005 11:40 AM
Apache + SSL + PHP + Mysql rjbandura Linux - Software 5 07-01-2004 12:31 PM
Problem with apache SSL and PHP Donboy Linux - Software 3 10-30-2003 12:08 PM
Apache Jail with SSL, PHP and MySQL dai Linux - Security 3 07-05-2003 06:35 AM
RH9 Apache/SSL/PHP/MySQL RPM vs tar.gz Ani Linux - Newbie 5 04-26-2003 10:43 AM


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