Miscellaneous ApacheSSL Items
Starting, Stopping, & Restarting ApacheSSL
The ApacheSSL web server is controlled through the httpsdctl program, located in /opt/apachessl/bin. To start, stop, or restart the web server (useful after changing the configuration files), simply call the httpsdctl program as root and pass it the function you wish to perform as an argument.
To start the web server,
/opt/apachessl/bin/httpsdctl startTo restart the web server,
/opt/apachessl/bin/httpsdctl restartTo stop (shutdown) the web server,
/opt/apachessl/bin/httpsdctl stop
Automatically Starting & Stopping ApacheSSL With Init
Since having to manually stop and start ApacheSSL each time you reboot your computer gets to be a hassle very quickly, you can use init to automatically start and stop Apache when the system shuts down or starts up.
To stop Apache, create a file name K09apache in the /etc/rc.d/rc0.d directory for Linux (or /etc/rc0.d for more standard Unices, like Solaris). You'll have to become root to be able to do this. In this file, type:
/opt/apachessl/bin/httpsdctl stopBecome root and change the permissions of the file to 755, and make it owned by user root.
chmod 755To start Apache, create a file named S50apache in /etc/rc.d/rc3.d for Linux (or /etc/rc3.d for Solaris and friends). In this file, type:
chown root K09apache
/opt/apachessl/bin/httpsdctl startJust like the file to stop Apache, become root and change the permissions to 755 and make it owned by root:
chmod 755
chown root S50apache