php - mod_fcgid : can't apply process slot for/web/cgi-bin/php-fcgi

标签 php android mysql apache

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

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

Apache 服务器位于 wwww.checkmoviereview.com 端口 80"

这个问题只发生在某些系统中,对于我来说它不起作用,对于我的 friend 和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

最佳答案

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

看起来 godaddy 的一些更改引发了此错误,已联系支持人员,但解决方案是使用专用或虚拟托管计划。

关于php - mod_fcgid : can't apply process slot for/web/cgi-bin/php-fcgi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19294558/

相关文章:

php - 插入 SQL 时保留 JSON 数据的顺序

MySQL 生成.sql Cannot add foreign key constraint

php - 从数据库 codeigniter 获取选项值

php - 管理员和普通用户登录系统PHP MYSQL

php - Codeigniter URL 路由 - SEO 问题

android - AndEngine 和 TimerHandlers : referencing a member variable in a scene

php - 如何限制递归? - 拉维尔/ Blade

android - ORMLite 不知道如何存储类

android - 为什么自定义适配器需要资源?

php - 在很多行中将值增加 1