Using cPanel? Here’s how to set up Laravel.

This won’t work if you don’t have root access to your server, but your hosting company might be able to help.

I’m lazy, so I used Softaculous to install Laravel in public_html.

Then I got the headache of everything being at myurl.com/public

DO NOT TRY TO CHANGE PUBLIC TO SOMETHING ELSE

DO NOT WASTE YOUR TIME MOVING OTHER FILES ABOVE TO THE DOCUMENT ROOT

Just make /public your new document root. Like this: https://tecadmin.net/how-to-change-document-root-of-primary-domain-in-cpanel/

Leave a Comment

Your email address will not be published. Required fields are marked *