Forum Moderators: phranque

Message Too Old, No Replies

I have a problem with https, apache, ssl and PHP

https, apache and ssl .... and PHP

         

DiGGer4445

2:34 pm on Jun 10, 2007 (gmt 0)

10+ Year Member



Hello,
I have a problem with https, apache and ssl.

Apache runs the php just fine in the normal mode [http://]
as well as html files, graphics etc.

However if I try to run a php file in a secure[https://] environment..
apache will send me the php source file using my browsers file download dialog box.
Html works just fine in the secure mode; as well as graphics etc.

I've reviewed all of the .conf files and everything looks correct...
Does anyone have any pointers?

Thank you,
Chris

jdMorgan

3:51 pm on Jun 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It sound like the configuration file for the HTTPS server is missing the AddType and AddHandler directives used in the HTTP server's config file to tell the server to execute PHP files instead of sending them to the client.

You should be able to copy those one or two lines of code from the HTTP config over to the HTTPS config.

Jim