HomePHP Page 9 - The Soothingly Seamless Setup of Apache, SSL, MySQL, and PHP
Is SSL Working? - PHP
The much anticipated update to our original article on getting Apache, MySQL, Mod_SSL, and PHP to work seamlessly with each other is finally here! Ever try to get Apache, Mod_SSL, PHP, and MySQL all working in harmony on the same box? It's a very difficult task, but article author Israel Denis Jr. has come up with detailed instructions for compiling all these and getting them working together seamlessly to make the killer server software system.
Ok, now we are ready to test for SSL. First, stop the server, and restart with the SSL option enabled. # /usr/local/apache/bin/apachectl stop # /usr/local/apache/bin/apachectl startssl Test to see if it works, by connecting to the server with a Netscape and selecting the https protocol, (i.e. https://yourserver.yourdomain.com or http://yoursever.yourdomain.com:443 again). Also, try your server's ip (i.e. https://xxx.xxx.xxx.xxx: and http://xxx.xxx.xxx.xxx:443).
If it worked, the server will send the certificate to the browser to establish a secure connection which will make the browser prompt you for accepting the self signed certificate. If it were a certificate from VeriSign or Thawte then the browser will not prompt you because their certificates are coming from a trusted Certificate Authority (CA). In our case we created and signed our own certificates. We didn't want to buy one right away because we wanted first to ensure that everything worked properly.
You will see the following option enabled in Netscape. This tells you that a secure connection has been established.