温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Linux下php7安装命令是什么

发布时间:2021-02-22 15:12:33 来源:亿速云 阅读:100 作者:清风 栏目:编程语言

这篇“Linux下php7安装命令是什么”除了程序员外大部分人都不太理解,今天小编为了让大家更加理解“Linux下php7安装命令是什么”,给大家总结了以下内容,具有一定借鉴价值,内容详细步骤清晰,细节处理妥当,希望大家通过这篇文章有所收获,下面让我们一起来看看具体内容吧。

php有什么用

php是一个嵌套的缩写名称,指的是英文超级文本预处理语言(php:Hypertext Preprocessor)的缩写,它的语法混合了C、Java、Perl以及php自创新的语法,主要用来做网站开发,许多小型网站都用php开发,因为php是开源的,从而使得php经久不衰。

Linux下php7安装命令记录

wget http://cn2.php.net/distributions/php-7.0.5.tar.gztar -zxvf php-7.0.5.tar.gz

cd 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-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

感谢你的阅读,希望你对“Linux下php7安装命令是什么”这一关键问题有了一定的理解,具体使用情况还需要大家自己动手实验使用过才能领会,快去试试吧,如果想阅读更多相关知识点的文章,欢迎关注亿速云行业资讯频道!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI