PostgreSQL vs MySQL Performance: Real Benchmarks Compared
Last updated: 7 November 2026. See the update log at the end."Which is faster, PostgreSQL or...
Step 9 of 10
Most live-site breakages come from overwriting the wrong file or forgetting one step. Use the same short routine every time.
Back up the database in phpMyAdmin (Export), and download anything you are about to replace.
Build locally: npm run build, and composer install --no-dev --optimize-autoloader if composer.lock changed.
Zip only what changed. Smaller uploads mean fewer mistakes.
Turn on maintenance mode if the update changes the database: php artisan down.
Extract the code zip in laravel-app, and the public zip in public_html.
Run new migrations, or import their SQL in phpMyAdmin.
Clear caches, turn the site back on, and check the pages you changed.
php artisan migrate --force
php artisan optimize:clear
php artisan up
.env on the server: your production settings.public_html/.htaccess: it can hold cPanel's PHP handler.public_html/index.php: it has your custom paths.storage/: uploads, sessions and logs.public_html.Delete the .php files in bootstrap/cache/. Laravel rebuilds them on the next visit. Do this after uploading new routes, config or packages, or you may get errors about classes that no longer exist.
Add new columns as nullable or with a default, and don't drop or rename anything the old code still reads. Then the site keeps working in the moments between uploading code and running migrations.
Only when composer.lock changes. Build it with the same PHP version as your host.
Many cPanel plans have Git Version Control, which can pull your repository. You still need to handle vendor/, built assets and migrations.
Last updated: 7 November 2026. See the update log at the end."Which is faster, PostgreSQL or...
Last updated: 8 November 2026. See the update log at the end.Laravel gives you safe defaults...
Last updated: 5 November 2026. See the update log at the end.In a normal PHP-FPM request,...
We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.