部署 Emlog 本身不复杂,复杂的是那些“装完能打开,但上传失败/伪静态 404/后台样式丢失”的小问题。下面是我现在会逐项检查的清单。
PHP 扩展
- mysqli / pdo_mysql
- gd(缩略图和验证码)
- mbstring(中文截取)
- curl(远程请求与更新检查)
- zip(模板和插件安装)
目录权限
chown -R www:www /www/wwwroot/example.com
find /www/wwwroot/example.com -type d -exec chmod 755 {} \;
find /www/wwwroot/example.com -type f -exec chmod 644 {} \;
Nginx
确保 index index.php、PHP location 和 Emlog 的 rewrite 规则都正确。开启 HTTPS 后记得把站点地址也改成 https,否则后台生成的链接还是 http。
评论
贴吧
狗头
原神
小黄脸