1、首先安装httpd(源码安装,三个前置软件,这个虽然繁琐但是最好用)
推荐链接:Linux编译安装Apache_氷泠的博客-优快云博客_编译安装apache
2、安装php8.0
下载链接:PHP: Releases
安装命令,这时候都装上,省的到时候提示各种问题:
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs --with-curl --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysql --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pdo-sqlite --with-pear --with-png-dir --with-xmlrpc --with-xsl --with-zlib --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-gd-native-ttf --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-sockets --enable-sysvsem --enable-xml --enable-zip
提示缺什么就执行 : yum -y install xxx-devel
3、修改部署配置。
moodle正常上传到某个路径就OK。