Linux standalone LNMP environment deployment
1. Software Source
- Mysql-5.6.14
- Nginx-1.5.1
- Php-5.5.6
2. Standard Library Installation
Yum-y install wget make vim install gcc-c ++ ncurses-devel autoconf libjpeg-devel libpng-devel freetype-devel libxml2 libxml2-devel zlib-devel glibc- devel glib2 glib2-devel bzip2 bzip2-devel curl-devel kernel e2fsprogs-devel krb5 krb5-devel libidn-devel openssl-devel openldap-devel kernel openldap-clients openldap-servers pcre-devel zlip-devel libXpm *
3. install php dependent Libraries
Libxml2 -- contains libraries and utilities for parsing XML files
Wget http://xmlsoft.org/sources/libxml2-2.9.0.tar.gz
Tar zxvf libxml2-2.9.0.tar.gz
Cd libxml2-2.9.0
./Configure
Make & make install
Libmcrypt-extended library of encryption algorithms (supported algorithms include DES, 3DES, RIJNDAEL, Twofish, IDEA, GOST, CAST-256, ARCFOUR, SERPENT, and SAFER +)
Wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz
Tar zxvf libmcrypt-2.5.7.tar.gz
Cd libmcrypt-2.5.7
./Configure
Make & make install
After the default php installation, gd does not support jpg, and only supports gif, png, and bmp. Therefore, you must first install the gd library.
Wget http://bitbucket.org/libgd/gd-libgd/downloads/libgd-2.1.0.tar.gz
Tar zxvf libgd-2.1.0.tar.gz
Cd libgd-2.1.0
./Configure -- prefix =/usr/local/webserver/gd2/
Make & make install
4. Install mysql Configuration
Install
Cd/usr/local
Mkdir webserver
Cd/usr/local/src
Tar zxvf mysql-5.6.14-linux-glibc2.5-i686.tar.gz-C/usr/local/webserver
Cd/usr/local/webserver
Music mysql-5.6.14-linux-glibc2.5-i686 mysql
Configuration
Groupadd mysql
Useradd-r-g mysql
Cd mysql
Chown-R mysql.
Chgrp-R mysql.
Scripts/mysql_install_db -- user = mysql
Chown-R root.
Chown-R mysql data/
Cp support-files/my-default.cnf/etc/my. cnf
Bin/mysqld_safe -- user = mysql &
Configure to start the mysql script
Vim support-files/mysql. server
# Set
# Basedir =
# Datadir =
# Change
# Basedir =/usr/local/webserver/mysql
# Datadir =/usr/local/webserver/mysql/data
Cp support-files/mysql. server/etc/init. d/mysql
Start/stop mysql
# Add the mysql/bin directory to the system environment variable
Service mysql start
Service mysql stop
Service mysql restart
For more details, please continue to read the highlights on the next page:
Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04
Build and install the LNMP production environment in CentOS 6.4
Practical Production Environment-LNMP architecture compilation and installation + SSL encryption implementation
LNMP full-featured compilation and installation for CentOS 6.3 notes
Install LNMP in CentOS 6.3 (PHP 5.4, MyySQL5.6)
Nginx startup failure occurs during LNMP deployment.
Ubuntu install Nginx php5-fpm MySQL (LNMP environment setup)