I really wast a lot of time to resolve this issue. I want to install laravel on my dedicated server to be able to learn it, so always I get a forbidden page :
Edit:
Your server will have to be restarted: service apache2 restart
Try also to view the error log file:
${APACHE_LOG_DIR}/myproject-access.log
// maybe this directory and filename /var/log/apache2/myproject-access.log
Also:
If you are using FileZilla, check the “File Permissions”, Ownership, Group and Public Permissions. Try setting permissions as 0755 and ensure to include the preceding 0 to make it Octal;
Assuming you have command line access, what does ls -la show the permissions as being? The should show the same as FileZilla, but there’s more info at the command line than that will show - could you get a screenshot of the result?
I’m very sure that the whole problem comes from the virtual host, when I put any file inside the folder like “Hello World” it works, and when I install laravel projet, it doesn’t work.
I am glad you managed to solve your problem, also to return and let us know the good news.
I am not using PLESK just Apache2 and Linux Ubuntutu 14.04. I also had strange sub-domain problems with my site which I eventually solved.
I setup one sub-domain which worked and did everything that I wanted it to do. Foolishly I copied the Virtual Host file, renamed, changed paths and enabled using a2ensite sub-002 and service apache2 restart.
The sub-domain refused to render and eventually traced the problem to a .htaccess file with every declaration #remmed.
`
123.456.789.876 - - [sub-002.mysite.com/sid#7f02093c5f20]
[rid#7f02093b1028/initial/redir#5]
[perdir /var/www/mysite.com/public_html/]
internal redirect with /var/www/mysite.com/public_html/index.php
[INTERNAL REDIRECT]
Removing the htaccess file and the index.php file rendered as expected.
VoilĂ
Now onto the next problem :grinning: