directadmin的安装折腾及更改directadmin为nginx记录
闲的蛋疼。手里又又个吃灰的服务器就折腾一下directadmin
安装directadmin也浪费了我两天时间。
虽然directadmin官方声明支持Debian系统
但在使用Debian系统时一直没有安装成功
最后换成centos 7安装就成功了
下面是一些把directadmin的apache更换成nginx步骤
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cd /usr/local/directadmin/custombuild
./build update
./build set php1_mode php-fpm
./build set webserver nginx
./build nginx
##########################################
cd /usr/local/directadmin/custombuild
./build set webserver nginx
./build set php1_mode php-fpm #很重要,否则回出现以下错误
############nginx webserver is only compatible with php-fpm PHP mode.
./build update
./build all d
./build rewrite_confs
###########################
安装完毕后卸载apache
./build remove apache
重启 directadmin
service directadmin restart
💘 相关文章
- Configure nginx to only allow cloudflare's IP to connect to the server shell script
- 一款可视化适合小白的cdn构建系统
- nginx反向代理配置演示,包括静态资源处理,百分百成功
- nginx 使用gzip和Brotli压缩对比测试
- 有特色的vps商家-Buyvm测试
- openwrt使用Nginx 替代uhttpd
- 不知道是不是错觉,感觉caddy 比nginx快
- 基于JAVA非常强大的Nginx配置文件生成面板
- nginx nginx "--with-ipv6" option is deprecated 问题
- openLitespeed的教程