mod_fcgid:无法为/ web / cgi-bin / php-fcgi应用进程槽

时间:2013-10-10 11:28:12

标签: php android mysql apache

我在基于php linux的服务器中收到以下错误,托管在godaddy wordpress主题

错误消息 “暂停服务   由于维护停机或容量问题,服务器暂时无法为您的请求提供服务。请稍后再试

Apache服务器,网址为wwww.checkmoviereview.com端口80“

问题只发生在某个系统中,对我而言,它不起作用,而且我的朋友和godaddy支持人们的工作。我的网站也没有太多的流量。

我最近为Android应用程序创建了一个php页面,我认为这是不关闭连接的罪魁祸首。有人可以帮助我在代码中做错了什么。一旦我开始使用新创建的代码,它将给出503错误,并在几个小时后它将再次开始工作“

代码

<?php
mysql_connect(<username & password I am giving here>);
mysql_select_db(<db name i am giving here>);
define('WP_USE_THEMES', false);
require_once('wp-blog-header.php'); 

$i =0;
$rate_query = null;

$rate_query =  new WP_Query( array ( 'post_type' => 'movies', 'orderby' => 'meta_value', 'meta_key' => 'wtf_rscore','posts_per_page'=>'20' ) );

while ($rate_query->have_posts() ) : $rate_query->the_post();
$rcat=get_post_meta($post->ID, 'wtf_category', true);
$rscore=get_post_meta($post->ID, 'wtf_rscore', true);
$rdirec=get_post_meta($post->ID, 'wtf_dirctr', true);
$rgenre=get_the_term_list( $post->get_the_ID, 'movie-genre', '', ', ', '' );    

if ($rcat == 'Bollywood') 
echo  get_image_url() . ",,," . get_the_title() . ",,," . $rscore . ",,," . get_the_content('Read the rest of this entry &raquo;') . ",,," . $rdirec . ",,,". $rgenre . ",,,"; //I am using this echo result in java program

$i = $i + 1;
endwhile; 

mysql_close();
$rate_query = null;
?>

来自服务器的错误日志信息

[Thu Oct 10 03:58:38 2013] [11814296] [fcgid:warn] [client 106.76.211.138:44799] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi
[Thu Oct 10 03:58:42 2013] [11814296] [fcgid:warn] [client 106.76.211.138:44567] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi
[Thu Oct 10 03:58:46 2013] [11814296] [fcgid:warn] [client 106.76.211.138:2152] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi
[Thu Oct 10 03:58:50 2013] [11814296] [fcgid:warn] [client 106.76.211.138:37856] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi
[Thu Oct 10 03:58:54 2013] [11814296] [fcgid:warn] [client 106.76.211.138:24984] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi
[Thu Oct 10 03:58:58 2013] [11814296] [fcgid:warn] [client 106.76.211.138:54537] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi
[Thu Oct 10 03:59:03 2013] [11814296] [fcgid:warn] [client 106.76.211.138:32542] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi
[Thu Oct 10 03:59:09 2013] [11814296] [fcgid:warn] [client 106.76.211.138:26424] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi
[Thu Oct 10 03:59:21 2013] [11814296] [fcgid:warn] [client 106.76.211.138:37370] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi
[Thu Oct 10 03:59:57 2013] [11814296] [fcgid:warn] [client 106.76.211.138:21834] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi
[Thu Oct 10 04:02:57 2013] [11814296] [fcgid:warn] [client 106.76.211.138:40323] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi
[Thu Oct 10 04:03:01 2013] [11814296] [fcgid:warn] [client 106.76.211.138:26866] mod_fcgid: can't apply process slot for /web/cgi-bin/php-fcgi

1 个答案:

答案 0 :(得分:1)

我面临同样的问题,发现更多的godaddy客户也面临同样的问题。 http://support.godaddy.com/groups/web-hosting/forum/topic/fcgid-internal-error/

看起来godaddy有一些变化触发了这个错误,说到支持,但解决方案是使用专用或虚拟主机方案。