20201109查看mediawiki的LOG來debug

出自金門農工維基III
於 2020年11月9日 (一) 05:40 由 Tree留言 | 貢獻 所做的修訂 →‎/var/log/httpd/access_log
跳至導覽 跳至搜尋

圖檔上傳失敗訊息

無法開啟 "mwstore://local-backend/local-public/e/e1/嘸蝦米字根表.gif" 的鎖定檔案。請確保您的上傳目錄配置正確,且您的網頁伺服器具有寫入該目錄的權限。參見https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgUploadDirectory 獲取更多信息。 

# ls /var/log -t
messages                   sssd                      spooler-20201108          messages-20201025         secure-20201018        maillog-20201018
secure                     spooler                   messages-20201101         dnf.librepo.log-20201025  boot.log               spooler-20201018
lastlog                    maillog                   btmp                      hawkey.log-20201025       boot.log-20201014      private
wtmp                       php-fpm                   dnf.librepo.log-20201101  secure-20201025           sangfor_watchdog.log   tallylog
dnf.log                    messages-20201108         hawkey.log-20201101       maillog-20201025          sangfor_vm_proxyd.log  README
dnf.librepo.log            httpd                     dnf.log.1                 spooler-20201025          sfping.log             samba
hawkey.log                 dnf.librepo.log-20201108  secure-20201101           mariadb                   firewalld              chrony
dnf.rpm.log                hawkey.log-20201108       btmp-20201101             messages-20201018         audit
sangfor_module_update.log  secure-20201108           maillog-20201101          dnf.librepo.log-20201018  journal
sangfor                    maillog-20201108          spooler-20201101          hawkey.log-20201018       anaconda

/var/log/httpd/access_log

[root@localhost kmvswiki2]# ls /var/log/httpd -t
access_log  error_log-20201108   error_log-20201101   error_log-20201025   error_log-20201018
error_log   access_log-20201108  access_log-20201101  access_log-20201025  access_log-20201018

[root@localhost kmvswiki2]# cat /var/log/httpd/access_log
:
163.25.20.252 - - [08/Nov/2020:20:57:46 -0500] "POST /kmvswiki2/api.php HTTP/1.1" 200 88 "http://lfwiki.kmvs.km.edu.tw/kmvswiki2/index.php?title=20201109%E6%9F%A5%E7%9C%8Bmediawiki%E7%9A%84LOG%E4%BE%86debug&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0"
163.25.20.252 - - [08/Nov/2020:20:57:46 -0500] "POST /kmvswiki2/index.php?title=20201109%E6%9F%A5%E7%9C%8Bmediawiki%E7%9A%84LOG%E4%BE%86debug&action=submit HTTP/1.1" 302 - "http://lfwiki.kmvs.km.edu.tw/kmvswiki2/index.php?title=20201109%E6%9F%A5%E7%9C%8Bmediawiki%E7%9A%84LOG%E4%BE%86debug&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0"
163.25.20.252 - - [08/Nov/2020:20:57:46 -0500] "GET /kmvswiki2/index.php?title=20201109%E6%9F%A5%E7%9C%8Bmediawiki%E7%9A%84LOG%E4%BE%86debug HTTP/1.1" 200 20304 "http://lfwiki.kmvs.km.edu.tw/kmvswiki2/index.php?title=20201109%E6%9F%A5%E7%9C%8Bmediawiki%E7%9A%84LOG%E4%BE%86debug&action=edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0"
221.225.114.106 - - [08/Nov/2020:20:57:52 -0500] "GET /phpmyAdmin/ HTTP/1.1" 404 196 "-" "-"
[root@localhost kmvswiki2]#

/var/log/httpd/error_log

https://www.liquidweb.com/kb/apache-error-no-matching-directoryindex-index-html-found-solved/

[root@localhost kmvswiki2]# cat /var/log/httpd/error_log
:
[Sun Nov 08 14:38:28.636569 2020] [proxy_fcgi:error] [pid 1829554:tid 1829724] [client 111.229.62.37:26739] AH01071: Got error 'Primary script unknown'
[Sun Nov 08 17:09:32.778223 2020] [autoindex:error] [pid 1829554:tid 1829713] [client 45.182.156.13:34135] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Nov 08 18:26:49.755082 2020] [autoindex:error] [pid 1829554:tid 1829718] [client 34.65.63.248:53082] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Nov 08 19:33:45.614360 2020] [autoindex:error] [pid 1874604:tid 1874645] [client 190.164.162.212:19453] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Sun Nov 08 19:51:29.875119 2020] [autoindex:error] [pid 1874604:tid 1874666] [client 101.251.242.238:36919] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message

;[http2:warn] [pid 1196989:tid 1196989] AH02951: mod_ssl does not seem to be enabled


# vi /etc/httpd/conf/httpd.conf

# cat /etc/httpd/conf/httpd.conf|grep index.php
    DirectoryIndex index.html index.php
:
ServerName lfwiki.kmvs.km.edu.tw:80


# systemctl restart httpd

# ps ax|grep httpd
1183559 ?        Ss     0:00 /usr/sbin/httpd -DFOREGROUND
1183561 ?        S      0:00 /usr/sbin/httpd -DFOREGROUND
1183562 ?        Sl     0:00 /usr/sbin/httpd -DFOREGROUND
1183563 ?        Sl     0:00 /usr/sbin/httpd -DFOREGROUND
1183564 ?        Sl     0:00 /usr/sbin/httpd -DFOREGROUND
1184331 pts/0    S+     0:00 grep --color=auto httpd