AWS Redhat RHEL Install LAMP

From Hawk Wiki
Revision as of 18:17, 16 March 2015 by Hall (Talk | contribs) (install PHP)

Jump to: navigation, search

Install LAMP on redhat 5.4, Cent OS 7=

Install apache

sudo su
yum install httpd
apachectl start

Install mysql

Mysql is different in Cent OS 7
see https://www.digitalocean.com/community/questions/can-t-install-mysql-on-centos-7

yum -y install mariadb-server mariadb
systemctl start mariadb.service
systemctl enable mariadb.service
mysql_secure_installation #to setup mysql password

Install PHP

yum install php php-mysql

See RHEL Yum for installing php-mbstring in centOS 7