Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install and config php-config to php-config7 for PHP7.0 on Ubuntu

Tags:

php

ubuntu

I have installed PHP7.0 on Ubuntu, but when I run php-config, it requires me to install it, which I want to install a php-config7 instead of a php-config5.

like image 449
liudaxingtx Avatar asked Feb 24 '16 17:02

liudaxingtx


1 Answers

I was also stuck there but this command helped me.

I am using ubuntu 14.04

sudo add-apt-repository ppa:ondrej/php

it will install required repo for the php7

now install php-dev libs

sudo apt-get install php7.0-dev

now it will replace your old php-config to new one

now php-config will point to php-config7.0

like image 161
Hardik Satasiya Avatar answered Oct 20 '22 04:10

Hardik Satasiya