Access SSH #
- Log in to cPanel.
- Go to Advanced → Terminal (or use an SSH client like PuTTY).
- Connect using your cPanel username and password if using an external client:
Create a MySQL Database and User #
You can do this via cPanel → MySQL Databases (GUI), even if installing via CLI.
- Create a new database (e.g.,
).quick_ecommerce_api - Create a new database user with a strong password.
- Assign full privileges to this user on the new database.
Upload or Clone Project Files #
Option 1 — Upload Zip file via cPanel #
- Upload
to your subdomain folder (Quick-Ecommerce-API.zip/home/username/adminor/public_html/admin). - Extract the zip file from CLI:
unzip Quick-Ecommerce-API.zip -d ./
Ensure your Laravel files are directly inside your subdomain folder (not nested).
Install Dependencies via Composer #
Inside your Laravel API folder:
cd admin # or the folder where you uploaded
composer install --no-dev --optimize-autoloader
Configure Environment File
Set File Permissions #
chmod -R 755 .
chmod -R 775 storage
chmod -R 775 bootstrap/cache
If permission issues continue, you may need to use:
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod -R 775 storage bootstrap/cache
Run Laravel Commands #
filename.js
php artisan key:generate
php artisan storage:link
php artisan config:cache
php artisan route:cache
php artisan view:cache
Troubleshooting #
- 500 Error: Recheck folder permissions for
storageandbootstrap/cache. - Database error: Ensure
.envcredentials match the cPanel database settings. - Composer not found: Ask your host to enable Composer or install it locally and upload
vendorfolder manually.
Installer Access (Laravel #
Open your browser and go to either of these URLs:
https://your-domain.com
https://your-domain.com/public