当前位置:网站首页>CentOS8搭建PHP8.0.3运行环境
CentOS8搭建PHP8.0.3运行环境
2022-04-23 05:57:00 【每月仅支持修改 1-次】
安装依赖
dnf install wget vim pcre pcre-devel openssl openssl-devel libicu-devel gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel ncurses ncurses-devel curl curl-devel krb5-devel openldap openldap-devel nss_ldap cmake boost-devel bison automake libevent libevent-devel gd gd-devel libtool* libxslt libxslt-devel readline readline-devel gmp gmp-devel libcurl libcurl-devel systemd-devel sqlite-devel libzip-devel make nginx
安装oniguruma
dnf --enablerepo=powertools install oniguruma-devel
下载PHP安装包
wget https://www.php.net/distributions/php-8.0.3.tar.gz
编译安装PHP
./configure --prefix=/usr/local/php8 --with-config-file-path=/usr/local/php8/etc --with-curl --with-freetype --enable-gd --with-jpeg --with-gettext --with-kerberos --with-libdir=lib64 --with-libxml --with-mysqli --with-openssl --with-pdo-mysql --with-pdo-sqlite --with-pear --enable-sockets --with-mhash --with-ldap-sasl --with-xsl --with-zlib --with-zip -with-bz2 --with-iconv --enable-fpm --enable-pdo --enable-bcmath --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-xml --enable-sysvsem --enable-cli --enable-opcache --enable-intl --enable-calendar --enable-static --enable-mysqlnd
make && make install
测试
/usr/local/php8/bin/php --version
初始化php.ini
cp php.ini-development /usr/local/php8/etc/php.ini
初始化FPM配置文件
cp /usr/local/php8/etc/php-fpm.d/www.conf.default /usr/local/php8/etc/php-fpm.d/www.conf
cp /usr/local/php8/etc/php-fpm.conf.default /usr/local/php8/etc/php-fpm.conf
mkdir /usr/local/php8/deamon
cp sapi/fpm/init.d.php-fpm /usr/local/php8/deamon/php-fpm
chmod 740 /usr/local/php8/deamon/php-fpm
启动PHP-FPM
/usr/local/php8/deamon/php-fpm start
//----------------
版权声明
本文为[每月仅支持修改 1-次]所创,转载请带上原文链接,感谢
https://blog.csdn.net/tandengshanEpaylinks/article/details/124327610
边栏推荐
猜你喜欢
随机推荐
MOS tube characteristics and conduction process
C# 监听WMI事件
.Net Core 下使用 Quartz —— 【3】作业和触发器之作业传参
China creates vast research infrastructure to support ambitious climate goals
leetcode刷题之x的算术平方根
Arm common assembly instructions
Oracle改成mysql
自用学习笔记-连接式与非连接式访问数据库
SignalR实现从服务端主动发送数据到客户端
【无标题】js中的类型判断
Promise(二)
如何使用input表单向服务发送(占用较小)图片文件(body传输)?涉及到FileReader内置对象
offset和client获取dom元素位置信息
Mysql中的索引与视图
sql中的 IF 条件语句的用法
Counts the number of occurrences of each character in the string
PHP 无限极分类和树形
.Net Core 下使用 Quartz —— 【1】快速开始
百度地图基础案例
js查找字符串中出现了三次的字符