DEV Community

Temiloluwa Adelowo
Temiloluwa Adelowo

Posted on • Updated on

Deploying a PHP app to cPanel

Deploying a PHP web-app can be stressful for beginners who are using cPanel hosting for the first time, or who aren't conversant with the interface. Most issues encountered would be related to improper uploads, server name issues, or database errors.

What is cPanel

cPanel is a web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site to the website owner or the "end-user".
cPanel can be used to host various software, including WordPress, Python Apps, PHP apps, Node.js apps, etc.

Deploying to cPanel

The cPanel interface

The cPanel Interfacet
This is the default cPanel interface, customizable to user's taste.

Locate the File Manager

Locate the file manager

Find the public_html folder

The public_html folder

Locate the Upload button

Upload

Upload a zipped folder of all the site files

Upload a zipped folder

Back to the file manager, and extract the files.

Back to the file managerExtract the content of the zipped folder

Replace all necessary information, such as server name, username, and password, for connecting to your database

With this, your PHP app should be visible at the domain (https://website.com)

You could reach out to me on Twitter if you encounter any issues along the way

Top comments (0)