Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Regular Coder
    Join Date
    Apr 2005
    Location
    Lahore, Pakistan
    Posts
    150
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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

  • #3
    Senior Coder TheShaner's Avatar
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Posts
    1,126
    Thanks
    2
    Thanked 40 Times in 40 Posts
    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


  •  

    Posting Permissions

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