![]() |
fastcgi incomplete headers issues - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: fastcgi incomplete headers issues (/thread-1741.html) |
fastcgi incomplete headers issues - robmorin - 11-09-2007 12:28 AM I know this has been on here before, but its seems to be a difficult issue to pin down.... I am moving users/websites from vhcs2 over to Omega on a different server, and so far 50% of the sites break due to fastcgi errors problems permissions, whatever.... Is there a way to debug fastcgi to give more info when something does not work.... i always get the same errors, but never know what it might be, sometimes perms , sometimes its something else but the error stays the same..... [Thu Nov 08 08:35:21 2007] [error] [client xxx.xxx.xxx.146] FastCGI: incomplete headers (0 bytes) received from server "/var/www/fcgi/domain.com/php4-fcgi-starter", referer: http://www.domain.com/index_m.htm Its driving me nuts.... I have to migrate over 150 websites, so far i have done 8 and 5 of them had issues.... Can someone please let me know if i can do something to increase debugging for errors like these, or explain to me what that error indicates exactly... here are perms for this site.... /var/www/virtual/domain.com/ drwxrwx--- 10 vu2057 www-data 4096 2007-02-21 09:29 . drwxr-xr-x 121 vu2000 www-data 4096 2007-11-03 07:35 .. drwxr-x--- 2 vu2057 www-data 4096 2006-10-20 09:02 backups drwxr-x--x 2 vu2057 vu2057 4096 2006-10-20 09:02 cgi-bin drwxr-xr-x 3 vu2057 www-data 4096 2007-02-21 09:30 chat drwxr-xr-x 7 vu2057 vu2057 4096 2006-10-20 09:02 errors drwxrwxrwx 8 vu2057 www-data 4096 2007-01-15 19:09 g2data drwxr-xr-x 6 vu2057 vu2057 4096 2007-02-21 09:35 htdocs -rw-rw---- 1 vu2057 www-data 1 2006-10-20 09:02 .htgroup -rw-rw---- 1 vu2057 www-data 1 2006-10-20 09:02 .htpasswd drwxr-xr-x 2 vu2057 www-data 4096 2006-10-20 09:02 logs drwxr-xr-x 18 vu2057 www-data 4096 2007-11-02 13:46 phptmp /var/www/fcgi/domain.com drwxr-xr-x 4 vu2057 vu2057 4096 2007-10-23 14:38 . drwxr-xr-x 122 root root 4096 2007-10-30 09:57 .. drwxr-x--- 2 vu2057 vu2057 4096 2007-10-23 14:38 php4 -rwxr-x--- 1 vu2057 vu2057 203 2007-11-02 16:20 php4-fcgi-starter drwxr-x--- 2 vu2057 vu2057 4096 2007-10-23 14:38 php5 -rwxr-x--- 1 vu2057 vu2057 203 2007-10-23 14:38 php5-fcgi-starter Any help appreciated everybody have a great day! Rob.. RE: fastcgi incomplete headers issues - achioo - 11-09-2007 12:36 AM I don't think that the incomplete headers issue is related to permissions. I am also getting the incomplete headers error though. RE: fastcgi incomplete headers issues - ephigenie - 11-09-2007 12:55 AM pls have a look in your /var/log/apache2/suexec.log. suexec is very picky about permissions - and those fastcgi problems are mostly because of wrong permissions of starter dirs & files. One Problem is see is that the starter needs to be readable by www-data to start it. x alone is not enough AFAIK. RE: fastcgi incomplete headers issues - robmorin - 11-09-2007 01:13 AM All i see is this is this in the log [2007-11-08 09:47:58]: uid: (vu2057/vu2057) gid: (2057/2057) cmd: php4-fcgi-starter [2007-11-08 09:50:57]: uid: (vu2057/vu2057) gid: (2057/2057) cmd: php4-fcgi-starter [2007-11-08 09:51:07]: uid: (vu2057/vu2057) gid: (2057/2057) cmd: php4-fcgi-starter ?? anything else? ![]() ephigenie Wrote:pls have a look in your /var/log/apache2/suexec.log. RE: fastcgi incomplete headers issues - ephigenie - 11-09-2007 01:20 AM what happens if you try to exec a php script via sudo -u vu2057 php4-cgi -f /path/to/your/php/index/or/whatever.php RE: fastcgi incomplete headers issues - robmorin - 11-09-2007 01:52 AM BTW i just had a client call up, and he has the same issue where he sees error 500 via his web browser and in the error logs i see the same incomplete headers, however it seems to work sometimes and sometimes not, a refresh will sometimes make it work.... the only thing i see in common with these websites is that they use mysql... one client mentioned that he might think it is a mysql connection problem??? this is just speculation at this point... OK i ran the sudo command and i see the php file run by... i get no errors or anything.... thats good i hope.. ![]() i ran ... sudo -u vu2055 php4-cgi -f EBLASTS/new_staff_mc/eblast.php and saw html output from the file... however via the web same thing error 500 Thanks for your help.... anything else i should do? Rob... ephigenie Wrote:what happens if you try to exec a php script via RE: fastcgi incomplete headers issues - robmorin - 11-09-2007 01:58 AM WAIT.. i do actually see this in the output of that fiel i missed it before... not sure if its cause for alarm.... <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent in <b>/var/www/virtual/domain.com/htdocs/EBLASTS/new_staff_mc/config.php</b> on line <b>2</b><br /> <br /> <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/domain.com/htdocs/EBLASTS/new_staff_mc/config.php:2) in <b>/var/www/virtual/domain.com/htdocs/EBLASTS/new_staff_mc/config.php</b> on line <b>2</b><br /> robmorin Wrote:BTW i just had a client call up, and he has the same issue where he sees error 500 via his web browser and in the error logs i see the same incomplete headers, however it seems to work sometimes and sometimes not, a refresh will sometimes make it work.... the only thing i see in common with these websites is that they use mysql... one client mentioned that he might think it is a mysql connection problem??? this is just speculation at this point... RE: fastcgi incomplete headers issues - robmorin - 11-09-2007 03:52 AM Oddly enough after tweaking mysql like this... some of the errors went away.... however i still have one website that gets this in his gallery2 application... but it only happens once out of 6 or 7 times.. Could it be an eAccelerator thing? i do not think so.... ? Error in apache log file, nothing interesting in suexce.log file [Thu Nov 08 12:46:09 2007] [error] [client 64.86.63.146] FastCGI: incomplete headers (0 bytes) received from server "/var/www/fcgi/domain.com/php4-fcgi-starter", referer: http://www.domain.com/MD/modules/gallery2/main.php?g2_itemId=320 Added the 2 below options... read_buffer_size = 2M join_buffer_size = 2M Doubled the 2 below options query_cache_limit = 2M query_cache_size = 32M doubled this table_cache = 4200 doubled this max_connections = 200 Any ideas..... robmorin Wrote:WAIT.. RE: fastcgi incomplete headers issues - ephigenie - 11-09-2007 04:17 AM if you've heavy traffic sites, it helps to increase the FCGI_CHILDREN in the php[4,5]-fcgi-starter from 2 to something like 4 - or even higher. In Addition there're quiet a lot options for mod_fastcgi pls use the search function in here - you'll find a lot about that topic ... RE: fastcgi incomplete headers issues - robmorin - 11-09-2007 04:22 AM ok i will look around thanks for the tip! Have a great day/evening! Rob.. ephigenie Wrote:if you've heavy traffic sites, it helps to increase the FCGI_CHILDREN in the php[4,5]-fcgi-starter from 2 to something like 4 - or even higher. |