LAMP = Linux Apache MySQL PHP

it can be installed all using these easy steps below

NOTE: This is my new LAMP tutorial which is slightly simplier and i used it on CentOS 6.5: http://internetlifeforum.com/linux-f...entos-version/

MySQL
yum install mysql mysql-server
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
mysql_secure_installation
enter
y
y
y
y
y

Apache
yum install httpd
chkconfig --levels 235 httpd on
/etc/init.d/httpd start
Now try apache is running, go to your server IP: http://xxx.xxx.xxx.xxx

WWW directory: /var/www/html
Apache config: /etc/httpd/conf/httpd.conf

PHP
yum install php
/etc/init.d/httpd restart
Want to see PHP config?
vi /var/www/html/info.php
add: <?php phpinfo(); ?>
go to: http://xxx.xxx.xxx.xxx/info.php

Install PHP modules
To see list of modules, do yum search php
yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc php-pecl-apc
/etc/init.d/httpd restart
PHPMyAdmin
Method A (download newest version!)
You can install phpadmin by downloading its tar.gz file, extracting and moving to proper folder. Try this tutorial.
Method B (from repository using yum)
Install or enable EPEL repository from http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/YOURCENTOSVERSION/epel-release-*****.noarch.rpm example:
rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fed...6-8.noarch.rpm
yum update
yum install phpMyAdmin
service httpd restart
Edit PHPMyAdmin config file, allow access from internet: (comment out by #)

vim /etc/httpd/conf.d/phpMyAdmin.conf
#<Directory /usr/share/phpMyAdmin/>
# Order Deny,Allow
# Deny from All
# Allow from 127.0.0.1
# Allow from ::1
#</Directory>

#<Directory /usr/share/phpMyAdmin/scripts/>
# Order Deny,Allow
# Deny from All
# Allow from 127.0.0.1
# Allow from ::1
#</Directory>

in /usr/share/phpMyAdmin/config.inc.php "auth_type" should be: http