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: