Home > Backend Development > PHP Tutorial > php7 installation command record under Linux linux check php version linux php upgrade linux php mssq

php7 installation command record under Linux linux check php version linux php upgrade linux php mssq

WBOY
Release: 2016-07-29 08:53:19
Original
1271 people have browsed it

php7 installation command record under Linux

<code>wget http:<span>//cn2.php.net/distributions/php-7.0.5.tar.gz</span>tar <span>-zxvf</span> php<span>-</span><span>7.0</span><span>.5</span><span>.</span>tar<span>.</span>gz

cd php<span>-</span><span>7.0</span><span>.5</span><span>.</span>/configure <span>\</span><span>--</span>prefix<span>=</span>/usr/<span>local</span>/php <span>\</span><span>--</span><span>with</span><span>-curl</span><span>--</span><span>with</span><span>-freetype</span><span>-dir</span><span>--</span><span>with</span><span>-gd</span><span>\</span><span>--</span><span>with</span><span>-gettext</span><span>--</span><span>with</span><span>-iconv</span><span>-dir</span><span>--</span><span>with</span><span>-kerberos</span><span>\</span><span>--</span><span>with</span><span>-libdir</span><span>=</span>lib64  <span>--</span><span>with</span><span>-libxml</span><span>-dir</span><span>--</span><span>with</span><span>-mysqli</span><span>\</span><span>--</span><span>with</span><span>-openssl</span><span>--</span><span>with</span><span>-pcre</span><span>-regex</span><span>--</span><span>with</span><span>-pdo</span><span>-mysql</span><span>\</span><span>--</span><span>with</span><span>-pdo</span><span>-sqlite</span><span>--</span><span>with</span><span>-pear</span><span>--</span><span>with</span><span>-png</span><span>-dir</span><span>\</span><span>--</span><span>with</span><span>-xmlrpc</span><span>--</span><span>with</span><span>-xsl</span><span>--</span><span>with</span><span>-zlib</span><span>\</span><span>--</span>enable<span>-fpm</span><span>--</span>enable<span>-bcmath</span><span>--</span>enable<span>-libxml</span><span>\</span><span>--</span>enable<span>-inline</span><span>-optimization</span><span>\</span><span>--</span>enable<span>-gd</span><span>-native</span><span>-ttf</span><span>--</span>enable<span>-mbregex</span><span>\</span><span>--</span>enable<span>-mbstring</span><span>--</span>enable<span>-opcache</span><span>\</span><span>--</span>enable<span>-pcntl</span><span>--</span>enable<span>-shmop</span><span>\</span><span>--</span>enable<span>-soap</span><span>--</span>enable<span>-sockets</span><span>\</span><span>--</span>enable<span>-sysvsem</span><span>--</span>enable<span>-xml</span><span>\</span><span>--</span>enable<span>-zip</span>报错
 configure: error: Cannot find OpenSSL<span>'s <evp.h> 
 yum install openssl openssl-devel

configure: error: Please reinstall the libcurl distribution -
    easy.h should be in <curl-dir>/include/curl/
yum install curl curl-devel

If configure fails try --with-webp-dir=<DIR>
If configure fails try --with-jpeg-dir=<DIR>
configure: error: png.h not found.
yum install libpng libpng-devel

.....
或者一次性把这些需要包全部安装
yum -y install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel

cp php.ini-development /etc/php7.ini
cd /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf

ln -s /usr/local/php/bin/php /bin/php
ln -s /usr/local/php/sbin/php-fpm /bin/php7-fpm
ln -s /usr/local/php/bin/php /bin/php7</span></code>
Copy after login
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the php7 installation command record under Linux, including the content of Linux and php7. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template