From 1aaa291536b1b9dfa0fe5128a83edf1a1f34ade8 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 3604f1236c5..335d404e6b0 100644 --- a/book/installation.rst +++ b/book/installation.rst @@ -267,6 +267,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 b955d995230c0038190a153a561a735087aeab41 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 335d404e6b0..0897b573801 100644 --- a/book/installation.rst +++ b/book/installation.rst @@ -274,7 +274,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 625369ae6f2905a23ac21d2a295c433eb997554f 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 0897b573801..0edab5dd00a 100644 --- a/book/installation.rst +++ b/book/installation.rst @@ -268,13 +268,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 0d5bcd7b87030f73ad09b9984d69feb7e3f28f47 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 0edab5dd00a..be881bfa1f0 100644 --- a/book/installation.rst +++ b/book/installation.rst @@ -272,11 +272,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: