CentOS 6.6 Compile and install lamp (apache2+php+mysql+phpmyadmin)

Source: Internet
Author: User

Build a good development environment:Linux:centos 6.6 (Final) x64
apache:2.2.15
mysql:5.1.52
php:5.3.2

Step Description:1.MySQL

# yum Install MySQL Mysql-server


# chkconfig--levels 235 mysqld on # MySQL can be launched with the system on its own initiative


#/etc/init.d/mysqld Start


# mysql_secure_installation # set MySQL data root account password


# mysql-u root-p # start MySQL database with root user



2.Apache


# yum Install httpd


# chkconfig--levels 235 httpd on # Apache with system boot


#/ETC/INIT.D/HTTPD Start


#/sbin/iptables-i input-p TCP--dport 80-j ACCEPT # CentOS Firewall Open 80 port


#/etc/rc.d/init.d/iptables Save # Saved


#/etc/init.d/iptables Status # Confirmation check



3.PHP


# Yum Install PHP


#/etc/init.d/httpd Restart


# Yum Search PHP # searching module


# yum Install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml PHP-XMLRPC # Installation related modules


#/etc/init.d/httpd Restart # restart Apache



4.php-myadmin


# cd/var/www/html


# wget http://nchc.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.3.10/phpMyAdmin-3.3.10-all-languages.tar.gz


# tar XVFZ phpmyadmin-3.3.10-all-languages.tar.gz # Unzip


# MV Phpmyadmin-3.3.10-all-languages PhpMyAdmin


# CD phpMyAdmin


# CP config.sample.inc.php config.inc.php


# Vim config.inc.php
:
$cfg [' Servers '] [$i] [' auth_type '] = ' http '; # Default is Cookies

:


# Service httpd Restart



5. Configure the monitoring port


# cd/etc/httpd/conf


# Vim Httpd.conf


Listen 5000






CentOS 6.6 Compile and install lamp (apache2+php+mysql+phpmyadmin)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.