Network - Server

Package php5 have no installation candidate (Ubuntu 16.04)

 Ubuntu 16.04 comes with PHP7 as the standard, so there are no PHP5 packages

However if you like you can add a PPA to get those packages anyways:

Remove all the stock php packages

List installed php packages with dpkg -l | grep php| awk '{print $2}' |tr "\n" " " then remove unneeded packages with sudo aptitude purge your_packages_here or if you want to directly remove them all use :

sudo aptitude purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`

Add the PPA

sudo add-apt-repository ppa:ondrej/php

Install your PHP Version

sudo apt-get update 
  sudo apt-get install php5.6

You can install php5.6 modules too ..

Verify your version

sudo php -v
Install more ext: 
apt-get install -y --force-yes  mysql-client mysql-server nginx php5.6-fpm php5.6-cli php5.6-curl php5.6-gd php5.6-intl php5.6-json php5.6-mcrypt php5.6-mysql php5.6-xmlrpc php5.6-xsl 

 

 

0 Bình luận

Trở về
  • Setup window xp từ usb!
  • Setup window xp từ usb!

    Tôi xin chia sẻ với các bạn cách sử dụng USB để làm bộ cài đặt windows xp, giống như một đĩa...

  • Mysql command
  • Mysql command

     # [mysql dir]/bin/mysql -h hostname -u root -p Create a database on the sql server. mysql> create database [databasename]; List...