LANMP (Linux Apache Nginx Mysql Php) installation configuration _linux

Source: Internet
Author: User
Tags curl openssl php and php mysql centos openldap
1 installation CentOS 5, download address
Please disable SELinux and firewalls during installation

2 Install the necessary components
Yum-y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-deve L zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel Curl curl-devel e2fsprogs E2 Fsprogs-devel krb5 krb5-devel libidn libidn-devel OpenSSL openssl-devel openldap openldap-devel Nss_ldap Openldap-clients openldap-servers

3) Install Apache
If you use the system Apache + PHP + MySQL
can use
yum-y install httpd php mysql php-mysql php-pdo php-mcrypt

If you would like to compile Apache yourself, download the latest version of Apache to, and then compile the installation
Make install

Compile PHP and related components to download php5.2 latest version of
(assuming that the MySQL was previously compiled in/usr/local/mysql, if the system with MySQL can be--with-mysql=/usr)

4) Compiling Nginx
Download Nginx ( and compile
./configure--prefix=/usr/local/nginx && make && make install

5) Compiling MySQL
Download ( and compile MySQL
./configure--prefix=/usr/local/mysql && make && make install

6 Detail performance adjustment and website planning
Related Article

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: 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.