我在基于 php linux 的服务器中收到以下错误,托管在 godaddy wordpress 主题中
错误消息 “服务不可用由于维护停机或容量问题,服务器暂时无法为您的请求提供服务。请稍后再试
Apache 服务器位于 www.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 »') . ",,," . $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