Results 1 to 8 of 8
  1. #1

    HTTPS not processing .php .html

    Hi,

    I've just set up HTTPS on Apache (CentOS). However if I try to access the HTTPS site I just get prompted with the save as dialog to download either the .php file or .html. How do I get it to show (and process) it instead, like when accessing normally (non-ssl).

    Thanks

  2. #2
    Join Date
    Jul 2008
    Location
    France
    Posts
    105
    by default u shouldnt need to add any types. Does it work normally when accessing php files from http?

  3. #3
    Quote Originally Posted by chaosuk View Post
    by default u shouldnt need to add any types. Does it work normally when accessing php files from http?
    Yes it works normally when accessing it from http, I'm completley out of ideas now as to what it could be .

  4. #4
    Anyone else got any ideas. Been Googling for days but to no avail.
    .html files work fine over HTTPS just not php.

    I've attached my httpd.conf file if any one can be kind enough to look at it.

    Thanks

  5. #5
    It may have to do something with: AddHandler or AddType and making sure php pages are allowed to be used in an apache SSL state.

    Not 100% sure at the moment.

  6. #6

  7. #7
    Cheers for the reply.

    I'm pretty sure all the hanlders/types are correct, that link was one of the guides I used to set up HTTPS. :/

  8. #8
    Update: For any one else having the same problem I managed to fix it by upgrading to php5 (was previously on php4).
    Yum update -y -php

    Cheers for the help guys!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •