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