Creating a Website
This article outlines the process that creates the mapping between your website domain and the folder on your server that contains the website files. You can have additional domains, known as aliases, pointing to your website as outlined in the following article.
Step by Step
Follow these steps to create a website:
When you are logged into the Control Panel click 'Websites' in the left menu.
Click "All Website Servers", then click the server on which you want to create the website.
Click the "Add Website" button, or the "Add website" link in the Website Options menu top/right, or the "Add" button above the grid. See Figure 1.
Basic View: Enter the domain name of the website you want to create. Optionally generate an FTP user for this website. See Figure 2.
Advanced View: Click the "Show advanced" button to switch to this view. This view allows you to change the IP address, website folder path, and whether statistics, or an FTP user is generated for the website. These settings may also be changed at a later time. See Figure 3.
Click the "Add website" button to confirm.
The confirmation page will display the Website Statistics password, and the FTP username / password, if these options were selected. See Figure 4.
Note: A default alias will have been created. You can read more about aliases in the Managing Website Aliases article.
This section will explain a few key concepts and terms used by this module:
FTP User - If you ticked "Auto-generate FTP User" the FTP user details will be displayed in a green box on the confirmation screen. See Figure 4. You can add new FTP users or edit users via the Website Options, or using the FTP Users module.
Website Statistics - If you enabled website statistics for your site (on by default) then AWStats will be configured for your website. Read the article about AWStats here. When you add the website a green box will show confirming the site was created and it will include the username and password used to access the website statistics. See Figure 4
Document Root - The Document Root is where you place your files that should be publicly available for access via the browser. When you create a new website using the Control Panel you will have a main website folder created, and a "public" folder inside that. Your website files should generally be uploaded to the "public" folder. Files that you do not want to be accessed via the browser, such as config files that include usernames and passwords, should go in the main website folder.
Server Admin - This sets the e-mail address that the server includes in any error messages it returns to the client.
Figure 1 - Add Website
Figure 2 - Basic View
Figure 3 - Advanced View
Figure 4 - Confirmation Screen