Ubuntu 16 64-bit compilation install PHP

Source: Internet
Author: User

./Configure--prefix=/usr/local/PHP7--exec-prefix=/usr/local/PHP7--with-config-file-path=/usr/local/php7/etc--with-Curl--with-freetype-dir--with-GD--with-GetText--with-iconv-dir--with-Kerberos--with-libdir=lib64--with-libxml-dir--with-mysqli--with-OpenSSL--with-pcre-Regex--with-pdo-MySQL--with-pdo-SQLite--with-Pear--with-png-dir--with-Xmlrpc--with-XSL--with-zlib--with-zlib-dir--with-Mhash--with-MCrypt--with-openssl-dir--with-jpeg-dir--enable-gd-jis-Conv--enable-FPM--enable-Bcmath--enable-Libxml--enable-inline-optimization--enable-gd-native-TTF--enable-Mbregex--enable-mbstring--enable-Opcache--enable-Pcntl--enable-Shmop--enable-Soap--enable-Sockets--enable-Sysvsem--enable-XML--enable-Zip First Configure determine the compilation environment

If there is an error::::::

Error 1:

Compile and install PHP7 error configure:error:Cannot find OpenSSL ' s libraries

1) Steps to resolve:

Reference: http://linuxzj.blog.51cto.com/6160158/1632132

[Email protected]:~/php-5.3.27# Find/-name libssl.so

The output is:/usr/lib/x86_64-linux-gnu/libssl.so

Preliminary judgment it may only look for libssl.so files under/usr/lib/, and thus:

Ln-s/usr/lib/x86_64-linux-gnu/libssl.so/usr/lib

recompiling the installation is passed.

or to report the same mistake.

2) Resolution Step 2

Reference: Https://stackoverflow.com/questions/40359817/litespeed-web-server-and-error-cannot-find-openssls-libraries

Apt-get Install build-essential libexpat1-dev libgeoip-dev libpng-dev libpcre3-dev libssl-dev libxml2-dev RCS Zlib1g-dev Libmcrypt-dev libcurl4-openssl-dev Libjpeg-dev Libpng-dev libwebp-dev pkg-config

Error 2:

The following error occurred when the./configure:

Configure:error:xslt-config not found. Please reinstall the LIBXSLT >= 1.1.0 distribution

Workaround:

Apt Install libxslt-devel*-y

Ubuntu 16 64-bit compilation 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.