From 08036b6b8102d783ceef3efaf73cdf20a769bb4b Mon Sep 17 00:00:00 2001 From: Tony Cosentino Date: Mon, 10 Feb 2014 18:00:34 +0100 Subject: [PATCH 1/4] Add another tip to setup permissions in dev environnement. | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | all | Fixed tickets | n/a --- book/installation.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/book/installation.rst b/book/installation.rst index 06fceb62609..5c28db2edfb 100644 --- a/book/installation.rst +++ b/book/installation.rst @@ -269,6 +269,14 @@ If there are any issues, correct them now before moving on. Note that using the ACL is recommended when you have access to them on your server because changing the umask is not thread-safe. + + **4. Use the same user for CLI and HTTP** + + It is a common practice to use the same unix user for CLI and HTTP. It avoids + typing commands when setting up new projects. This is done by editing your + Apache configuration file ``httpd.conf`` and update the user and group values + from ``www-data`` to your CLI user. Obviously, this is only recommended in dev + environnement. When everything is fine, click on "Go to the Welcome page" to request your first "real" Symfony2 webpage: From 344a43f864bda4784719a7c7defda2544f8c2544 Mon Sep 17 00:00:00 2001 From: Tony Cosentino Date: Mon, 10 Feb 2014 18:17:05 +0100 Subject: [PATCH 2/4] Update installation.rst Fixed typo --- book/installation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/installation.rst b/book/installation.rst index 5c28db2edfb..7a59a8d1f91 100644 --- a/book/installation.rst +++ b/book/installation.rst @@ -276,7 +276,7 @@ If there are any issues, correct them now before moving on. typing commands when setting up new projects. This is done by editing your Apache configuration file ``httpd.conf`` and update the user and group values from ``www-data`` to your CLI user. Obviously, this is only recommended in dev - environnement. + environment. When everything is fine, click on "Go to the Welcome page" to request your first "real" Symfony2 webpage: From f5d9e3668618079c22f060834eeba4d802fa1411 Mon Sep 17 00:00:00 2001 From: Tony Cosentino Date: Tue, 18 Feb 2014 21:41:30 +0100 Subject: [PATCH 3/4] Updated tip with latest comments --- book/installation.rst | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/book/installation.rst b/book/installation.rst index 7a59a8d1f91..c7bcf603197 100644 --- a/book/installation.rst +++ b/book/installation.rst @@ -270,13 +270,15 @@ If there are any issues, correct them now before moving on. Note that using the ACL is recommended when you have access to them on your server because changing the umask is not thread-safe. - **4. Use the same user for CLI and HTTP** - - It is a common practice to use the same unix user for CLI and HTTP. It avoids - typing commands when setting up new projects. This is done by editing your - Apache configuration file ``httpd.conf`` and update the user and group values - from ``www-data`` to your CLI user. Obviously, this is only recommended in dev - environment. + **4. Use the same user for the CLI and the web server** + + In development environments, it is a common practice to use the same unix + user for the CLI and the web server because it avoids any of these permissions + issues when setting up new projects. This is done by editing your Apache + configuration file ``httpd.conf`` and updating the User and Group values + from ``www-data`` to your CLI user. Obviously, this is only recommended in + development environment as you do not want to give Apache full control over + your whole production system. When everything is fine, click on "Go to the Welcome page" to request your first "real" Symfony2 webpage: From 75b2387d473cb8ceb6ca4b1c09a15a9de2367f67 Mon Sep 17 00:00:00 2001 From: Tony Cosentino Date: Wed, 19 Mar 2014 12:07:28 +0100 Subject: [PATCH 4/4] Rephrase --- book/installation.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/book/installation.rst b/book/installation.rst index c7bcf603197..e219e9640c9 100644 --- a/book/installation.rst +++ b/book/installation.rst @@ -274,11 +274,10 @@ If there are any issues, correct them now before moving on. In development environments, it is a common practice to use the same unix user for the CLI and the web server because it avoids any of these permissions - issues when setting up new projects. This is done by editing your Apache - configuration file ``httpd.conf`` and updating the User and Group values - from ``www-data`` to your CLI user. Obviously, this is only recommended in - development environment as you do not want to give Apache full control over - your whole production system. + issues when setting up new projects. This can be done by editing your web server + configuration (e.g. commonly httpd.conf or apache2.conf for Apache) and setting + its user to be the same as your CLI user (e.g. for Apache, update the User + and Group values). When everything is fine, click on "Go to the Welcome page" to request your first "real" Symfony2 webpage: