Guys, in this tutorial I’m going to teach you How to Upload Php Website on Cpanel. Guys, if you have a project in PHP and MySQLi you want to upload your own project with Online Server or CPanel. You need to have a Domain Name and Web Hosting.
Basically, Domain Name represents your website name such as www.yoursite.com and Web Hosting represents storing your site data and also displaying your site around the world. So, First of All, we need to Buy Domain and Web Hosting.

Guys, There are a lot of Web Developers or Online entrepreneurs using International Web Hosting Companies. Because those companies provide superb services and International Companies’ servers running on the web 24/7.
You May Also Like: School Management System in PHP
It means your site running on the web 24/7 and also you will get online support. If you will face any problem which related to your Web Hosting, Domain Registration and Also Payment, etc. You can contact them via Email or Live Chat.
Guys, There are a lot of Online Companies available, they are providing Domain Registration and Also Web Hosting. If you are a beginner in this field and you don’t have any idea or knowledge of Web Hosting and Domain Registration, Don’t Worry I will teach you step by step.
How to Buy Domain and Hosting
Guys, First of All, We need to understand How We Can Buy Domain and Host from the Blue host. Blue Host is One of the best International companies which provides different services such as Domain Registration Web Hosting and much more.
I mentioned above the Bluehost Banner you need to Click on it. Then you are able to see Bluehost’s Official Website. Then, you need to Click on Hosting>Shared Hosting.
Then you are able to See different Web Hosting Packages available. You can select anyone as you like, in my case I prefer Prime Package.
Basically, Prime Package has great features such as Free Domain Registration, Free SSL Certificate, Multiple Site Supported, and Much More.
Then, you need to Search Domain in the New Domain Input box. Once you have entered the Domain Name Click Next Button.
Then, you need to Enter Personal Information such as User Name, Email, Payment, etc. Once you have entered complete data, then you need to Click Submit Button, then you need to Wait a Couple of Seconds.
You May Also Like: Best Php Script You Should Use in 2023
After completing the last process, you successfully Bought the Domain Name and Web Hosting from BlueHost.
Guys, You have successfully completed The first Step. Another Step is You need to Upload Php Website on CPanel.
How to Upload Php Website on CPanel
How to Upload Php website on Server with Database.
First of All, you need to Export Your Project Database from Localhost/PhpMyAdmin. Then you need to find your project and Zip your Project Folder.
Once you have zipped PHP Project and Export Database, you need to go on Bluehost. Then you need to Login Your Account, Once you logged in your Bluehost Account.
You May Also Like: User Management System in PHP
Then, you need to Click Advanced Tab. Then Find File Manager>Public_html Folder, inside the Publich_html folder, you are able to see your site Folder Name. You need to Click on it If you will see Files and Folders inside your Site Folder.
You need to Remove them, and then upload your Local PHP Project inside the Website Folder. Then you need to unzip your PHP Project on the Same Website Folder.
Then, You need to Go back and Find MySQL Databases. Then you need to Create Your Own Database on Cpanel or Online Server. on the same page, you need to scroll down and Then Create a User Name and Password.
Guys, Then you need to Select Your User and Also Select Your Database on the Same page you can see the dropdown menu. Then Check Mark All Options and Save them.
Then you need to go back and find the Inside Database Section phpMyAdmin Link. You need to Click on it and then find your created database. Then you need to open your created database, and then Import Your Project Database. You have already exported from localhost.
You May Also Like: Php Booking System With Source Code
Then the Final Step is, you need to go to CPanel and Find File Manager>Public_html>Your Site Folder. Then You need to Open Your Connection inside your PHP Project.
Then you need to Change Your Server Name, User Name, Password, And Also Database Once you have done the work. Then you have successfully Uploaded Php Website on CPanel.
If you have any questions/suggestions, comment to me or email, me after receiving your email. I will help you to solve your problems. Thanks For Watching and Reading the Complete Article.