HTTPS not interpreting PHP code

Discussion in 'Apache' started by youradultworld, Dec 19, 2008.

  1. #1
    Yesterday my host had to fix a problem where if you tried to go to https://www.somedomain.com/somefile.html it would show a 404 even though you could verify the file exists via FTP.

    That problem was fixed but now I see that if I go to https://www.somedomain.com/somefile.php the php code is sent to the browser instead of being interpreted by the server.

    If I go to http instead of https all my php files work fine but when I put them in my httpsdocs folder and run the php file the html looks fine but if you view source you can see my actual php code instead of html being output.

    My hosting company is slow as molasses so I'm hoping someone knows how to help. If I loook at php info it shows mod_ssl is installed and my certificate is installed correctly as well. I'm not really sure what else to look for and it seems google isn't very helpful on this topic.

    Any ideas or suggestions?

    Chris
     
    youradultworld, Dec 19, 2008 IP
  2. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sounds like you need a new hosting provider ;)
     
    SSANZ, Dec 20, 2008 IP
  3. phper

    phper Active Member

    Messages:
    247
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Add this to your .htaccess file and see if it works:
    AddType application/x-httpd-php .php
     
    phper, Dec 22, 2008 IP