Home Web Hosting Services
🕸️

Web Hosting Services

Guides and support relating to our Plesk and cPanel web hosting services.
Philip E
By Philip E
• 4 articles

Where should I upload my website files?

The short answer: The short answer to this question is the public_html/ directory. Further detail: Every cPanel account has what is called a home directory. This is the directory that you would normally see when you connect via FTP, SFTP or SSH using your accounts primary cPanel user details. A brand new cPanel account home directory looks a little like this .bash_logout .bash_profile .bashrc .contactemail .cpanel/ etc/ .htpasswds/ mail/ public_ftp/ public_html/ tmp/ www@ Depending on your software, you may not see the files and directories that begin with a dot (e.g. .htpasswds). In any case, never delete or modify any of these files or directories unless you know exactly what you are doing. Your website files should be uploaded into the public_html/ directory. For example if your domain was mywebsite.com then a file located at public_html/mypicture.jpg would be served to the internet as http://mydomain.com/mypicture.jpg The www item is nothing more than a shortcut to the public_html/ directory - you can treat it as the same thing if you find that easier. What about Add-on domains? The domain name you've added will appear within file manager as follows: /home/myaccount/addondomain.co.uk What about the other files and directories? All of the other files and directories are required to ensure your web hosting and email accounts function correctly. Therefore, if you are new to cPanel, stick purely to the public_html/ directory and you won't break your hosting account.

Last updated on Nov 17, 2025

How to import a large database into MySQL

This article will show you how you can import MySQL databases that are too large to upload reliably using the phpMyAdmin tool included in cPanel. Uploading a large database via phpMyAdmin can take a long time, and a dropped connection or other issues can make it very frustrating. In cases like this, it is better to import the database manually using an SSH (Secure Shell) session. You'll need to ensure we have enabled SSH access for you on cPanel, and you'll have to use the "Terminal" application within cPanel to complete these steps. Importing your database In order to import your database you will need to have the following information to hand: - the location and filename of your database dump file (this often has a .sql extension) - you can upload this file into your home directory using FTP. - the name of the database you want to import into - the database must already exist so create it if you haven't already done so (Database Wizard within cPanel) - a valid database username (and password) that has full permissions to the database Here is an example command : mysql -u stormnetd_myuser -p stormnet_mydata < mydumpfile.sql - mysql : this is the command to run mysql in interactive mode. - -u stormnetd_myuser : this is the mysql user that you configured in cPanel beforehand. - -p : this tells mysql that you will enter a password manually. - stormnetd_mydata : this is the full name of the database you want to import into. - < : this is the redirection symbol. Here is it saying take what's on the right and send it to what's on the left! - mydumpfile.sql : this is the mysql backup/dump file that you want to import (in this example the file is in the current working directory so it does not need to be preceded with a path. If your dump file is located in a different folder - either change to that folder and run the command from there or include the full path to the dump file.) Just substitute in your MySQL database name, username, and SQL dumpfile name. When you hit Return you will be prompted to enter the password for the database user. Just enter it (it won't echo to the screen) and press Return again to start the import. Restoring a large database with thousands or hundreds of thousands of rows might take a minute or so to restore, so be patient or go and make a pot of tea - it will finish eventually. What can go wrong? Not much really, but if the import fails or does not complete due to errors, it's easiest just to delete the database from within cPanel (assuming you don't need it!), and recreate an empty one and try again. A common problem with importing MySQL files can occur if the dump file includes instructions to CREATE or USE a particular database name. If such instructions exist (and they will be at the top of the file if anywhere), then either comment them out (by inserting two hyphens !! at the start of each line) or remove them.

Last updated on Nov 17, 2025