================================================================================ QUICK cPanel COMMANDS REFERENCE ================================================================================ Copy and paste these commands in cPanel Terminal (or SSH) one by one: ================================================================================ 1. NAVIGATE TO PROJECT DIRECTORY ================================================================================ cd ~/public_html # OR if in subdirectory: # cd ~/public_html/phillipnes ================================================================================ 2. SET FILE PERMISSIONS ================================================================================ find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; chmod -R 775 storage bootstrap/cache ================================================================================ 3. GENERATE APPLICATION KEY ================================================================================ php artisan key:generate ================================================================================ 4. RUN DATABASE MIGRATIONS ================================================================================ php artisan migrate --force ================================================================================ 5. CREATE STORAGE SYMLINK ================================================================================ php artisan storage:link ================================================================================ 6. CLEAR ALL CACHES ================================================================================ php artisan config:clear php artisan cache:clear php artisan route:clear php artisan view:clear ================================================================================ 7. OPTIMIZE FOR PRODUCTION (Optional but Recommended) ================================================================================ php artisan config:cache php artisan route:cache php artisan view:cache ================================================================================ 8. INSTALL COMPOSER DEPENDENCIES (if vendor folder is missing) ================================================================================ # First, download Composer if not available: curl -sS https://getcomposer.org/installer | php # Then install dependencies: php composer.phar install --no-dev --optimize-autoloader # OR if Composer is installed globally: composer install --no-dev --optimize-autoloader ================================================================================ IMPORTANT: Before running commands, make sure: - You have created the .env file with database credentials - Database exists and user has proper permissions - PHP version is 8.2 or higher ================================================================================