-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add another tip to setup permissions #3563
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for the CLI and the web server There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I might clarify even more:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suppose if we're going to mention this, we should say something more like:
Because isn't there a potential security issue with running Apache as your CLI user (i.e. Apache can modify a lot more files on your system)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I see your note below about the |
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are called |
||
from ``www-data`` to your CLI user. Obviously, this is only recommended in dev | ||
environnement. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo, it should say environment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is not needed for a development environment imo, i never do this for instance, i have never done it neither in ubuntu nor in mac There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cordoval I agree this is not needed, it is just another option among others :) |
||
|
||
When everything is fine, click on "Go to the Welcome page" to request your | ||
first "real" Symfony2 webpage: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... the CLI and the web server