当前位置:网站首页>Centos8 builds php8 0.3 operating environment
Centos8 builds php8 0.3 operating environment
2022-04-23 06:51:00 【It only supports modification once a month】
Installation dependency
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
install oniguruma
dnf --enablerepo=powertools install oniguruma-devel
download PHP Installation package
wget https://www.php.net/distributions/php-8.0.3.tar.gz
Compilation and installation 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
test
/usr/local/php8/bin/php --version
initialization php.ini
cp php.ini-development /usr/local/php8/etc/php.ini
initialization FPM The configuration file
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
start-up PHP-FPM
/usr/local/php8/deamon/php-fpm start
//----------------
版权声明
本文为[It only supports modification once a month]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230556157793.html
边栏推荐
猜你喜欢
随机推荐
自用学习笔记-连接式与非连接式访问数据库
若依框架从零开始
Jenkins搭建与使用
China creates vast research infrastructure to support ambitious climate goals
Oracle改成mysql
New type of dark energy could solve Universe expansion mystery
swiper组件封装
Leetcode刷题之实现strStr()
若依如何input改成文本
Promise(四)
NodeJS 模块之间的使用
几款笔记软件的优缺点
tp5 报错variable type error: array解决方法
1-5 NodeJS CommonJs规范
.NET跨平台原理(上篇)
批量修改/批量更新数据库某一个字段的值
.Net Core 下使用 Quartz —— 【1】快速开始
Database programming of node
leetcode刷题之二进制求和
ECMAScript历史