Symfony php.ini Debian

I am using a LAMP Debian 7 amd64 server in a VM VM. I am trying to install Symfony and I am having problems with lil

When I run the command: php my_project_name / app / check.php

It says:

[ERROR] Your system is not ready to run Symfony2 projects. Fix the following prerequisites:

  • set parameter date.timezone> Set setting "date.timezone" in php.ini * (eg in Europe / Paris).

I already tried to edit php.ini file with the following command: sudo nano / etc / php5 / apache2 / php.ini

and there in the [date] section ; removed ; and edited: date.timezone = Europe / Helsinki

after restart.

the correct timezone exists at http: //localhost/phpinfo.php .

Default time zone Europe / Helsinki, (Local value) date.timezone Europe / Helsinki, (Primary value) Europe / Helsinki

Any tips? Could there be another php.ini file that Symfony uses?

+3


source to share


1 answer


You are performing script validation via command line, so php.ini is different between CLI and apache. To find the correct php.ini for cli lauch run the following command:

php -i | grep 'php.ini'

      



And check the line Loaded Configuration File

Hope for this help

+2


source







All Articles