Question

How to setup laravel project in cpanel?

Posted May 25, 2021 217 views
Laravel

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.

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.

×
Submit an Answer
1 answer

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:

  • tail -n 100 /usr/local/cpanel/logs/error_log

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

  • 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