How to setup laravel project in cpanel?

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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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