Set up Apache
The default web server on a Sonic.net colocated Linux Server is Apache. For full information about the Apache server and its capabilities, please see http://www.apache.org/. This document is intended to assist in configuring a Sonic.net colocated Linux Server to host the website for a single domain name. It is necessary to resolve DNS to the server before this process will work.
By default, Apache is already installed, and configured to direct requests for a given domain name to /var/www/html/%0/web/ where "%0" is the domain name. This directory is not automatically created, so you will need to create it manually.
- Log into Webmin
- Select "Others" from the Webmin menubar.
View Full Image - Select "File Manager" from the "Others" menu.
View Full Image - A Java-based file management program will load.
View Full Image - Use the tree navigation
t the left to open the "var" directory, then "www," then "html."
View Full Image - Use the "New" button marked with a picture of a folder to create a new
folder. Give your new directory the same name as your domain.
- To allow requests for "www.yourdomain.tld" (where yourdomain.tld is the
name of your domain) you will need to create a
symlink to your new directory. Use the "New" button directly to the left of
the "Rename" button to create a symlink. Name your symlink
www.yourdomain.tld and direct it to /var/www/html/yourdomain.tld/
Once created, your symlink should appear in the file manager along with the actual directory.
View Full Image - Open your new directory. Create a new directory named "web" and another named "cgi"
- Upload your files.
- Configure startup actions to load httpd on startup.



