Search
 
SCRIPT & CODE EXAMPLE
 

SQL

php5-mysql has no installation candidate

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 "
" " " 
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 "
" " "`

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
Comment

PREVIOUS NEXT
Code Example
Sql :: postgres date 
Sql :: sql server check for value in multiple columns 
Sql :: mysql find max value row 
Sql :: best sql collation 
Sql :: return the number of records in a single table mysql 
Sql :: sql select most frequent value in group 
Sql :: mysql server not running 
Sql :: mysql show foreign keys column 
Sql :: nested query sql 
Sql :: import database mysql command line 
Sql :: sql to c# model 
Sql :: copy from one table to another postgres using matching column 
Sql :: mysql dump 
Sql :: sql server python connection 
Sql :: what is denormalization in sql 
Sql :: select only distinct values from another table and excluding from current table 
Sql :: coalesce function in sql server 
Sql :: sql order of operations 
Sql :: dump sql file to database postgres 
Sql :: download database devilbox 
Sql :: mdl ddl acl 
Sql :: compare field sql server 
Sql :: reset counter postgres 
Sql :: sql cte example 
Sql :: SELECT ALL TABLE INFO 
Sql :: Failed to process SQL command - ORA-28014: cannot drop administrative user or role 
Sql :: DIFFERENCE BETWEEN 2 COLN IN SQL 
Sql :: FIND ABOVE AVERAGE SALARY EARNER IN SQL 
Sql :: syntax error at or near "AUTO_INCREMENT" 
Sql :: example database query 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =