Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-05-2007, 02:06 PM   PM User | #1
mesh2005
New Coder

 
Join Date: Aug 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
mesh2005 is an unknown quantity at this point
Unhappy PHP is not working when using HTTPS

When I request the pages http://localhost/info.php it works fine but when I use https://localhost/info.php I get a box to save or open the info.php! The server sends the php file without execution! I use Apache 2,PHP 4 and MySQL 4 on Linux Ubuntu 6.06
Thank you
mesh2005 is offline   Reply With Quote
Old 07-05-2007, 02:19 PM   PM User | #2
eshban
Regular Coder

 
Join Date: Apr 2005
Location: Lahore, Pakistan
Posts: 150
Thanks: 2
Thanked 0 Times in 0 Posts
eshban is an unknown quantity at this point
go to this site and install this package. it will install php, mysql and apache as well.

in this package there is an option to run localhost at https:

Code:
http://www.apachefriends.org/en/xampp-linux.html
thanks
eshban is offline   Reply With Quote
Old 07-05-2007, 03:03 PM   PM User | #3
TheShaner
Senior Coder

 
TheShaner's Avatar
 
Join Date: Sep 2005
Location: Orlando, FL
Posts: 1,125
Thanks: 2
Thanked 40 Times in 40 Posts
TheShaner will become famous soon enoughTheShaner will become famous soon enough
Quote:
Originally Posted by eshban View Post
go to this site and install this package. it will install php, mysql and apache as well.

in this package there is an option to run localhost at https:

Code:
http://www.apachefriends.org/en/xampp-linux.html
thanks
Whoa! DO NOT DO THE ABOVE ADVICE if you do not want all your apache, php, and mysql configuration files and mysql data overwritten!!!

I haven't had to set up SSL on Apache just yet, but you should probably follow this guide:
http://www.linuxhelp.net/guides/apachessl/

This will help you set up your Apache server to run SSL, which is what you're attempting to do when you run https. You will need mod_ssl, which may or may not have come with your apache installation. You will have to check in your modules folder in apache. You will then have to modify your Apache configuration file to get it set up for SSL. Remember, you will need an SSL certificate to use SSL.

-Shane
TheShaner is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:14 AM.


Advertisement
Log in to turn off these ads.