V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
oldcheetah
V2EX  ›  WordPress

digitalocean 上建的 wordpress 站点时常不能访问

  •  
  •   oldcheetah · 2017-03-20 09:18:36 +08:00 · 2956 次点击
    这是一个创建于 2813 天前的主题,其中的信息可能已经有所发展或是发生改变。

    经常需要后台重启 web 服务或者直接重启服务器,多则五六天少则一两天就出一次问题,不知道最可能的原因是什么呢?

    16 条回复    2017-03-20 14:51:02 +08:00
    wevsty
        1
    wevsty  
       2017-03-20 09:26:05 +08:00
    不能访问时访问有什么提示?挂代理能不能访问?什么信息都没有,没办法回答。
    qcloud
        2
    qcloud  
       2017-03-20 09:26:18 +08:00 via iPhone
    感觉不是 DO 的问题吧老哥。。检查下 web 环境吧
    xiaoz
        3
    xiaoz  
       2017-03-20 09:45:16 +08:00 via iPhone
    看 web 日志吧
    oldcheetah
        4
    oldcheetah  
    OP
       2017-03-20 10:49:13 +08:00
    @wevsty 错误提示: 504 Gateway Time-out nginx/1.2.9

    如下那个是 web 日志啊?
    /var/log/cron-20170312
    /var/log/messages-20170226
    /var/log/anaconda.program.log
    /var/log/secure-20170319
    /var/log/yum.log-20170307
    wevsty
        5
    wevsty  
       2017-03-20 11:05:35 +08:00
    @oldcheetah
    检查一下有没有
    /var/log/nginx/error.log
    oldcheetah
        6
    oldcheetah  
    OP
       2017-03-20 11:20:38 +08:00
    @wevsty

    没有 nginx 这目录
    log 里如下
    anaconda.ifcfg.log 文件 root root -rw------- 2013-12-18 03:40 2k 编 删 下载
    anaconda.log 文件 root root -rw------- 2013-12-18 03:40 21k 编 删 下载
    anaconda.program.log 文件 root root -rw------- 2013-12-18 03:40 42k 编 删 下载
    anaconda.storage.log 文件 root root -rw------- 2013-12-18 03:40 121k 编 删 下载
    anaconda.syslog 文件 root root -rw------- 2013-12-18 03:40 43k 编 删 下载
    anaconda.xlog 文件 root root -rw------- 2013-12-18 03:40 32k 编 删 下载
    anaconda.yum.log 文件 root root -rw------- 2013-12-18 03:40 3k 编 删 下载
    audit 目录 root root drwxr-x--- 2017-03-18 13:19 4k 进 删
    boot.log 文件 root root -rw-r--r-- 2017-03-20 10:55 1k 编 删 下载
    cron-20170226 文件 root root -rw------- 2017-02-26 03:37 900k 编 删 下载
    cron-20170305 文件 root root -rw------- 2017-03-05 03:20 896k 编 删 下载
    cron-20170312 文件 root root -rw------- 2017-03-12 03:38 899k 编 删 下载
    cron-20170319 文件 root root -rw------- 2017-03-19 03:12 896k 编 删 下载
    cron 文件 root root -rw------- 2017-03-20 11:19 172k 编 删 下载
    dmesg.old 文件 root root -rw-r--r-- 2017-03-19 21:35 20k 编 删 下载
    dmesg 文件 root root -rw-r--r-- 2017-03-20 10:55 20k 编 删 下载
    flash_tcp 目录 root root drwxr-xr-x 2017-03-06 15:41 4k 进 删
    lastlog 文件 root root -rw-r--r-- 2017-03-06 15:53 286k 编 删 下载
    maillog-20170226 文件 root root -rw------- 2017-02-22 10:17 846b 编 删 下载
    maillog-20170305 文件 root root -rw------- 2017-03-04 22:03 5k 编 删 下载
    maillog-20170312 文件 root root -rw------- 2017-03-08 10:17 3k 编 删 下载
    maillog-20170319 文件 root root -rw------- 2017-03-15 10:19 1k 编 删 下载
    maillog 文件 root root -rw------- 2017-03-20 11:17 5k 编 删 下载
    mail 目录 root root drwxr-xr-x 2015-01-14 10:05 4k 进 删
    messages-20170226 文件 root root -rw------- 2017-02-26 02:08 313k 编 删 下载
    messages-20170305 文件 root root -rw------- 2017-03-04 04:06 277k 编 删 下载
    messages-20170312 文件 root root -rw------- 2017-03-11 21:24 249k 编 删 下载
    messages-20170319 文件 root root -rw------- 2017-03-19 02:25 302k 编 删 下载
    messages 文件 root root -rw------- 2017-03-20 10:55 76k 编 删 下载
    ntpstats 目录 ntp ntp drwxr-xr-x 2014-12-20 10:51 4k 进 删
    secure-20170226 文件 root root -rw------- 2017-02-20 15:11 472b 编 删 下载
    secure-20170305 文件 root root -rw------- 2017-03-04 22:03 4k 编 删 下载
    secure-20170312 文件 root root -rw------- 2017-03-06 15:54 2k 编 删 下载
    secure-20170319 文件 root root -rw------- 2017-03-18 13:20 1k 编 删 下载
    secure 文件 root root -rw------- 2017-03-20 11:17 4k 编 删 下载
    shadowsocks.log 文件 root root -rw-r--r-- 2017-03-20 10:55 89m 编 删 下载
    spooler 文件 root root -rw------- 2017-03-20 10:55 0b 编 删 下载
    wtmp 文件 root utmp -rw-rw-r-- 2017-03-20 10:55 219k 编 删 下载
    yum.log-20150114 文件 root root -rw------- 2015-01-14 10:05 7k 编 删 下载
    yum.log-20160101 文件 root root -rw------- 2015-01-27 12:56 118b 编 删 下载
    yum.log-20170307
    oldcheetah
        7
    oldcheetah  
    OP
       2017-03-20 11:23:13 +08:00
    @xiaoz 找不到 web 日志,非电工。
    teakki
        8
    teakki  
       2017-03-20 12:38:10 +08:00
    因为 wordpress 要用一些 google 的资源, 比如 google 字体
    wevsty
        9
    wevsty  
       2017-03-20 12:39:27 +08:00
    @oldcheetah 那就得你自己看 nginx.conf 看 log 是记录在哪里了。
    nginx.conf 里找到类似这样两行
    access_log /var/log/nginx_access.log;
    error_log /var/log/nginx_error.log;
    如果没有,自己加上这两行,然后等下次挂了贴 log
    oldcheetah
        10
    oldcheetah  
    OP
       2017-03-20 13:38:53 +08:00
    @wevsty
    其中一个站的
    [30-Apr-2014 10:52:08] PHP Parse error: syntax error, unexpected '}' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 853
    [30-Apr-2014 10:52:33] PHP Parse error: syntax error, unexpected '}' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 853
    [30-Apr-2014 11:42:43] PHP Parse error: syntax error, unexpected T_VARIABLE in /home/huiyibac/public_html/wp-includes/formatting.php on line 1002
    [30-Apr-2014 14:52:55] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php:847) in /home/huiyibac/public_html/wp-login.php on line 414
    [30-Apr-2014 14:52:55] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php:847) in /home/huiyibac/public_html/wp-login.php on line 426
    [30-Apr-2014 14:53:01] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php:847) in /home/huiyibac/public_html/wp-includes/pluggable.php on line 1121
    [30-Apr-2014 14:54:05] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php:847) in /home/huiyibac/public_html/wp-login.php on line 414
    [30-Apr-2014 14:54:05] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php:847) in /home/huiyibac/public_html/wp-login.php on line 426
    [30-Apr-2014 14:58:33] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php:847) in /home/huiyibac/public_html/wp-includes/pluggable.php on line 1121
    [30-Apr-2014 14:58:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php:847) in /home/huiyibac/public_html/wp-login.php on line 414
    [30-Apr-2014 14:58:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php:847) in /home/huiyibac/public_html/wp-login.php on line 426
    [30-Apr-2014 16:16:42] PHP Parse error: syntax error, unexpected '<' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 873
    [01-May-2014 01:06:16] PHP Parse error: syntax error, unexpected '<' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 873
    [01-May-2014 01:11:31] PHP Parse error: syntax error, unexpected '<' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 873
    [01-May-2014 01:11:33] PHP Parse error: syntax error, unexpected '<' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 873
    [01-May-2014 01:11:37] PHP Parse error: syntax error, unexpected '<' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 873
    [01-May-2014 01:11:40] PHP Parse error: syntax error, unexpected '<' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 873
    [01-May-2014 01:11:47] PHP Parse error: syntax error, unexpected '<' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 873
    [01-May-2014 01:19:19] PHP Parse error: syntax error, unexpected '<' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 873
    [01-May-2014 01:19:24] PHP Parse error: syntax error, unexpected '<' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 873
    [01-May-2014 01:21:56] PHP Parse error: syntax error, unexpected '<' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 873
    [01-May-2014 01:21:58] PHP Parse error: syntax error, unexpected '<' in /home/huiyibac/public_html/wp-content/themes/PhotoBroad-master/functions.php on line 873
    oldcheetah
        11
    oldcheetah  
    OP
       2017-03-20 13:39:01 +08:00
    [01-May-2014 02:18:28] PHP Parse error: syntax error, unexpected $end in /home/huiyibac/public_html/wp-content/plugins/ludou-custom-register/ludou-custom-register.php on line 147
    [12-May-2014 09:59:51] PHP Fatal error: Uncaught exception 'Duoshuo_Exception' with message 'connect() timed out!' in /home/huiyibac/public_html/wp-content/plugins/duoshuo/Client.php:93
    Stack trace:
    #0 /home/huiyibac/public_html/wp-content/plugins/duoshuo/Client.php(50): Duoshuo_Client->httpRequest('http://api.duos...', 'GET', Array)
    #1 /home/huiyibac/public_html/wp-content/plugins/duoshuo/Abstract.php(50): Duoshuo_Client->request('GET', 'log/list', Array)
    #2 /home/huiyibac/public_html/wp-includes/plugin.php(546): Duoshuo_Abstract->syncLog()
    #3 /home/huiyibac/public_html/wp-cron.php(100): do_action_ref_array(Array, Array)
    #4 {main}
    thrown in /home/huiyibac/public_html/wp-content/plugins/duoshuo/Client.php on line 93
    [21-May-2014 15:07:14] PHP Fatal error: Uncaught exception 'Duoshuo_Exception' with message '操作超时,请重试或联系多说管理员。 http://dev.duoshuo.com/' in /home/huiyibac/public_html/wp-content/plugins/duoshuo/Client.php:93
    Stack trace:
    #0 /home/huiyibac/public_html/wp-content/plugins/duoshuo/Client.php(50): Duoshuo_Client->httpRequest('http://api.duos...', 'GET', Array)
    #1 /home/huiyibac/public_html/wp-content/plugins/duoshuo/Abstract.php(50): Duoshuo_Client->request('GET', 'log/list', Array)
    #2 /home/huiyibac/public_html/wp-includes/plugin.php(546): Duoshuo_Abstract->syncLog()
    #3 /home/huiyibac/public_html/wp-cron.php(100): do_action_ref_array(Array, Array)
    #4 {main}
    thrown in /home/huiyibac/public_html/wp-content/plugins/duoshuo/Client.php on line 93
    [10-Jun-2014 05:23:29] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:23:41] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:23:43] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:23:45] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:23:47] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:23:51] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:23:54] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:23:57] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:00] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:06] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:09] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:12] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:15] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:18] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:22] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:26] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:30] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:33] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:36] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:39] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:42] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10-Jun-2014 05:24:45] PHP Warning: set_time_limit() has been disabled for security reasons in /home/huiyibac/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 2987
    [10
    oldcheetah
        12
    oldcheetah  
    OP
       2017-03-20 13:40:18 +08:00
    我觉得不是每个站有问题,还是服务器的事,我用 wdcp 后台登陆也是奇慢无比经常得刷新。
    Vicer
        13
    Vicer  
       2017-03-20 13:54:52 +08:00 via Android
    说句实话, DO 不稳,经常杀后台。
    你看一下是不是服务被干掉了?
    oldcheetah
        14
    oldcheetah  
    OP
       2017-03-20 14:00:06 +08:00
    @Vicer web 服务干掉了?不能吧。
    davidyin
        15
    davidyin  
       2017-03-20 14:01:17 +08:00 via Android
    2014 年的日志?
    oldcheetah
        16
    oldcheetah  
    OP
       2017-03-20 14:51:02 +08:00
    @davidyin 你不说真没看,算了,不懂这东西太费事了。谢谢楼上各位!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2619 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 07:07 · PVG 15:07 · LAX 23:07 · JFK 02:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.