LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-02-2005, 11:07 AM   #1
jme
Member
 
Registered: Sep 2003
Location: Hull, 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: 16
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: Hull, 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



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
Parsing PHP Scripts using Apache in SuSe 9.3 (without a dedicated server) elliotfuller SUSE / openSUSE 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

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

All times are GMT -5. The time now is 08:07 AM.

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