Lamp (Linux,Apache,MySQL,PHP)
By (lampp linux.blogspot.com)
lamp configuration in linux
Step 1:
Configure The local Yum
Step 2:
#rpm -ivh yum-priorities
(Download yum-priorities rpm from www.pkgs.org)
Step 3:
#rpm -ivh epel-release-5-4.noarch.rpm
(Download epel-release rpm from www.pkgs.org)
Step 4:
#rpm -ivh remi-release-5.rpm
(Download remi-release rpm from www.pkgs.org)
Step 5:
#vim /etc/yum.repos.d/epel.repo
Priority=3
(Write this button line no 9)
(Write this button line no 9)
#vim /etc/yum.repos.d/remi.repo
Replace
enable=0 to 1
or
priority=3 (Write this button line no 9)
Step6:
#yum install httpd
#yum install php
Step7:
#service httpd start ; chkconfig httpd on
#vim /var/www/html/info.php
Write this code and save info.php:
<?php
Phpinfo();
?>
|
Step8:
#yum install mysql-server mysql php-mysql
#service mysqld start ; chkconfig mysqld on
#mysqld
mysql> SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD (‘your password here’);
mysql> exit
Step 9:
#yum install phpmyadmin
#vim /etc/httpd/conf.d/phpMyAdmin.conf
Disable line no 12
#deny from all
# service httpd restart
So you are hosted wordpress, joomla, Vbulletin & other php or perl web scripts in your apache.
No comments:
Post a Comment