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.

1 2 votes
Article Rating
Notify of
1 Comment
Newest Most Voted
Inline Feedbacks
View all comments Protection Status
Would love your thoughts, please comment.x