< Xiao Tian eat dumplings > linux:contos7.0/7.2 lamp+r Download install PHP

Source: Internet
Author: User
Tags fpm install openssl mcrypt

Update Time: 2017-09-21 16:03

Brief introduction

Lamp+r refers to Linux+apache+mysql+php+redis is a group of often used to build dynamic Web site or server open source software, itself is a separate program, but because often put together to use, has a more and more high compatibility, Together make up a powerful Web application platform.

Apache Installation Demo Address:http://www.cnblogs.com/hello-tl/articles/7568803.html

PHP Installation Demo Address:http://www.cnblogs.com/hello-tl/p/7569071.html

Mysql Installation Chapter Demo address:http://www.cnblogs.com/hello-tl/p/7569097.html

Redis Installation Chapter Demo address:http://www.cnblogs.com/hello-tl/p/7569108.html

1. Yum installation dependencies and tools and Libmcrypt packages

 # Yum install gcc gcc++ libxml2-devel # yum install OpenSSL Openssl-devel # yum-y Install Curl-devel # yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 F Reetype-devel.x86_64-y # yum Install libjpeg libpng freetype libjpeg-devel libpng-devel freetype-devel-y # wget ftp:// mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz # TAR-ZXVF libmcrypt-2.5.7.tar.gz # CD  libmcrypt-2.5.7 #/configure--prefix=/home/libmcrypt # make install #/home/libmcrypt/bin/libmcrypt-config--version  #/home/libmcrypt/lib/libmcrypt.la # rpm-qa Libmcrypt # yum Install libmcrypt # yum install Libmcrypt Libmcrypt-devel  MCrypt Mhash.  //may cause an error I was not able to diagnose which Libmcrypt version you had installed  # yum Install Epel-release//Expansion Pack update package # Yum update//update yum source 

 2. Download the PHP installation package and install PHP

  # wget Http://hk1.php.net/get/php-7.1.6.tar.gz/from/this/mirror # mv Mirror php-7.1.6.tar.gz # TAR-ZXVF Php-7.1.6.tar . GZ # CD php-7.1.6.tar.gz #./configure--PREFIX=/HOME/PHP7--with-apxs2=/home/apache/bin/apxs--exec-prefix=/home /PHP7--bindir=/home/php7/bin--sbindir=/home/php7/sbin--includedir=/home/php7/include--libdir=/home/php7/lib/ph P--mandir=/home/php7/php/man--with-config-file-path=/home/php7/etc--with-mysql-sock=/var/lib/mysql/mysql.sock- -with-mcrypt=/usr/include--with-mhash--with-openssl--with-mysql=shared,mysqlnd--with-mysqli=shared,mysqlnd- -with-pdo-mysql=shared,mysqlnd--with-gd--with-iconv--with-zlib--enable-zip--enable-inline-optimization-- Disable-debug--disable-rpath--enable-shared--enable-xml--enable-bcmath--enable-shmop--enable-sysvsem- -enable-mbregex--enable-mbstring--enable-ftp--enable-gd-native-ttf--enable-pcntl--enable-sockets--with-x Mlrpc--enable-soap--without-pear--with-gettext--enable-session--with-curl--with-jpeg-dir--with-freetype-dir--enable-opcache --ENABLE-FPM--enable-fastcgi--with-fpm-user=nginx--with-fpm-group=nginx--without-gdbm--with-mcrypt=/home /libmcrypt--with-libdir=lib64--disable-fileinfo # make && make install

  

  

  

< Xiao Tian eat dumplings > linux:contos7.0/7.2 lamp+r Download install PHP

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.