Linux under the source to build lap environment

Source: Internet
Author: User
Tags fpm gmp openssl readline

Yum install gcc gcc+ libxml2-devel//Compile support

Yum Install Epel-release//Expansion Pack update package does not execute

Yum Update//update yum source does not execute

Apache 2.4.29 installation

Http://mirrors.hust.edu.cn/apache//httpd/httpd-2.4.29.tar.gz

Cc= "PGCC" cflags= "-o2"./configure--prefix=/usr/local/httpd--enable-ldap=shared--enable-lua=shared

Make

Make install

PHP configuration after successful installation

httpd.conf Configuration

Add AddType application/x-httpd-php. PHP 56 Rows or so

DirectoryIndex index.html changed to DirectoryIndex index.html index.php

Add PHP Extensions

LoadModule Php7_module modules/libphp7.so

php7.2.1 Installing-total

PHP Dependent Environment

Yum install libxml2 libxml2-devel OpenSSL openssl-devel bzip2 bzip2-devel libcurl libcurl-devel libjpeg libjpeg-devel LIBP ng libpng-devel freetype freetype-devel GMP gmp-devel libmcrypt libmcrypt-devel readline readline-devel libxslt libxslt-d Evel

php7.2.1 installation

TAR-ZXVF * *--Extract PHP source file package

./configure--PREFIX=/USR/LOCAL/PHP7--WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP7--enable-fpm--with-fpm-user=nginx-- With-fpm-group=nginx--enable-inline-optimization--disable-debug--disable-rpath--enable-shared--enable-soap-- With-apxs2=/usr/local/httpd/bin/apxs--with-xmlrpc--with-openssl--with-mhash--with-pcre-regex--with-sqlite3-- With-zlib--enable-bcmath--with-iconv--with-bz2--enable-calendar--with-curl--with-cdb--enable-dom--enable-exif- -enable-fileinfo--enable-filter--with-pcre-dir--enable-ftp--with-gd--with-openssl-dir--with-jpeg-dir-- With-png-dir--with-zlib-dir--with-freetype-dir--enable-gd-jis-conv--with-gettext--with-gmp--with-mhash-- Enable-json--enable-mbstring--enable-mbregex--enable-mbregex-backtrack--WITH-LIBMBFL--with-onig--enable-pdo-- With-mysqli=mysqlnd--with-pdo-mysql=mysqlnd--with-zlib-dir--with-pdo-sqlite--with-readline--enable-session-- Enable-shmop--enable-simplexml--enable-sockets--enable-sysvmsg--enable-sysvsem--enabLe-sysvshm--enable-wddx--with-xsl--enable-zip--enable-mysqlnd-compression-support--with-pear--enable-opcache

Make

Make install

Configuration file

CP Php.ini-production/usr/local/php7/php.ini

Or

CP Php.ini-development/usr/local/php7/lib/php.ini

Linux under the source to build lap environment

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.