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 8 of 10
Files saved to the public disk live in storage/app/public. Visitors reach them through a link at public_html/storage. When that link is wrong, uploaded images give a 404.
With your code outside public_html, php artisan storage:link creates the link in laravel-app/public, which no visitor can reach. Create it yourself, using full paths:
ln -s /home/cpaneluser/laravel-app/storage/app/public /home/cpaneluser/public_html/storage
In cPanel → Cron Jobs, add the ln -s command above as a job set to run every 5 minutes.
Wait for it to run once, and check that public_html/storage appears in File Manager.
Delete the cron job.
public_html/storage a real folder from an upload? Delete it first, or ln -s puts the link inside it.Options +SymLinksIfOwnerMatch in .htaccess.APP_URL: wrong image addresses often come from a wrong value here.public_html with a disk whose root is that folder.You can, but remove it straight after, and it still creates the link in the wrong folder unless you change config/filesystems.php. The ln -s command is simpler.
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.