Uploading files to addon domain
You have to upload the files for the extension's domain to its webroot directory. When you create a new addon domain, you are asked to select its webroot directory.
What do the folders in the main folder mean?
- public_html: This is where all your files and pages should be published, as they will only be shown if they are inside this folder. www is another folder name, also public_html
- mail: is where everything related to email is stored.
- public_ftp is where files are stored for the purpose of uploading
- ftp: This place is used to publish public files where anyone can access and download these files without using a username or password, and this feature works only if it is enabled.
The rest of the folders perform a set of functions on which your site depends, so please do not delete or change these files in any case, because deleting or changing them will cause problems, and your site may stop working if these files are tampered with.
Define webroot for the addon domain
- Log in to cPanel.
- From the Domains menu, select Addon Domains.
- Int he Addon Domains page, next to each addon domain you will find its own webroot.
Where do i publish my files or pages?
When you connect to your website account via ftp, you will find yourself in the main folder where it contains a group of files, click on the folder /public_html/ and inside this folder you can publish your files and pages.
Supported website files type
Regular or simple pages should end with the extension .html or .htm , and SSI files (server-side include) must end with .shtml files to be displayed, CGI files must end in .cgi or .pl if written in perl, PHP files must also end in .php to be displayed. If the file name is not specified in the browser when typing the URL, the server will search for the index page, for example index.html, index.htm, index.shtml, index.php , and if index.html and index.php are in the same file or in the same place, index.html will be displayed.
Uploading files to webroot domain
- From File menu click on File Manager.
- Go to the webroot you defined in the previous steps.
- Click on the Upload icon in the top menu,
- A new page will appear, click on Select file and select the file you wish to upload.
- By going back to the File Manager page, you will find the file has been successfully uploaded.