admin管理员组文章数量:1794759
php源码安装
php源码安装
下载php的rpm包并解压 在解压之后的目录中,查看是否有configure,如果有此文件,使用./configure--->make---->make install方式进行源码安装
[root@server1 ~]# yum install -y bzip2 [root@server1 ~]# tar jxf php-7.4.12.tar.bz2 [root@server1 ~]# ls [root@server1 ~]# cd php-7.4.12/ [root@server1 php-7.4.12]# ls [root@server1 php-7.4.12]# ./configure | less [root@server1 php-7.4.12]# ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --with-curl --with-iconv --with-mhash --with-zlib --with-openssl --enable-mysqlnd --with-mysqli --with-pdo-mysql --disable-debug --enable-sockets --enable-soap --enable-inline-optimization --enable-xml --enable-ftp --enable-gd --enable-exif --enable-mbstring --enable-bcmath --with-fpm-systemd [root@server1 php-7.4.12]# yum install -y systemd-devel libxml2-devel sqlite-devel libcurl-devel libpng-devel [root@server1 ~]# yum install -y oniguruma-6.8.2-1.el7.x86_64.rpm [root@server1 ~]# yum install -y oniguruma-devel-6.8.2-1.el7.x86_64.rpm [root@server1 php-7.4.12]# ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --with-curl --with-iconv --with-mhash --with-zlib --with-openssl --enable-mysqlnd --with-mysqli --with-pdo-mysql --disable-debug --enable-sockets --enable-soap --enable-inline-optimization --enable-xml --enable-ftp --enable-gd --enable-exif --enable-mbstring --enable-bcmath --with-fpm-systemd [root@server1 php-7.4.12]# make
memcache-4.0.5.2.tgz ##解压
对memcache进行源码编译 make make install cd /usr/local/php/etc/ vim php.ini systemctl reload php-fpm.service php -m | grep memcache
安装成功
版权声明:本文标题:php源码安装 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1687006286a127924.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论