EduSoho安装讨论组 加入小组

654个成员 356个话题 创建时间:2014-09-24

系统出现空白页和505的解决方法!(如何查看系统日志)

发表于2015-03-29 3538次查看

出现空白页或者500,的原因真的实在太多了!即使是世界上最牛逼的工程师也无法不看日志就解决问题的.

所以,各位用户如果遇到以上问题,请各位,先去看错误日志.

还不知道怎么看错误日志吗?

如果按照气球鱼的教程的安装,请找到服务器的配置文件,如:

Apache服务器:配置文件一般在/etc/apache2/sites-enabled/edusoho,

找到

ErrorLog /var/log/apache2/project_error.log

/var/log/apache2/project_error.log 就是你的错误日志了

同理nginx:配置文件/etc/nginx/sites-enabled/edusoho

找到

error_log /var/log/nginx/example.com.error.log;

 

然后tail /var/log/nginx/example.com.error.log -f

然后,再次访问错误的页面,就能看到出了什么错误了.

如果说,你能根据错误,自己修复,那就太好了.

如果实在无法解决,请在这里贴出你们的错误,

官方人员,会尽快回复你们解决方法的.

还有,这些常见的错误,官方势必会整理好,以供后来的用户作查找.

4回复
  • 2楼 feirenraoyuan 2015-11-05

    问题描述:登陆“后台管理”出现500 错误。

    错误日志:[Tue Nov 03 22:54:07 2015] [error] [client 221.219.105.244] PHP Notice:  Undefined index: about in /data/edu.tui18.com/api/src/Topxia/Api/Util/MobileSchoolUtil.php on line 18, referer: http://edu.tui18.com/admin/article/create
    [Tue Nov 03 22:54:07 2015] [error] [client 221.219.105.244] PHP Notice:  Undefined index: logo in /data/edu.tui18.com/api/src/Topxia/Api/Util/MobileSchoolUtil.php on line 19, referer: http://edu.tui18.com/admin/article/create
    [Wed Nov 04 22:37:53 2015] [error] [client 221.222.215.228] PHP Warning:  POST Content-Length of 63997068 bytes exceeds the limit of 52428800 bytes in Unknown on line 0, referer: http://edu.tui18.com/course/31/manage/lesson

  • 3楼 暮山 2015-12-27

    CentOS 7 Apache 2.4.9 EduSoho 慕课版上传头像报错500,日志如下:

    [Sun Dec 27 17:19:14.152566 2015] [proxy_fcgi:error] [pid 16640:tid 140217319089920] [client 180.97.106.36:52046] AH01071: Got error 'Primary script unknown\n'
    [Sun Dec 27 17:19:17.064427 2015] [proxy_fcgi:error] [pid 16640:tid 140217361053440] [client 180.97.106.162:44593] AH01071: Got error 'Primary script unknown\n'
    [Sun Dec 27 17:19:22.450611 2015] [proxy_fcgi:error] [pid 16640:tid 140217579157248] [client 180.97.106.37:57845] AH01071: Got error 'Primary script unknown\n'
    [Sun Dec 27 17:19:26.476846 2015] [proxy_fcgi:error] [pid 16640:tid 140217394624256] [client 180.97.106.162:44612] AH01071: Got error 'Primary script unknown\n'
    [Sun Dec 27 17:19:28.619272 2015] [proxy_fcgi:error] [pid 16640:tid 140217562371840] [client 180.97.106.36:52076] AH01071: Got error 'Primary script unknown\n'
    [Sun Dec 27 17:19:28.888495 2015] [proxy_fcgi:error] [pid 16269:tid 140217436587776] [client 180.97.106.37:57858] AH01071: Got error 'Primary script unknown\n'
    [Sun Dec 27 17:19:59.689919 2015] [proxy_fcgi:error] [pid 16640:tid 140217436587776] [client 180.97.106.162:44667] AH01071: Got error 'Primary script unknown\n'
    [Sun Dec 27 17:20:31.024331 2015] [proxy_fcgi:error] [pid 16640:tid 140217394624256] [client 180.97.106.37:57973] AH01071: Got error 'Primary script unknown\n'
    [Sun Dec 27 17:20:41.624053 2015] [proxy_fcgi:error] [pid 16054:tid 140217411409664] [client 180.97.106.162:44750] AH01071: Got error 'Primary script unknown\n'
    [Sun Dec 27 17:21:19.418379 2015] [proxy_fcgi:error] [pid 16640:tid 140217419802368] [client 180.97.106.162:44834] AH01071: Got error 'Primary script unknown\n'

  • 4楼 一滴水 06-15

    2016/06/15 18:23:35 [error] 4827#0: *558 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error:  Argument 1 passed to Topxia\Common\ArrayToolkit::column() must be of the type array, null given, called in /var/www/edusoho/src/Topxia/AdminBundle/Controller/DefaultController.php on line 192 and defined in /var/www/edusoho/src/Topxia/Common/ArrayToolkit.php on line 6" while reading response header from upstream, client: 10.1.52.60, server: www.example.com, request: "POST /admin/system/status HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "10.1.131.50", referrer: "http://10.1.131.50/admin/"
    2016/06/15 18:33:18 [error] 4827#0: *570 FastCGI sent in stderr: "PHP message: PHP Catchable fatal error:  Argument 1 passed to Topxia\Common\ArrayToolkit::column() must be of the type array, null given, called in /var/www/edusoho/src/Topxia/AdminBundle/Controller/DefaultController.php on line 192 and defined in /var/www/edusoho/src/Topxia/Common/ArrayToolkit.php on line 6" while reading response header from upstream, client: 10.1.52.60, server: www.example.com, request: "POST /admin/system/status HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "10.1.131.50", referrer: "http://10.1.131.50/admin/"

     

  • 5楼 111111111111111111 10-17

    [Mon Oct 17 02:38:53.050346 2016] [:error] [pid 6133:tid 140648592185088] [client 42.48.104.25:23130] PHP Fatal error:  Uncaught exception 'Doctrine\\Common\\Annotations\\AnnotationException' with message 'You have to enable opcache.save_comments=1 or zend_optimizerplus.save_comments=1.' in /data/wwwroot/edu.zxpco.com/vendor2/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php:183\nStack trace:\n#0 /data/wwwroot/edu.zxpco.com/vendor2/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php(162): Doctrine\\Common\\Annotations\\AnnotationException::optimizerPlusSaveComments()\n#1 /data/wwwroot/edu.zxpco.com/app/cache/prod/appProdProjectContainer.php(273): Doctrine\\Common\\Annotations\\AnnotationReader->__construct()\n#2 /data/wwwroot/edu.zxpco.com/app/bootstrap.php.cache(2038): appProdProjectContainer->getAnnotationReaderService()\n#3 /data/wwwroot/edu.zxpco.com/app/cache/prod/appProdProjectContainer.php(860): Symfony\\Component\\DependencyInjection\\Container->get('annotation_read...')\n#4 /data/wwwroot/edu.zxpco.com/app/bootstrap.php.cache(2038): appProdProjectContainer->getRouting_LoaderService()\n#5 / in /data/wwwroot/edu.zxpco.com/vendor2/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php on line 183

发表回复
你还没有登录,请先登录注册