8000 Updated the requirements article for Symfony 3.3 by javiereguiluz · Pull Request #8196 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Updated the requirements article for Symfony 3.3 #8196

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

Merged
merged 1 commit into from
Jul 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Updated the requirements article for Smyfony 3.3
  • Loading branch information
javiereguiluz committed Jul 20, 2017
commit e50ddbe9f66e69d392062741612ac357c48635e6
57 changes: 18 additions & 39 deletions reference/requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,29 @@
Requirements for Running Symfony
================================

To run Symfony, your system needs to adhere to a list of requirements. You
can easily see if your system passes all requirements by running the
``web/config.php`` in your Symfony distribution. Since the CLI often uses
a different ``php.ini`` configuration file, it's also a good idea to check
your requirements from the command line via:
Symfony 3.3 requires **PHP 5.5.9** or higher to run, in addition to other minor
requirements. To make things simple, Symfony provides a tool to quickly check if
your system meets all those requirements.

.. code-block:: terminal

$ php bin/symfony_requirements

Below is the list of required and optional requirements.
Beware that PHP can define a different configuration for the command console and
the web server, so you need to check requirements in both environments.

Required
--------
Checking Requirements for the Web Server
----------------------------------------

* PHP needs to be a minimum version of PHP 5.5.9
* `JSON extension`_ needs to be enabled
* `ctype extension`_ needs to be enabled
* Your ``php.ini`` needs to have the ``date.timezone`` setting
Symfony includes a ``config.php`` file in the ``web/`` directory of your project.
Open that file with your browser to check the requirements.

Optional
--------
Once you've fixed all the reported issues, delete the ``web/config.php`` file
to avoid leaking internal information about your application to visitors.

* You need to have the PHP-XML module installed
* You need to have at least version 2.6.21 of libxml
* PHP tokenizer needs to be enabled
* mbstring functions need to be enabled
* iconv needs to be enabled
* POSIX needs to be enabled (only on \*nix)
* Intl needs to be installed with ICU 4+
* APC 3.0.17+ (or another opcode cache needs to be installed)
* ``php.ini`` recommended settings
Checking Requirements for the Command Console
---------------------------------------------

* ``short_open_tag = Off``
* ``magic_quotes_gpc = Off``
* ``register_globals = Off``
* ``session.auto_start = Off``
Open your console or terminal, enter in your project directory, execute this
command and fix the reported issues:

Doctrine
--------

If you want to use Doctrine, you will need to have PDO installed. Additionally,
you need to have the PDO driver installed for the database server you want
to use.
.. code-block:: terminal

.. _`JSON extension`: https://php.net/manual/book.json.php
.. _`ctype extension`: https://php.net/manual/book.ctype.php
$ cd my-project/
$ php app/check.php
0