买了个OVH小配置服务器,搞个app运营一下

先安装基础依赖
apt-get install libxml2-dev libssl-dev libbz2-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libgmp-dev libgmp3-dev libmcrypt-dev libpspell-dev librecode-dev libcurl4-gnutls-dev libgmp-dev libgmp3-dev librecode-dev libpspell-dev libmcrypt-dev libreadline-dev libtidy-dev libxslt1-dev libzip-dev libcurl4-openssl-dev pkg-config libonig-dev libsqlite3-dev gcc libcurl4-openssl-dev make -y

页面配置php发现报错,翻查了一下资料,监控一下报错日志:
2022-12-31 14:53:18.921503 [NOTICE] [55056] [114.248.126.213:3595:HTTP2-23#_AdminVHost] [STDERR] PHP Fatal error: Undefined class constant 'MEMCACHE_VERSION8' in /usr/local/lsws/admin/html.open/lib/util/build_php/buildfunc.inc.php on line 692

感觉变量名怪怪的
vim /usr/local/lsws/admin/html.open/lib/util/build_php/buildfunc.inc.php

MEMCACHE_VERSION8 改为:MEMCACHE8_VERSION

继续编译