How do I upload files to HostGator?
Emma Martin
Published Mar 02, 2026
How do I upload files to HostGator?
How to Upload a File Using File Manager
- Log in to cPanel.
- In the FILES section, click File Manager.
- In the upper right-hand corner, click on Settings.
- Select Web Root, Show Hidden Files, and then click Go.
- Click to open the folder to which you’d like to upload files.
- Click Upload from the top toolbar.
Where do I upload PHP files in cPanel?
1 Answer
- Login to cPanel.
- Click on File Manager.
- Select Web Root (public_html/www) and clock on Go.
- Click on Upload on the top.
- Click on Choose File to select the file which you have upload.
Can I upload my own website to HostGator?
You can begin uploading to your account now by using an FTP Client or cPanel’s File Manager. If you are using an FTP client, put in your site’s IP address under the “FTP address” field. Use the username and password sent to you in your welcome email. FTP always runs on Port 21.
How do I open a php file in cPanel?
How do I use PHP in HTML files?
- Log in to your cPanel.
- Click the File Manager icon.
- Navigate to the document root of the site you wish to change (“public_html” is the document root for your primary domain).
- Select the .
How do I upload a file to a hosting server?
How to Upload Your Website (in 6 Easy Steps)
- Pick a Reliable Web Hosting Company.
- Choose Your Website Upload Method. File Manager. File Transfer Protocol (FTP)
- Upload Your Website File. Using File Manager. Using FileZilla.
- Move the Website Files to the Main Root Directory.
- Import Your Database.
- Check If the Website Works.
How do I connect to FTP HostGator?
Once you have downloaded the FTP client, you’ll need to get proper settings to connect to your hosting account….FTP Connection Settings
- FTP Host/Address: (Site IP address or Server Hostname)
- FTP User: (cPanel/FTP username)
- FTP Password: (cPanel/FTP password)
- Port: 21.
- Path/directory: (blank*)
How do I host a PHP site on Netlify?
For websites, you can use Netlify in which you can upload your files. If you have a PHP+MySQL web app, you might want to try out 000webhost….
- Create a Netlify Account.
- Deployment using Netlify.
- 2.1 Upload your files and Deploy.
- 2.2 Connect your Git Repository and Deploy.
- Changing the Site’s Name.
How do I publish my HTML site on HostGator?
2 Answers
- Create a zip file of your site files.
- Log into your hostgator cpanel.
- Navigate to your file manager.
- Upload your zip file to the main directory.
- Extract your files into the main directory. Once completed refresh to view your folder.
- Cut your files into the public_html folder and you are done.
How can I change PHP code in cPanel?
Edit HTML Code in cPanel
- Login to your cPanel.
- Go to the File Manager in the Files section.
- Navigate to the HTML page you want to edit.
- Right-click the file and choose the HTML Edit option.
- Now you should see the HTML Editor interface.
- You can also click the Source button to add code or change code in your file.
Can you run PHP in an HTML file?
Yes, you can run PHP in an HTML page.