How to deploy slim framework on CPanel

In this post, I would like to show you deploying your slim framework project to CPanel (without SSH access). In general, for CPanel, the web root directory will be  public_html directory. 

Slim3 Framework Authorization with JWT (JSON Web Tokens) 

So now move all the files from your slim project public directory to the public_html directory. After uploading .htaccess and index.php files that were previously in your public folder and now they will be in your public_html and other folders and files, src/,vendor/,composer.json,composer.lock  etc will live in the top level directory so src/and vendor/ and etc… will be right alongside public_html as shown in the below image:

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

I am Arjun from Hyderabad (India). I have been working as a software engineer from last 7+ years, and its my passion to learn new things and implement them as a practice. Aside from work, I likes gardening and spending time with pets. Protection Status