|
3 | 3 |
|
4 | 4 | .. _requirements-for-running-symfony2: |
5 | 5 |
|
6 | | -Requirements for Running Symfony 4 |
7 | | -================================== |
8 | | - |
9 | | -Symfony 4 requires **PHP 7.1.3** or higher to run, in addition to other minor |
10 | | -requirements: |
11 | | - |
12 | | -PHP Extensions |
13 | | -~~~~~~~~~~~~~~ |
14 | | -* The `Ctype`_ extension must be available |
15 | | -* The `iconv`_ extension must be available |
16 | | -* The `JSON`_ extension must be available |
17 | | -* The `PCRE`_ extension must be available (minimum version 8.0) |
18 | | -* The `Session`_ extension must be available |
19 | | -* The `SimpleXML`_ extension must be available |
20 | | -* The `Tokenizer`_ extension must be available |
21 | | - |
22 | | -Please note that all these extensions are installed and enabled by default |
23 | | -in PHP 7+. |
24 | | - |
25 | | -Other Requirements |
26 | | -~~~~~~~~~~~~~~~~~~ |
27 | | -* The cache directory must me writable by the web server |
28 | | -* The logs directory must be writable by the web server |
29 | | - |
30 | | -Checking Requirements with Symfony Requirements Checker |
31 | | -------------------------------------------------------- |
32 | | -To make things simple, Symfony provides a tool to quickly check if |
33 | | -your system meets these requirements. In addition, the tool will |
34 | | -also provide recommendations if applicable. |
| 6 | +Requirements for Running Symfony |
| 7 | +================================ |
| 8 | + |
| 9 | +These are the technical requirements to run Symfony 4 applications: |
| 10 | + |
| 11 | +* **PHP version**: 7.1.3 or higher |
| 12 | +* **PHP extensions**: (all of them are installed and enabled by default in PHP 7+) |
| 13 | + |
| 14 | + * `Ctype`_ |
| 15 | + * `iconv`_ |
| 16 | + * `JSON`_ |
| 17 | + * `PCRE`_ |
| 18 | + * `Session`_ |
| 19 | + * `SimpleXML`_ |
| 20 | + * `Tokenizer`_ |
| 21 | + |
| 22 | +* **Writable directories**: (must be writable by the web server) |
| 23 | + |
| 24 | + * The project's cache directory (``var/cache/`` by default, but the app can |
| 25 | + :ref:`override the cache dir <override-cache-dir>`) |
| 26 | + * The project's log directory (``var/log/`` by default, but the app can |
| 27 | + :ref:`override the logs dir <override-logs-dir>`) |
| 28 | + |
| 29 | +Checking Requirements Automatically |
| 30 | +----------------------------------- |
| 31 | + |
| 32 | +To make things simple, Symfony provides a tool to quickly check if your system |
| 33 | +meets these requirements. In addition, the tool provides recommendations if |
| 34 | +applicable. |
35 | 35 |
|
36 | 36 | Run this command to install the tool: |
37 | 37 |
|
@@ -65,10 +65,10 @@ The requirements checker tool adds a script to your Composer configuration to |
65 | 65 | check the requirements automatically. There's no need to execute any command; if |
66 | 66 | there are any issues, you'll see them in the console output. |
67 | 67 |
|
68 | | -.. _iconv: http://php.net/manual/en/book.iconv.php |
69 | | -.. _JSON: http://php.net/manual/en/book.json.php |
70 | | -.. _Session: http://php.net/manual/en/book.session.php |
71 | | -.. _Ctype: http://php.net/manual/en/book.ctype.php |
72 | | -.. _Tokenizer: http://php.net/manual/en/book.tokenizer.php |
73 | | -.. _SimpleXML: http://php.net/manual/en/book.simplexml.php |
74 | | -.. _PCRE: http://php.net/manual/en/book.pcre.php |
| 68 | +.. _`iconv`: https://php.net/book.iconv |
| 69 | +.. _`JSON`: https://php.net/book.json |
| 70 | +.. _`Session`: https://php.net/book.session |
| 71 | +.. _`Ctype`: https://php.net/book.ctype |
| 72 | +.. _`Tokenizer`: https://php.net/book.tokenizer |
| 73 | +.. _`SimpleXML`: https://php.net/book.simplexml |
| 74 | +.. _`PCRE`: https://php.net/book.pcre |
0 commit comments