{"id":3786,"date":"2013-02-27T01:16:59","date_gmt":"2013-02-26T17:16:59","guid":{"rendered":"https:\/\/www.icocean.com\/wp\/?p=3786"},"modified":"2013-02-27T01:16:59","modified_gmt":"2013-02-26T17:16:59","slug":"%e4%bb%8a%e6%99%9aapache%e5%ae%95%e4%ba%86%e4%b8%80%e4%b8%8b","status":"publish","type":"post","link":"https:\/\/www.icocean.com\/blog\/?p=3786","title":{"rendered":"\u4eca\u665aapache\u5b95\u4e86\u4e00\u4e0b"},"content":{"rendered":"<p>OpenVZ\u7684VPS\uff0c\u88c5\u7684ubunt 12.04,apache+fcgid+php\uff0c\u5185\u5b58\u8017\u5c3d\uff0cphp5-cgi\u8fdb\u7a0b\u9646\u7eed\u6b7b\u6389\u3002<br \/>\napache error log \u5982\u4e0b\uff1a<br \/>\n<code><br \/>\n[Tue Feb 26 23:03:04 2013] [error] [client 218.2.173.196] File does not exist: \/<br \/>\nvar\/www\/default\/cert<br \/>\n[Tue Feb 26 23:28:59 2013] [error] mod_fcgid: process \/usr\/bin\/php5-cgi(26476) e<br \/>\nxit(communication error), get unexpected signal 11<\/p>\n<p>Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unkno<br \/>\nwn on line 0<br \/>\n[Tue Feb 26 23:29:11 2013] [error] (12)Cannot allocate memory: mod_fcgid: can't<br \/>\nrun \/usr\/bin\/php5-cgi<!--more--><\/p>\n<p>Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unkno<br \/>\nwn on line 0<br \/>\n[Tue Feb 26 23:29:11 2013] [error] (12)Cannot allocate memory: mod_fcgid: can't<br \/>\nrun \/usr\/bin\/php5-cgi<\/p>\n<p>Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unkno<br \/>\nwn on line 0<br \/>\n[Tue Feb 26 23:29:12 2013] [error] (12)Cannot allocate memory: mod_fcgid: can't<br \/>\nrun \/usr\/bin\/php5-cgi<\/p>\n<p>Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unkno<br \/>\nwn on line 0<br \/>\nPHP Warning:  PHP Startup: Unable to load dynamic library '\/usr\/lib\/php5\/2009062<br \/>\n6+lfs\/gd.so' - libgd.so.2: failed to map segment from shared object: Cannot allo<br \/>\ncate memory in Unknown on line 0<br \/>\n[Tue Feb 26 23:29:13 2013] [error] (12)Cannot allocate memory: mod_fcgid: can't<br \/>\nrun \/usr\/bin\/php5-cgi<br \/>\n[Tue Feb 26 23:29:13 2013] [error] (12)Cannot allocate memory: mod_fcgid: can't<br \/>\nrun \/usr\/bin\/php5-cgi<br \/>\n[Tue Feb 26 23:29:14 2013] [error] (12)Cannot allocate memory: mod_fcgid: can't<br \/>\nrun \/usr\/bin\/php5-cgi<\/code><br \/>\n<code><br \/>\n[Tue Feb 26 23:29:15 2013] [error] (12)Cannot allocate memory: mod_fcgid: can't<br \/>\nrun \/usr\/bin\/php5-cgi<br \/>\n[Tue Feb 26 23:29:15 2013] [error] mod_fcgid: process \/usr\/bin\/php5-cgi(26505) e<br \/>\nxit(communication error), get unexpected signal 11<\/p>\n<p>Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unkno<br \/>\nwn on line 0<br \/>\n[Tue Feb 26 23:30:00 2013] [error] (12)Cannot allocate memory: mod_fcgid: can't<br \/>\nrun \/usr\/bin\/php5-cgi<\/p>\n<p>Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unkno<br \/>\nwn on line 0<\/code><br \/>\n<code><br \/>\n[Tue Feb 26 23:30:05 2013] [error] mod_fcgid: process \/usr\/bin\/php5-cgi(26538) e<br \/>\nxit(communication error), get unexpected signal 11<br \/>\n[Tue Feb 26 23:30:05 2013] [error] (12)Cannot allocate memory: mod_fcgid: can't<br \/>\nrun \/usr\/bin\/php5-cgi<\/p>\n<p>Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unkno<br \/>\nwn on line 0<\/p>\n<p>Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unkno<br \/>\nwn on line 0<br \/>\nlibgcc_s.so.1 must be installed for pthread_cancel to work<\/p>\n<p>Fatal error: Out of memory (allocated 0) (tried to allocate 8192 bytes) in Unkno<br \/>\nwn on line 0<br \/>\nOut of memory<\/code><br \/>\n<code><br \/>\n[Tue Feb 26 23:30:21 2013] [notice] child pid 1425 exit signal Segmentation faul<br \/>\nt (11)<br \/>\n[Tue Feb 26 23:30:37 2013] [alert] (11)Resource temporarily unavailable: apr_thr<br \/>\nead_create: unable to create worker thread<br \/>\n[Tue Feb 26 23:30:39 2013] [alert] (11)Resource temporarily unavailable: apr_thr<br \/>\nead_create: unable to create worker thread<br \/>\n[Tue Feb 26 23:30:41 2013] [alert] (11)Resource temporarily unavailable: apr_thr<br \/>\nead_create: unable to create worker thread<\/code><br \/>\n<code><br \/>\n[Tue Feb 26 23:33:00 2013] [emerg] (22)Invalid argument: ap_queue_info_set_idle<br \/>\nfailed. Attempting to shutdown process gracefully.<br \/>\n[Tue Feb 26 23:33:00 2013] [crit] (22)Invalid argument: ap_queue_pop failed<br \/>\n[Tue Feb 26 23:33:00 2013] [crit] (22)Invalid argument: ap_queue_pop failed<br \/>\n[Tue Feb 26 23:33:00 2013] [crit] (22)Invalid argument: ap_queue_pop failed<br \/>\n[Tue Feb 26 23:33:00 2013] [crit] (22)Invalid argument: ap_queue_pop failed<br \/>\n[Tue Feb 26 23:33:00 2013] [crit] (22)Invalid argument: ap_queue_pop failed<br \/>\n[Tue Feb 26 23:33:00 2013] [crit] (22)Invalid argument: ap_queue_pop failed<br \/>\n[Tue Feb 26 23:33:00 2013] [crit] (22)Invalid argument: ap_queue_pop failed<br \/>\n[Tue Feb 26 23:33:00 2013] [crit] (22)Invalid argument: ap_queue_pop failed<br \/>\n[Tue Feb 26 23:33:00 2013] [crit] (22)Invalid argument: ap_queue_pop failed<br \/>\n[Tue Feb 26 23:33:00 2013] [crit] (22)Invalid argument: ap_queue_pop failed<br \/>\n[Tue Feb 26 23:33:00 2013] [crit] (22)Invalid argument: ap_queue_pop failed<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenVZ\u7684VPS\uff0c\u88c5\u7684ubunt 12.04,apache+fcgid+php\uff0c\u5185\u5b58\u8017\u5c3d\uff0cphp5-cgi <a href='https:\/\/www.icocean.com\/blog\/?p=3786' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-3786","post","type-post","status-publish","format-standard","hentry","category-lamp","category-24-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3786"}],"version-history":[{"count":0,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3786\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}