4
4
Installing and Configuring Symfony
5
5
==================================
6
6
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.
10
17
11
18
Installing the Symfony Installer
12
19
--------------------------------
@@ -220,10 +227,10 @@ If there are any issues, correct them now before moving on.
220
227
221
228
.. sidebar :: Setting up Permissions
222
229
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.
227
234
228
235
**1. Use the same user for the CLI and the web server **
229
236
@@ -242,12 +249,11 @@ If there are any issues, correct them now before moving on.
242
249
243
250
.. code-block :: bash
244
251
245
- $ rm -rf var/cache/*
246
- $ rm -rf var/logs/*
252
+ $ rm -rf var/cache/* var/logs/* var/sessions/*
247
253
248
254
$ 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
251
257
252
258
253
259
**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.
261
267
.. code-block :: bash
262
268
263
269
$ 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
266
272
267
273
If this doesn't work, try adding ``-n `` option.
268
274
@@ -412,6 +418,7 @@ need in your new application.
412
418
Be sure to also check out the :doc: `Cookbook </cookbook/index >`, which contains
413
419
a wide variety of articles about solving specific problems with Symfony.
414
420
421
+ .. _`Joyful Development with Symfony` : http://knpuniversity.com/screencast/symfony
415
422
.. _`explained in this post` : http://fabien.potencier.org/signing-project-releases.html
416
423
.. _`Composer` : https://getcomposer.org/
417
424
.. _`Composer download page` : https://getcomposer.org/download/
0 commit comments