These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Apache stopped working on the new forum.
Apache stopped working
Failed to start apache : Starting httpd: Syntax error on line 1011 of /etc/httpd/conf/httpd.conf: can't get fastcgi file info: /home/heyandhra/fcgi-bin/php.fcgi(/home/heyandhra/fcgi-bin/php.fcgi), errno: 2 [FAILED]
Please Help me out, when ever i start apache, this error is showing up
Howdy.
It sounds like the file /home/heyandhra/fcgi-bin/php.fcgi was somehow removed or renamed... you may want to try changing the PHP Execution Mode for the account "heyandhra", and see if that helps.
It looks like it's set to FCGID now, you might try setting it to CGI.
-Eric
Thanks for ur time and reply bro, but now the error has changed somewhat
Failed to start apache : Starting httpd: Syntax error on line 1009 of /etc/httpd/conf/httpd.conf: can't get fastcgi file info: /home/heyandhra/fcgi-bin/php.fcgi(/home/heyandhra/fcgi-bin/php.fcgi), errno: 2 [FAILED]
can u do something from your side
Hmm, that looks like the same error, but a different line number.
No, I can't do anything on my side to fix that, the problem exists on your server... but we can toss out some ideas for you to try :-)
What have you tried so far? The error you're seeing makes it look like it's still trying to use the FCGID execution mode, did you try changing that to CGI? You can change that in Server Configuration -> Website Options.
-Eric
Yes sir, i tried all 3 options, but the result is same
Apache mod_php (run as Apache's user) CGI wrapper (run as virtual server owner) FCGId (run as virtual server owner)
Starting httpd: Syntax error on line 1009 of /etc/httpd/conf/httpd.conf: can't get fastcgi file info: /home/heyandhra/fcgi-bin/php.fcgi(/home/heyandhra/fcgi-bin/php.fcgi), errno: 2 [FAILED
is it possible to install back the missing/corrupted file ?
Well, in theory, if you set it back to use FCGID, it should reinstall that file.
After setting it to FCGID, what does this command output:
ls -l /home/heyandhra/fcgi-bin/php.fcgi
this is the output :(
What is the output of this command:
find /home/heyandhra -name ".cgi"
What about this:
At some point it will probably be easier to look around on your system directly, if you're willing to trust us with a login, than tossing suggestions and error messages back and forth. ;)
@Locutus thanks for u reply locutus
unfortunately i found another hard way to rectify as i was running out of options and time (site is already down)
i have formatted completely and installed virtualmin again
and now my error log is fill with [warn] mod_fcgid: stderr: errors.. waht to do ? :)
It might help if you posted the complete error message.
It also might help knowing some details about what system (distro, machine) you're running. Otherwise all we can do is guess - which is not helpful.
Thank U,
some part of error is
[Tue Jul 05 05:55:38 2011] [warn] mod_fcgid: stderr: PHP Notice: getimagesize() [function.getimagesize]: Read error! in /home/heyandhra/public_html/home/function.resize.php on line 92 [Tue Jul 05 05:55:38 2011] [warn] mod_fcgid: stderr: PHP Warning: fopen(index.html) [function.fopen]: failed to open stream: Permission denied in /home/heyandhra/public_html/home/index.php on line 870 [Tue Jul 05 05:55:38 2011] [warn] mod_fcgid: stderr: PHP Warning: fwrite(): supplied argument is not a valid stream resource in /home/heyandhra/public_html/home/index.php on line 872 [Tue Jul 05 05:55:38 2011] [warn] mod_fcgid: stderr: PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/heyandhra/public_html/home/index.php on line 874
And the second part of my question? What's your system (server/VPS)? Your distro? What software are you trying to run there that causes the PHP errors? Please, you do need to give us something here, don't let us guess your setup. You e.g. don't phone your car repair shop and tell them "my car doesn't start, why?" :P
Key error would be this:
[Tue Jul 05 05:55:38 2011] [warn] mod_fcgid: stderr: PHP Warning: fopen(index.html) [function.fopen]: failed to open stream: Permission denied in /home/heyandhra/public_html/home/index.php on line 870
Take a look at that file and see what it is trying to open in line 870.
Oh, also, please enclose listings and screen dumps in
[code]
[/code] tags, makes it much better readable.Here is the code i was trying run and ran excellently on shared hosting
// start the output buffer
ob_start();
$cachefile = "index.html";
// open the cache file "cache/home.html" for writing
$fp = fopen($cachefile, 'w');
// save the contents of output buffer to the file
fwrite($fp, ob_get_contents());
// close the file
fclose($fp);
// Send the output to the browser
ob_end_flush();
PS: index.html is existing and with 777
and on my server i am runnng Wordpress 3.1 (in wordpress sitemap generating and Akismet comment system are not working)
and the VPS version:
OPERATING SYSTEM: CentOS/RHEL 5 Description Operating system CentOS Linux 5.3 Webmin version 1.550 Virtualmin version 3.86.gpl GPL
PHP Version 5.2.17
PS: Overall Apache is taking longer than earlier to load any page!
sigh
Which of these lines is 870?
"taking longer than earlier"... What is "earlier" in this context? What did you change as opposed to "earlier"?
Sorry, too much guessing involved here.