Wednesday, January 20, 2016

Install LAMP Centos 6 Serverku

hanya catatanku

login server dulu

sudo yum install httpd
sudo service httpd start

sudo yum install mysql-server
sudo service mysqld start

sudo /usr/bin/mysql_secure_installation

sudo yum install php php-mysql

sudo chkconfig httpd on
sudo chkconfig mysqld on

sudo nano /var/www/html/info.php

Add in the following line:

<?php
phpinfo();
?>

Matiin Firewall

/etc/init.d/iptables stop

chkconfig iptables off


install PHP mbstring on CentOS 6.2

sudo nano /etc/yum.repos.d/CentOS-Base.repo

di bawah sektion "updates: hilangkan pagar


lalu

yum install php-mbstring

sudo service httpd restart

-selesai-