Report this

What is the reason for this report?

How to setup laravel project in cpanel?

Posted on May 25, 2021

Hello, I have setup a laravel project and created a subdomain to point that folder. Everything works well except that when i visit that subdomain in another tab, it throws 403 forbidden. I cant even access the htaccess file. Can you please solve it? It’s urgent.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello, @dipendrac3

You can check the cPanel’s Apache error_log in order to track down the actual problem. You can tail the last 100 entries in the log using the following command:

  1. tail -n 100 /usr/local/cpanel/logs/error_log

You can also monitor the log almost in real-time using:

  1. tail -f /usr/local/cpanel/logs/error_log

Once you visit the subdomain in your browser the log should list the actual error.

Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.