Putting laravel application in public_html directory is very dangerous.
User should land on public directory.
If you can edit the document root, u...
For further actions, you may consider blocking this person and/or reporting abuse
After linking the public to public_html I get a 403 Forbidden error.
I am using laravel 9
Everything else works fine but cant access the website.
I think directory permission is not correct.
Check directory permission.
Which directory do I need to check for permission.
I have tried 775, 777, for public html, and all the symlinks.
I am not sure which one to set to which one.
If you can help me with that I would be thankful.
Thanks in advance
Check for permission as well as owner. Of current user is not an owner, it can cause forbidden issue.
Current user is the owner. I have full access to the cpanel hosting.
You can check server log for the exact error log
after I do that my website including
/index.php
to all pages. Examplewww.domain.com/index.php/about
,www.domain.com/index.php/contact
. How do I fix that?May be you are using url helper. Can't exactly say as I don't know that much detail about the context of your issue.
Very helpful! Thank you.
Here is another resource full article about Laravel project deployment in Shared Hosting
nihardaily.com/21-deploy-guideline...
You can deploy Laravel app by uploading whole code as defined in mentioned article. But for security reasons, we shouldn't expose laravel's root directory, we should only expose and serve from public directory.
Very Nice Its Working. Sir.
Thanks