Centos LAMP Install
Install Apache
[root@ns ~]# yum install httpd httpd-devel
[root@ns ~]# /etc/init.d/httpd start
Install MySQL Database Server
[root@ns ~]# yum install mysql mysql-server mysql-devel
[root@ns ~]# /etc/init.d/mysqld start
Changing MySQL Root Password
[root@ns ~]# mysql
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD(‘newpassword’) WHERE user=’root’;
mysql> FLUSH PRIVILEGES;
exit
Install PHP5 Scripting Language
yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml
/etc/init.d/httpd restart
PHP TEST
[root@ns ~]# /var/www/html/test.php
Install phpMyAdmin
[root@ns ~]# yum install phpmyadmin
(phpmyadmin kurulumunda hata alınıyorsa yum update yapılıp tekrardan denenmeli)
[root@ns ~]# nano /etc/httpd/conf.d/phpmyadmin.conf
Order Deny,Allow
# Deny from all
Allow from 127.0.0.1
Reboottan sonra mysql ve httpd servisinin autostart olması için
[root@ns ~]# chkconfig httpd on
[root@ns ~]# chkconfig mysqld on