Centos Install Apache and PHP 7.1



Tutorial to install Apache on Centos and ready to use. php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongodb php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

How To
yum update -y

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

yum install vim nano screen unzip zip curl wget dos2unix nc bc bind-utils -y

yum –enablerepo=remi,remi-php71 install httpd php php-common -y
yum –enablerepo=remi,remi-php71 install php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongodb php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml -y

systemctl start httpd.service
systemctl enable httpd.service

iptables -A INPUT -p tcp -m tcp –dport 80 -j ACCEPT
iptables -A INPUT -p tcp -m tcp –dport 443 -j ACCEPT

iptables -L -n

yum install firewalld -y
systemctl stop firewalld
firewall-cmd –zone=public –add-port=80/tcp –permanent
firewall-cmd –reload

cd /var/www

chmod -R 755 html

sudo su
systemctl enable firewalld
systemctl start firewalld

systemctl disable firewalld

chown -R apache.apache /var/www/html

reboot

Read More

1 Comment

Comments are closed.