4.4 - Executando comandos do Symfony Execute os comandos do symfony necessários para o sistema
funcionar: # su - www-data
$ bash
$ cd /srv/gerente
Instalação dos vendors $ php composer.phar install
Quando dou esse comando gera essa msg de erro
PHP Fatal error: Call to undefined function Composer\Json\json_decode() in phar:///srv/gerente/composer.phar/src/Composer/Json/JsonFile.php on line 146
Fatal error: Call to undefined function Composer\Json\json_decode() in phar:///srv/gerente/composer.phar/src/Composer/Json/JsonFile.php on line 146
Obrigado
Autor: Jose Pedro de Barros Gonçalves

66 comentários
priority=20
extension=json.so salve e execute $ sudo service php5-fpm restart Pronto, agora é só seguir daqui em diante: su - www-data FONTE: www.pannix.net/721/ubuntu_php_problem_json_and_mcrypt_missing_in_action/ $ sudo apt-get install php5-json Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-json is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Strange. It seemed to be installed. Next step: check if it shows up in the compiled modules list: $ php -m ...
iconv
imagick
intl
json
libxml
mbstring
memcache
... $ php5-fpm -m ...
iconv
imagick
intl
json
libxml
mbstring
memcache
... Everything seems to be in order, so far. I found the solution in the answer to a question someone asked on superuser.com: “How to fix the phpmyadmin error ‘json extension is missing’?” Open the json.ini file: $ sudo vi /etc/php5/mods-available/json.ini and uncomment the line mentioning the priority by removing the leading ‘;’, so that it looks like this: ; configuration for php json module
priority=20
extension=json.so - See more at: www.pannix.net/721/ubuntu_php_problem_json_and_mcrypt_missing_in_action/#sthash.QH2DMicH.dpuf