Home arrow PHP arrow 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.

TABLE OF CONTENTS:
  1. The Soothingly Seamless Setup of Apache, SSL, MySQL, and PHP
  2. Assumptions
  3. Prerequisites
  4. How it Works
  5. Game Plan
  6. PHP Installation (*NIX)
  7. Apache
  8. Testing Our Work: Is Apache working?
  9. Is SSL Working?
  10. Are PHP and MySQL Working Together?
  11. Conclusion
By: Israel Denis Jr. and Eugene Otto
Rating: starstarstarstarstar / 41
June 07, 2000

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
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.


 
 
>>> More PHP Articles          >>> More By Israel Denis Jr. and Eugene Otto
 

blog comments powered by Disqus
   

PHP ARTICLES

- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap

Dev Shed Tutorial Topics: