Error when deploying Symfony 1.4.28 on Apache2

I have a problem when deploying Symfony 1.4.28 on Apache2 (Ubuntu 18.04). I follow all instruction of Symfony tutorial here with 2 steps:

  1. Generate the structure of Symfony project (generate:project, generate:app)
  2. Edit /etc/apache2/apache2.conf (because Apache2 removed httpd.conf) to point this structure

However, when I deploy, it doesn’t work with the message

"Forbidden You don’t have permission to access this resource.".

I changed the permission of project to www-data (sudo chown -R www-data:www-data) and 777 (sudo chmod -R 777).

Here, it is the apache2.conf file

apache2.conf

and the folder permission

enter image description here

How can I fix this problem?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *