Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd December 2010, 14:24
latheesan latheesan is offline
Junior Member
 
Join Date: Dec 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Need help regarding Apache2 With mod_fcgid And PHP5 On Debian Lenny

Hello,

I followed this tutorial http://www.howtoforge.com/how-to-set...n-debian-lenny to setup web server with php running FastCGI on my debian vps server.

After finishing the tutorial, it appears i can set it up correct as i can view the PHP Info just like mentioned on the tutorial.

You can see it here : http://ftpservice.intellibi.com/info.php

I hve been developing a script on my local server environment (Windows + XAMPP) and when I uploaded the finished script to my server, I am seeing a blank page, absolutely no error:

http://ftpservice.intellibi.com/api/index.php

I checked the apache2 error log and these are the last few entries on it:

Quote:
[Thu Dec 23 12:05:52 2010] [notice] caught SIGTERM, shutting down
[Thu Dec 23 12:05:53 2010] [notice] mod_fcgid: process /var/www/web1/web/api/index.php(3394) exit(shutting down), terminated by calling exit(), return code: 0
[Thu Dec 23 12:05:54 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Thu Dec 23 12:05:54 2010] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations
[Thu Dec 23 12:06:13 2010] [notice] caught SIGTERM, shutting down
[Thu Dec 23 12:06:15 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Thu Dec 23 12:06:15 2010] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations
[Thu Dec 23 12:06:21 2010] [notice] mod_fcgid: call /var/www/web1/web/api/index.php with wrapper /var/www/php-fcgi-scripts/web1/php-fcgi-starter
[Thu Dec 23 12:08:28 2010] [notice] mod_fcgid: call /var/www/web1/web/api/index.php with wrapper /var/www/php-fcgi-scripts/web1/php-fcgi-starter
[Thu Dec 23 12:09:08 2010] [warn] mod_fcgid: read data timeout in 40 seconds
[Thu Dec 23 12:09:08 2010] [error] [client 80.168.122.117] Premature end of script headers: index.php
[Thu Dec 23 12:09:10 2010] [notice] mod_fcgid: process 3652 going graceful shutdown, sending SIGTERM
[Thu Dec 23 12:09:16 2010] [notice] mod_fcgid: process /var/www/web1/web/api/index.php(3652) exit(communication error), terminated by calling exit(), return code: 0
[Thu Dec 23 12:16:29 2010] [notice] caught SIGTERM, shutting down
[Thu Dec 23 12:16:30 2010] [notice] mod_fcgid: process /var/www/web1/web/api/index.php(3640) exit(shutting down), terminated by calling exit(), return code: 0
[Thu Dec 23 12:16:31 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Thu Dec 23 12:16:31 2010] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations
[Thu Dec 23 12:16:39 2010] [notice] mod_fcgid: call /var/www/web1/web/api/index.php with wrapper /var/www/php-fcgi-scripts/web1/php-fcgi-starter
[Thu Dec 23 12:16:55 2010] [error] [client 80.168.122.117] File does not exist: /var/www/web1/web/favicon.ico
Any idea why I am getting a blank page? How can i diagnose the problem and fix it?

Thanks for any help you can provide me.

Regards, Latheesan.

Last edited by latheesan; 23rd December 2010 at 14:53.
Reply With Quote
Sponsored Links
  #2  
Old 23rd December 2010, 14:58
latheesan latheesan is offline
Junior Member
 
Join Date: Dec 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hi,

I think I asked for help too soon. Since phpinfo() was working, I should have known the setup was fine.

While waiting for a reply, I engaged in a tedious debugging session by putting a exit('Here : '. __LINE__); after every line of code on my index.php to see where the script was halting.

I noticed that, the script stops executing after i call mysql_connect() function, which suggests my server did not have php5-mysql installed.

So, I executed apt-get install php5-mysql and /etc/init.d/apache2 restart as root and visited the script again and everything was fine.

Although one thing still a mystery, why did php not raise any error regarding missing library php5-mysql, and instead it just displayed a empty page?

I had error_reporting set to E_ALL | E_STRICT =/
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.