Skip to content

Commit bd473db

Browse files
committed
minor #3563 Add another tip to setup permissions (tony-co)
This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3563). Discussion ---------- Add another tip to setup permissions | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | all | Fixed tickets | n/a This is a quick tip on the installation guide to use the same user for CLI and HTTP. Commits ------- 0d5bcd7 Rephrase 625369a Updated tip with latest comments b955d99 Update installation.rst 1aaa291 Add another tip to setup permissions in dev environnement.
2 parents 67129b1 + 75b2387 commit bd473db

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

book/installation.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,15 @@ If there are any issues, correct them now before moving on.
269269

270270
Note that using the ACL is recommended when you have access to them
271271
on your server because changing the umask is not thread-safe.
272+
273+
**4. Use the same user for the CLI and the web server**
274+
275+
In development environments, it is a common practice to use the same unix
276+
user for the CLI and the web server because it avoids any of these permissions
277+
issues when setting up new projects. This can be done by editing your web server
278+
configuration (e.g. commonly httpd.conf or apache2.conf for Apache) and setting
279+
its user to be the same as your CLI user (e.g. for Apache, update the User
280+
and Group values).
272281

273282
When everything is fine, click on "Go to the Welcome page" to request your
274283
first "real" Symfony2 webpage:

0 commit comments

Comments
 (0)