当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
柯里化实现函数连续调用计算累加和
Add serial number to El table
ECMAScript历史
JS实现模态框拖拽
DNA reveals surprise ancestry of mysterious Chinese mummies
七牛上传图片(前台JS+后台C#API获取token)
Color string conversion
Set and map
写一个正则
Aperçu de Redux
JS实现网页轮播图
leetcode刷题之整数加一
NodeJS 模块之间的使用
【关于数据库的简易认识】
1-2 JSX语法规则
mysql密码过期的方法
thinkphp5 ---- object(think\response\Json)转数组
页面缓存问题解决方法(慎用)
.Net Core3.1 使用 RazorEngine.NetCore 制作实体生成器 (MVC网页版)
若依如何input改成文本