???? How to Upload a Custom PHP + MySQL Project

Moving your PHP project from your local localhost (like XAMPP) to the live cloud takes about 3 minutes. You just need to move your files, move your database, and connect them together.

???? Phase 1: Move Your Files

  1. On your computer, put all your project files (HTML, PHP, CSS) into a single .zip file.

  2. Log into cPanel and click on File Manager.

  3. Open the public_html folder (this is the folder that connects directly to the internet).

  4. Click Upload at the top, upload your .zip file, and then right-click it to Extract. *(Note: Make sure your main page is named index.php or index.html!)

????️ Phase 2: Move Your Database

  1. Go back to the main cPanel screen and click MySQL Database Wizard.

  2. Step 1: Name your new database (e.g., db_project1).

  3. Step 2: Create a new user and a strong password. (Copy this password to your notepad!)

  4. Step 3: Check the box that says "All Privileges" to link the user to the database.

???? Phase 3: Connect Them

Your code is still looking for your old localhost credentials. Let's update them.

  1. Go back to cPanel and open phpMyAdmin. Find your new database on the left side and click Import to upload your .sql file from your computer.

  2. In the File Manager, find your database connection file (usually named config.php, db.php, or conn.php) and click Edit.

  3. Update the credentials with the exact database name, username, and password you created in Phase 2.

Save the file, refresh your .in domain, and your app is live! ????

  • 0 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

How to get your Node.js API live in 5 minutes

Ready to put your Full-Stack Core plan to work? You don't need a command line to deploy your...