Step-by-step guide to install Mighty-School on cPanel hosting environment
http://yourdomain.com/cpanel or http://yourdomain.com:2083mighty_school_dbapi.yourdomain.com)public_html/api)public_html/api)http://api.yourdomain.com)Laravel requires specific folder permissions to function correctly. Set the following folder permissions via File Manager or SSH if you have access:
storage/ and bootstrap/cache/ should be writable by the web server (usually 755 or 775 permissions)chmod -R 775 storage bootstrap/cache
If the Laravel application requires scheduled tasks (like daily reports, emails, etc.), you'll need to set up a cron job.
* * * * * php /home/username/public_html/api/artisan schedule:run >> /dev/null 2>&1
/home/username/public_html/api with your actual Laravel installation path.
http://api.yourdomain.com)Solution: Ensure storage and bootstrap/cache directories are writable.
chmod -R 775 storage bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache
Solution: Double-check your .env file, and make sure the database credentials and hostname are correct.
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=mighty_school_db
DB_USERNAME=your_username
DB_PASSWORD=your_password
Solution: Check the Laravel error logs and ensure all required PHP extensions are installed.
storage/logs/laravel.log