宝塔问题记录

1、卸载PHP重新安装后,需要在网站下设置php版本,不然会提示404

2、修改日志文件格式,方便定位问题:

  修改nginx配置 logformat
  分别放到hhtp中 和 网站配置中
  log_format main '$remote_addr\t$remote_user\t[$time_local]\t"$request"\t$status\t$bytes_sent\t'
  '"$http_referer"\t"$http_user_agent"\t"$http_cookie"\t"$request_body"';
  access_log xxx/access.log main; #此处的路径需要替换实际网站的路径。

3、phpmyadmin工作不正常的时候,可以考虑将文件移动到网站路径下,临时使用。或者在面板下进行重新安装也可

猜你喜欢

转载自www.cnblogs.com/ynhi/p/10788825.html