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-forums/1769-basic-lamp-install-tutorial-webmin-any-centos-version/
MySQL
enteryum install mysql mysql-server
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
mysql_secure_installation
y
y
y
y
y
Apache
Now try apache is running, go to your server IP: http://xxx.xxx.xxx.xxxyum install httpd
chkconfig --levels 235 httpd on
/etc/init.d/httpd start
WWW directory: /var/www/html
Apache config: /etc/httpd/conf/httpd.conf
PHP
Want to see PHP config?yum install php
/etc/init.d/httpd restart
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
PHPMyAdminyum 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
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:
Edit PHPMyAdmin config file, allow access from internet: (comment out by #)rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm
yum update
yum install phpMyAdmin
service httpd restart
#<Directory /usr/share/phpMyAdmin/>vim /etc/httpd/conf.d/phpMyAdmin.conf
# 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
Bookmarks