
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
💘 相关文章
- Nginx使用Memcached缓存加速wordpress,秒开网站
- nginx: [warn] "ssl_stapling" ignored, not supported告警
- Nginx – Unit nginx.service is masked的解决方法
- 购买了buyvm的Offloaded SQL数据库
- nginx打上QUIC补丁,抢先体验http3
- 使用301实现域名跳转到www包括https的3种方法
- nginx禁止执行php脚本
- Configure nginx to only allow cloudflare's IP to connect to the server shell script
- nginx: [emerg] Solution to unknown directive "set_real_ip_from"
- nginx安全设置之-限制IP来源只能为cloudflare