Installing PHP 7 on the Linux AWS EC2 server

0

I am running the following command:

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

My intention is to install PHP, but this is returning the error:

>Lendo listas de pacotes... Pronto
>Construindo árvore de dependências       
>Lendo informação de estado... Pronto
>E: Impossível encontrar o pacote php7
>E: Impossível encontrar o pacote libapache2-mod-php7
>E: Impossível encontrar o pacote php7-mcrypt

I'm not finding anything on the internet about.

What should I do to complete the installation of my php server?

    
asked by anonymous 08.01.2017 / 17:27

1 answer

2

I was able to solve with some tips.

The first is there is a command to check which versions of PHP are available, to do this is enough:

$ sudo apt-cache search php

So I discovered that you had to do the following:

$ sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcrypt

By doing this I can usually install my php7.

    
08.01.2017 / 17:37