Correct folder permissions for symfony on linux?

I migrated the installation of XP to Symfony (1.3.2) on Linux (Ubuntu 9.10). Now I get a blank screen. After checking the Apache log files, I realized that the apache daemon does not have permissions to create the cache folder.

I used chgrp and chown to manually assign permission. When I accessed the homepage, I received a 403 forbidden message stating that permission was not allowed to access the .htaccess file.

What exactly are the required permissions for a folder / file for Symfony on Linux?

The documentation does not mention anywhere

+3
source share
2 answers

symfony permissions

symfony :

sf1.0.x, : symfony fix-perms Linux.

sf1.1 +, : symfony project:permissions .


Apache :

Apache/system

:

chown -R username:group /path/to/project_dir
chmod -R 775 /path/to/project_dir

username group , .

symfony CLI script, , .

+11

.htaccess 775 777, ?, / , , .

+1

Source: https://habr.com/ru/post/1733627/


All Articles