How to install PHP7 on * unix

1

I decided to test a unix-like system (Linux Mint) to learn more, and I need to install PHP7, because PHPtherightway sent . I have already installed apache2 via Terminal and Mysql. I know there is a way to install PHP7 via the terminal, but according to this guy here , it does not have an official release yet. So I went to the link and downloaded this package here PHP7 . There is a install file, I read, but I did not understand how to install a package of those via terminal. anyone with experience with this could help me?

    
asked by anonymous 14.02.2016 / 01:23

1 answer

1

At the Ubuntu terminal:

$ sudo add-apt-repository ppa:ondrej/php -y
$ sudo apt-get update
$ sudo apt-get install -y php7.0-fpm php7.0-mysql php7.0-curl php7.0-mcrypt php7.0-gd

NOTE: The above code will install PHP FPM, ideal for nginx or Apache worker. If you are using Apache prefork + mod_php, use:

$ sudo apt-get install -y php7.0 php7.0-mysql php7.0-curl php7.0-mcrypt php7.0-gd

It already includes the cURL, MySQL, Mcrypt and GD libraries. You can find a more detailed explanation at this link: link

    
14.02.2016 / 01:50