记录Linux下php7安装命令

广告:宝塔Linux面板高效运维的服务器管理软件 点击【 https://www.bt.cn/p/uNLv1L 】立即购买

记录Linux下php7安装命令

推荐(免费):PHP7

Linux下php7安装命令记录

wget http://cn2.php.net/distributions/php-7.0.5.tar.gztar -zxvf php-7.0.5.tar.gzcd php-7.0.5./configure \--prefix=/usr/local/php \ --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 \--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报错 configure: error: Cannot find OpenSSL's <evp.h> yum install openssl openssl-develconfigure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/yum install curl curl-develIf 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-develcp php.ini-development /etc/php7.inicd /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.confcp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.confcp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.confln -s /usr/local/php/bin/php /bin/phpln -s /usr/local/php/sbin/php-fpm /bin/php7-fpmln -s /usr/local/php/bin/php /bin/php7

登录后复制

以上就是记录Linux下php7安装命令的详细内容,更多请关注9543建站博客其它相关文章!

广告:SSL证书一年128.66元起,点击购买~~~

9543建站博客
一个专注于网站开发、微信开发的技术类纯净博客。
作者头像
admin创始人

肥猫,知名SEO博客站长,14年SEO经验。

上一篇:nodejs怎么跳转页面跳转页面跳转页面
下一篇:写laravel用什么编辑器

发表评论

关闭广告
关闭广告