44Installing and Configuring Symfony
55==================================
66
7- The goal of this chapter is to get you up and running with a working application
8- built on top of Symfony. In order to simplify the process of creating new
9- applications, Symfony provides an installer application.
7+ Welcome to Symfony! Starting a new Symfony project is easy. In fact, you'll have
8+ your first working Symfony application up and running in just a few short minutes.
9+
10+ .. seealso ::
11+
12+ Do you prefer video tutorials? Check out the `Joyful Development with Symfony `_
13+ screencast series from KnpUniversity.
14+
15+ To make creating new applications even simpler, Symfony provides an installer.
16+ Downloading it is your first step.
1017
1118Installing the Symfony Installer
1219--------------------------------
@@ -220,10 +227,10 @@ If there are any issues, correct them now before moving on.
220227
221228.. sidebar :: Setting up Permissions
222229
223- One common issue when installing Symfony is that the ``var/cache `` and
224- `` var/logs `` directories must be writable both by the web server and the
225- command line user. On a UNIX system, if your web server user is different
226- from your command line user , you can try one of the following solutions.
230+ One common issue when installing Symfony is that the ``var `` directory must
231+ be writable both by the web server and the command line user. On a UNIX
232+ system, if your web server user is different from your command line user
233+ who owns the files , you can try one of the following solutions.
227234
228235 **1. Use the same user for the CLI and the web server **
229236
@@ -242,12 +249,11 @@ If there are any issues, correct them now before moving on.
242249
243250 .. code-block :: bash
244251
245- $ rm -rf var/cache/*
246- $ rm -rf var/logs/*
252+ $ rm -rf var/cache/* var/logs/* var/sessions/*
247253
248254 $ HTTPDUSER=` ps axo user,comm | grep -E ' [a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
249- $ sudo chmod +a " $HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var/cache var/logs
250- $ sudo chmod +a " ` whoami` allow delete,write,append,file_inherit,directory_inherit" var/cache var/logs
255+ $ sudo chmod +a " $HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" var
256+ $ sudo chmod +a " ` whoami` allow delete,write,append,file_inherit,directory_inherit" var
251257
252258
253259 **3. Using ACL on a system that does not support chmod +a **
@@ -261,8 +267,8 @@ If there are any issues, correct them now before moving on.
261267 .. code-block :: bash
262268
263269 $ HTTPDUSER=` ps axo user,comm | grep -E ' [a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
264- $ sudo setfacl -R -m u:" $HTTPDUSER " :rwX -m u:` whoami` :rwX var/cache var/logs
265- $ sudo setfacl -dR -m u:" $HTTPDUSER " :rwX -m u:` whoami` :rwX var/cache var/logs
270+ $ sudo setfacl -R -m u:" $HTTPDUSER " :rwX -m u:` whoami` :rwX var
271+ $ sudo setfacl -dR -m u:" $HTTPDUSER " :rwX -m u:` whoami` :rwX var
266272
267273 If this doesn't work, try adding ``-n `` option.
268274
@@ -412,6 +418,7 @@ need in your new application.
412418Be sure to also check out the :doc: `Cookbook </cookbook/index >`, which contains
413419a wide variety of articles about solving specific problems with Symfony.
414420
421+ .. _`Joyful Development with Symfony` : http://knpuniversity.com/screencast/symfony
415422.. _`explained in this post` : http://fabien.potencier.org/signing-project-releases.html
416423.. _`Composer` : https://getcomposer.org/
417424.. _`Composer download page` : https://getcomposer.org/download/
0 commit comments