首页
关于
归档
Search
1
centos7 nginx编译安装lua模块
1,629 阅读
2
免费DV数字证书申请及ssl配置
1,479 阅读
3
开坑,mini php框架欢迎来填坑
1,274 阅读
4
vim molokai 配色方案
1,228 阅读
5
Deny Hosts 对ssh服务进行黑白名单过滤
1,123 阅读
rocky linux
技术分享
登录
Search
标签搜索
linux
nginx
php
ssl
lua
letsencrypt
denyhost
ssh
epoll
io
vim
molokai
光子社区
累计撰写
9
篇文章
累计收到
1
条评论
首页
栏目
rocky linux
技术分享
页面
关于
归档
搜索到
3
篇与
的结果
2025-08-16
rocky linux编译安装php 8
编译php之前需要先安装依赖库安装EPEL仓库dnf install -y epel-release dnf clean all dnf makecache dnf install -y wget libxml2-devel sqlite-devel bzip2-devel libcurl-devel libffi-devel libpng-devel libwebp-devel libjpeg-devel oniguruma libzip dnf install -y gcc make autoconf automake libtool bison gcc libicu-devel openssl-devel dnf install -y gcc gcc-c++ make autoconf automake libtool bison re2c openssl-devel libxml2-devel libpng-devel libjpeg-devel libicu-devel curl-devel sqlite-devel libuuid-devel systemd-devel libxslt-devel readline-devel dnf groupinstall "Development Tools" -y安装oniguruma-devel和libzip-develwget https://dl.rockylinux.org/pub/rocky/9/devel/x86_64/os/Packages/o/oniguruma-devel-6.9.6-1.el9.6.x86_64.rpm dnf -y install oniguruma-devel-6.9.6-1.el9.6.x86_64.rpm wget https://dl.rockylinux.org/pub/rocky/9/devel/x86_64/os/Packages/l/libzip-devel-1.7.3-8.el9.x86_64.rpm dnf -y install libzip-devel-1.7.3-8.el9.x86_64.rpm下载php 8源码wget https://www.php.net/distributions/php-8.3.22.tar.gz写编译脚本并编译chmod +x build.sh && sudo sh build.sh 编译脚本如下#!/bin/bash CURRDIR=`dirname "$0"` BASEDIR=`cd "$CURRDIR"; pwd` VERSION=8.3.22 cd $BASEDIR/php-$VERSION ./configure --prefix=/usr/local/php/php-8.3.22 \ --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-jpeg-dir \ --with-xmlrpc \ --with-xsl \ --with-zlib \ --with-bz2 \ --with-mhash \ --enable-fpm \ --enable-bcmath \ --enable-libxml \ --enable-gd \ --enable-mbregex \ --enable-mbstring \ --enable-opcache \ --enable-pcntl \ --enable-shmop \ --enable-soap \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-xml \ --enable-zip make && make install编译完成后需要到/usr/local/php/php-8.3.22目录下查看bin目录下的php版本,和sbin目录下的php-fpm的版本
2025年08月16日
18 阅读
0 评论
2 点赞
2022-06-15
centos7 php 7源码编译安装
下载php7源码 wget https://www.php.net/distributions/php-7.4.30.tar.gz tar -zxvf php-7.4.30.tar.gz由于php安装须要编译,因此服务器应该保证gcc和g++环境的安装安装php编译相关依赖 yum -y install gcc gcc-c++ libxml2 libxml2-devel openssl openssl-devel curl curl-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel pcre pcre-devel libxslt libxslt-devel bzip2 bzip2-devel sqlite-devel oniguruma oniguruma-devel创建php编译脚本设置编译参数 #!/bin/bash CURRDIR=`dirname "$0"` BASEDIR=`cd "$CURRDIR"; pwd` VERSION=7.4.30 cd $BASEDIR/php-$VERSION ./configure --prefix=/usr/local/php/php-7.4.30 \ --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-jpeg-dir \ --with-xmlrpc \ --with-xsl \ --with-zlib \ --with-bz2 \ --with-mhash \ --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-sysvshm \ --enable-xml \ --enable-zip make && make install编译安装php sudo sh build.sh配置php参数
2022年06月15日
4 阅读
0 评论
0 点赞
2021-04-19
开坑,mini php框架欢迎来填坑
mini php 框架 vega 欢迎来尝试
2021年04月19日
1,274 阅读
0 评论
1 点赞