Linux下php7安装命令记录 linux查看php版本 linux php升级 linux php mssq
程序员文章站
2022-05-21 22:49:19
...
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
yum install openssl openssl-devel
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
yum install curl curl-devel
If configure fails try --with-webp-dir=
If configure fails try --with-jpeg-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
').addClass('pre-numbering').hide();
$(this).addClass('has-numbering').parent().append($numbering);
for (i = 1; i ').text(i));
};
$numbering.fadeIn(1700);
});
});
以上就介绍了Linux下php7安装命令记录,包括了Linux,php7方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
推荐阅读
-
Linux下 php7安装redis的方法
-
Linux系统下安装PHP7.3版本
-
Linux下给PHP安装amqp扩展 linux 安装php7 php安装 centos php安
-
linux Red Hat 4.1.2下nginx+php-fpm+mysql安装配置全记录
-
linux下php必须编译安装吗?yum里的都版本太低呀
-
PHP7在linux下的安装步骤
-
Windows和Linux下查看Apache、MySQL、PHP版本
-
Linux下php7安装命令记录 linux查看php版本 linux php升级 linux php mssq
-
Windows和Linux下查看Apache、MySQL、PHP版本
-
Windows和Linux下查看Apache、MySQL、PHP版本,apachemysql_PHP教程