user@server:$ 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 30 not upgraded.
user@server:$ sudo php -m
[PHP Modules]
...
iconv
json
libxml
...
if you have just installed, try rebooting the web server.
sudo service apache2 reload or
sudo service apache2 restart
and check in etc/php5...conf.d, prilinkovan expansion
recently ran a similar question, browse. dare seems to be installing a separate package (in Ubuntu is)
As wrote above, you need links posozdavat, shared folder /etc/php5/conf.d/ stopped picked up. Even for apache sites have stopped picked up if the config doesn't end .conf
user@server:$ sudo add-apt-repository 'deb <a href="http://ppa.launchpad.net/ondrej/php5/ubuntu">http://ppa.launchpad.net/ondrej/php5/ubuntu</a> saucy main'
Then download prickly this link Add the key:user@server:$ sudo apt-key add rep.key
Next, make update repositories upgrade php5-fpm:user@server:$ sudo apt-get update ... user@server:$ sudo apt-get upgrade php5-fpm Reading package lists... Done Building dependency tree Reading state information... Done The following packages have been kept back: linux-generic linux-headers-generic linux-image-generic php-pear php5-cgi php5-cli php5-common php5-fpm php5-gd php5-mcrypt php5-mysql php5-readline The following packages will be upgraded: apport grub-common grub-pc grub-pc-bin grub2-common initramfs-tools initramfs-tools-bin libedit2 libglib2.0-0 libglib2.0-data libjson-c2 libjson0 libpam-systemd libprocps0 libsystemd-daemon0 libsystemd-login0 libudev1 openssh-client openssh-server php5-json procps python3-apport python3-distupgrade python3-problem-report python3-software-properties python3-update-manager software-properties-common systemd-services ubuntu-release-upgrader-core udev update-manager-core 31 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Need to get 6,705 kB of archives. After this operation, 54.3 kB of additional disk space will be used.
After restarting php json earned:user@server:$ sudo service php5-fpm restart
- Dwight.Homeni commented on October 3rd 19 at 02:08