Sie sind auf Seite 1von 3

Building a LAMP Server (Linux, Apache, MySQL, PHP) by Jay Rogers Centos 5.

1. Install OS 2. Upgrade OS (if needed) 3. Disable SE Linux a. vim /etc/selinux/config 4. Disable Firewall a. service iptables stop b. service ip6tables stop c. chkconfig iptables off d. chkconfig ip6tables off 5. Configure SSH a. yum -y install openssh-server 6. Install VMware Tools a. http://blog.infusiontechsolutions.com/how-to-install-vmware-tools-in-centos-5/ 7. Configure NTP a. yum install ntp b. vim /etc/ntp.conf 8. REBOOT 9. Add additional package repo a. cd ~ b. wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5c. d. e.
4.noarch.rpm wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.08.ius.el5.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm rpm -ivh epel-release-5-4.noarch.rpm ius-release-1.0-8.ius.el5.noarch.rpm remirelease-5.rpm

10. Install HTTPD a. yum -y install httpd 11. Install PHP and MySQL a. yum install mysql mysql-server mysql-devel b. yum --enablerepo=remi install php53 php53-pear php53-cli php53-common php53devel php53-gd php53-mbstring php53-mcrypt php53-mysql php53-pdo php53-soap php53-xml php53-xmlrpc php53-bcmath php53-pecl-apc php53-pecl-memcache php53snmp

12. Configure MySQL and HTTPD to run at start a. chkconfig mysqld on b. chkconfig httpd on 13. Edit HTTPD.CONF a. KeepAlive on b. AllowOveride All c. NameVirtualHost *:80 d. **ADD VIRTUAL NAME HOST*** 14. Start HTTPD and MYSQL a. service httpd start b. service mysqld start 15. Configure MySQL a. mysql_secure_installation 16. Create Users a. useradd username b. passwd username

Building a LAMP Server (Linux, Apache, MySQL, PHP) by Jay Rogers Centos 5.7

c. *****change password*****

Building a LAMP Server (Linux, Apache, MySQL, PHP) by Jay Rogers Centos 5.7

17. Add users to Apache group a. 18. Install PHPMyAdmin a. cd /var/www/html b. wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/
3.4.3.2/phpMyAdmin-3.4.3.2-all-languages.zip? r=http%3A%2F%2Fwww.phpmyadmin.net%2Fhome_page%2Findex.php&ts=1313076361&use_mirr or=cdnetworks-us-2 unzip php* mv php* phpmyadmin cd /var/www/hmtl/phpmyadmin ***CREATE BLOWFISH SECRET AND STORE IN config.sample.inc.php**** mv config.sample.inc.php config.inc.php

c. d. e. f. g.

Das könnte Ihnen auch gefallen