Este documento esta hecho para poder instalar LAMP en una maquina Centos7.
root@localhost:~$ yum update
root@localhost:~$ yum install httpd
root@localhost:~$ httpd -v
root@localhost:~$ service httpd status
root@localhost:~$ service httpd start
root@localhost:~$ firewall-cmd --permanent --zone=public --add-service=http
root@localhost:~$ firewall-cmd --permanent --zone=public --add-service=https
root@localhost:~$ service firewalld restart
root@localhost:~$ yum update
root@localhost:~$ wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
root@localhost:~$ rpm -ivh mysql-community-release-el7-5.noarch.rpm
root@localhost:~$ yum update
root@localhost:~$ yum install mysql-server
root@localhost:~$ firewall-cmd --permanent --zone=public --add-port=3306/tcp
root@localhost:~$ setsebool -P httpd_can_network_connect_db=1
root@localhost:~$ yum install epel-release yum-utils
root@localhost:~$ yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
root@localhost:~$ yum-config-manager --enable remi-php73
root@localhost:~$ yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysqlnd
root@localhost:~$ php –v
root@localhost:~$ yum install git
root@localhost:~$ yum install php-cli php-zip wget unzip
root@localhost:~$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
root@localhost:~$ HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
root@localhost:~$ php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
root@localhost:~$ php composer-setup.php --install-dir=/usr/local/bin --filename=composer
root@localhost:~$ composer