How-to

How to Install a PHP Script on cPanel Hosting (Step by Step)

Beginner-friendly instructions to upload a PHP script, create a MySQL database and run the web installer on cPanel hosting.

By ATN Solutions · September 22, 2026 · 6 min read

Installing a PHP web application is easier than most people expect. With cPanel hosting it takes around 15 minutes. ATN Solutions products come with a web installer, and we also install them for free on request.

Before you start

  • A hosting account with PHP and MySQL (see hosting recommendations)
  • A domain pointing to your hosting
  • The script's ZIP file

Step 1: Upload the files

  1. Log in to cPanel and open File Manager.
  2. Go to public_html (or the folder for your subdomain).
  3. Click Upload and select the ZIP file.
  4. Right-click the uploaded ZIP and choose Extract.

Step 2: Create the MySQL database

  1. In cPanel open MySQL Databases.
  2. Create a new database and a new user with a strong password.
  3. Add the user to the database with All Privileges.
  4. Write down the database name, username and password.

Step 3: Run the web installer

Open your domain in the browser. The installer asks for the database details, the site name and the administrator account. Follow the steps until you see the confirmation screen.

Step 4: Secure the installation

  • Delete the installer folder or file if the instructions say so.
  • Use a long, unique admin password.
  • Enable HTTPS (free SSL in cPanel under SSL/TLS Status).
  • Set up regular backups.

Common problems

ProblemFix
Blank pageCheck the PHP version in cPanel (MultiPHP Manager) and the error log.
Cannot connect to databaseVerify the user is added to the database and that the cPanel prefix is used in names.
Images do not uploadCheck folder permissions (755 for folders, 644 for files, or the writable folders listed in the manual).

Prefer not to do it yourself? We offer free installation on your hosting for every product. Send us the details.

Related products

Build it with the right software

ATN Site Manager PHP CMS screenshot
Stores & Websites

ATN Site Manager

A lightweight CMS that stays out of your way.

Features & demoExplore
New
ATN Jobs job board software screenshot
Jobs & Events

ATN Jobs

Launch a profitable job board in a weekend.

Features & demoExplore
New
ATN Blog Portal multi user blog software screenshot
Community & Support

ATN Blog Portal

Your own Blogger or WordPress.com network.

Features & demoExplore

Need help getting started?

Free consultation and free installation on your hosting.

Talk to our team