To create a new file: >/usr/local/apache/bin/htpasswd -c .nameoffiletocreate username Add another user to an existing file or update password >/usr/local/apache/bin/htpasswd .nameoffile username File Notes: Put below web root (shouldn’t be able to access from web) Start with a period Set Permissions on the file >chmod o-r .* >chown nobody.nobody .nameoffile Edit Apache Config >pico /usr/local/apache/conf/httpd.conf [...]
Commands for the Apache Webserver’, ‘Startup with SSL: >/usr/local/apache/bin/apachectl startssl Startup without SSL: >/usr/local/apache/bin/apachectl start Restart (will check if you currently have SSL enabled): >/usr/local/apache/bin/apachectl restart Stop: >/usr/local/apache/bin/apachectl stop Check Configuration File: >/usr/local/apache/bin/apachectl configtest
In order to customize a website with custom directives you have to do so in a vhost.conf file. This file should be created and placed in the following directory: /usr/local/www/vhosts/domain.tld/conf/ An example of a vhost.conf file is below the two directives turn on register globals (allow PHP to pull variables directly from the query string, [...]