#hosting #deployment #cpanel #php

Steps to make your PHP application live in Cpanel (shared hosting)

Table Of Content


  1. Steps:
  2. Creating a Database

Making an application live majorly depends on the type of hosting you are having along with the method to access you are provided for that hosting.

I am assuming that you have shared hosting with Cpanel.

Please go through the below steps to make your PHP application live.

Steps:

  • Make a .zip file of your application
  • Login into your server (live server with the credentials you are provided by the hosting vendor)
  • Once you got into the panel, find file manager.
  • Inside file manager search for public_html (this is the base directory, like htdocs in XAMPP)
  • Upload your .zip file in public_html
  • Extract it in here.

Your code files are live now.

Creating a Database

If your application is static then the above steps should be enough for making it live but if you have a database in action then you also have to create and connect a database too, to the application.

Below are the steps to create a DB in cPanel

  • Search for MySQL database wizard
  • Name your database
  • Create a user, password, and privileges

Connect your Database to your application through config or how so ever you have designed to it.

For any concerns and doubts feel free to ask in comment section.

Most Viewed Posts


Must Read


January 28, 2022

#AppImage #linux

How to Add AppImage Application to Menu in Ubuntu (Linux)

AppImages are the most easiest to run compared.The challenging task is to make the AppImage accessible globally through he system like an installed application (in the menu)

Reading time: less than a minute
How to Add Laravel Pint to VS Code Formatter
June 24, 2022

#code-quality #vscode #laravel-pint #laravel

How to Add Laravel Pint to VS Code Formatter

I have been using the unsatisfactory formatters from a long time. All of them have one thing but lack other. Laravel Pint is one who has it all, combining it with vscode is like proving you laravel project a super power.

Reading time: 2 minutes
March 24, 2021

#express js #node #node js #sequelize #mysql

How to create model association in Sequelize - express JS / Node JS

In the very initial days of my work in Node JS if faced this issue. Though Sequelize provide a great ORM for MySQL but the association within the models is a bit tricky.

Reading time: 2 minutes
December 14, 2021

#database #javascript #sequelize #npx

Sequelize CLI Commands

list of Sequelize CLI commands which comes handy, while working on a project.

Reading time: 1 minute
How to create a progressive web app (PWA) in laravel 5.* and above
July 07, 2019

#functionality #pwa #javascript #laravel

How to create a progressive web app (PWA) in laravel 5.* and above

The progressive web app is the new trend as well as the need for the present time. I hope before getting in the “HOW” part you know what is exactly a PWA

Reading time: 4 minutes
March 02, 2020

#hosting #deployment #laravel

Checklist for Production Deployment laravel Project

below are mentioned things to be taken care of at the time of deploying a laravel project to production.

Reading time: less than a minute
September 14, 2018

#functionality #authentication #cakephp #php

Auto login in CakePHP 3.x

Although the authentication component of CakePHP 3 has made the life of a developer much easier but still there are some functionalities that are still needed to be done manually. One of them is login automatically if the users have checked for 'remember me'.

Reading time: 3 minutes
create-express-boilerplate to create new API projects in a secs
October 25, 2021

#express js #npm #deployment #api #node #node js #javascript #npx #boilerplate

create-express-boilerplate to create new API projects in a secs

Initiating a new project is as exciting as frustrating. Going through all the routine work just to get the basic engine started, yaa I know the pain.

Reading time: less than a minute
November 02, 2020

#blog #php #laravel

How to get started with laravel wink for creating a blog

There are a number of options available for purpose of blog creation but if you are a developer non of them are as satisfying as laravel wink.

Reading time: 1 minute
December 20, 2018

#functionality #log #cakephp #php

How to make log daily in CakePHP 3.x

As you may know according to the default configuration of CakePHP the debug and error log is generated in the same file. But this can be changed in a few simple steps

Reading time: less than a minute
mohammed-samgan-khan

Hi, I am Samgan, I know the adds are bit annoying but i hope you understand. Talking about me, I excel at solving complex problems involving logic and step by step breakdown of the problem. Besides, to develop complex algorithms, I specialize in problem framing, systems design, and product development strategy. Sometimes I also enjoy public speaking.