Lamp source code Construction

Source: Internet
Author: User

Lamp

Centos6.5 + Apache/2.2.29 + PhP 5.3.29 + mysql5.6.20

 

Apache (/usr/local/Apache)

 

PHP (/usr/local/bin/PHP)

 

MySQL (/usr/local/MySQL)

 

Apache CAT/usr/local/Apache/build/config. Nice

./Configure -- prefix =/usr/local/Apache -- enable-so -- enable-modules = all -- enable-mods-shared = all

Make & make install

-- Enable-so dynamic shared object

 

MySQL (mysql-advanced-5.6.20-linux-glibc2.5-x86_64) (Binary Package installation)

Groupadd MySQL

CD/usr/local

Ln-s mysql-advanced-5.6.20-linux-glibc2.5-x86_64 MySQL

CP mysql-advanced */support-files/my-default.cnf/etc/My. CNF

CP mysql-advanced */support-files/MySQL. Server/etc/init. d/mysqld

Chmod 755/etc/init. d/mysqld

CD MySQL

Chown-r MYSQL: MySQL.

Scripts/mysql_install_db -- user = MySQL

Chown-r root.

Chown-r Mysql Data

Bin/mysqld_safe -- user = MySQL &

 

PHP

./Configure -- with-apxs2 =/usr/local/Apache/bin/apxs -- With-mysql =/usr/local/MySQL

Make & make install

Cp php. ini-production/usr/local/lib/PHP. ini

 

Vim/usr/local/Apache/CONF/httpd. conf

Addtype application/X-httpd-PHP. php

 

# Check whether Apache has a PHP Module

Apachectl-M | grep PHP

 

# Check whether the MySQL module exists in PHP

Php-I | grep MySQL

 

# View various modules in the lamp architecture (IP 192.168.1.2)

192.168.1.2/phpinfo. php

 

 

 

 

Lamp source code Construction

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.