Connecting Tech Pros Worldwide Help | Site Map

Apache serves blank page

  #1  
Old November 21st, 2008, 08:15 AM
Mani
Guest
 
Posts: n/a


Hi

I have created one sample php script to upload excel sheets of very
bigger sizes. Also the process happening with each records given in
the excel sheets is bit complex. To allow bigger sizes, I have added
necessary php ini values in the apache configuration file to override
the actual php ini values.

The problem is, once i upload the bigger files, it takes longer time
say 2 mins or so, after that i am seeing the blank page instead of
results page. When I tailed the apache logs, I didnt see any such
lines related to this issue.

Just wanted to know, Is there any case/possibilities when apache could
serves blank page?

But when I tailed my app level logs, it is very clear the script has
completes the job perfectly. My suspect, May be what could have happen
is, once the job completes, while apache about to serve back the
results page something would have happened..but am not sure about it.

Can anyone please help me on this issue?

thanks, Mani
  #2  
Old November 21st, 2008, 08:15 AM
Sven Reuter
Guest
 
Posts: n/a

re: Apache serves blank page


Mani wrote:
Quote:
I have created one sample php script to upload excel sheets of very
bigger sizes. Also the process happening with each records given in
the excel sheets is bit complex. To allow bigger sizes, I have added
necessary php ini values in the apache configuration file to override
the actual php ini values.
>
Did you also increased the time out for php scripts? Default is IMO 30
seconds.


Sven Reuter
--
http://www.sReuter.net/
http://www.Auskennbert.de/

For mail replace 'mm' with actual month, 'jj' with actual year (e.g.
'..._11_08').
  #3  
Old November 21st, 2008, 11:05 AM
Mani
Guest
 
Posts: n/a

re: Apache serves blank page


Quote:
Did you also increased the time out for php scripts? Default is IMO 30
seconds.
Did you mean max_execution_time? If answer is yes, the answer for your
question is yes :)
  #4  
Old November 21st, 2008, 12:05 PM
Jerry Stuckle
Guest
 
Posts: n/a

re: Apache serves blank page


Sven Reuter wrote:
Quote:
Mani wrote:
>
Quote:
>I have created one sample php script to upload excel sheets of very
>bigger sizes. Also the process happening with each records given in
>the excel sheets is bit complex. To allow bigger sizes, I have added
>necessary php ini values in the apache configuration file to override
>the actual php ini values.
>>
>
Did you also increased the time out for php scripts? Default is IMO 30
seconds.
>
>
Sven Reuter
It wouldn't help - that only applies to when the PHP script is executing
- which it isn't while the file is being uploaded.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
  #5  
Old November 21st, 2008, 12:05 PM
Jerry Stuckle
Guest
 
Posts: n/a

re: Apache serves blank page


Mani wrote:
Quote:
>
Hi
>
I have created one sample php script to upload excel sheets of very
bigger sizes. Also the process happening with each records given in
the excel sheets is bit complex. To allow bigger sizes, I have added
necessary php ini values in the apache configuration file to override
the actual php ini values.
>
The problem is, once i upload the bigger files, it takes longer time
say 2 mins or so, after that i am seeing the blank page instead of
results page. When I tailed the apache logs, I didnt see any such
lines related to this issue.
>
Just wanted to know, Is there any case/possibilities when apache could
serves blank page?
>
But when I tailed my app level logs, it is very clear the script has
completes the job perfectly. My suspect, May be what could have happen
is, once the job completes, while apache about to serve back the
results page something would have happened..but am not sure about it.
>
Can anyone please help me on this issue?
>
thanks, Mani
There could be many reasons for this - a bug in your PHP script, for
instance. But these may not be logged - it depends on your PHP settings.

What does your php.ini file have for the following parameters?

error_reporting
display_errors
log_errors
error_log


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
  #6  
Old November 21st, 2008, 09:05 PM
duane.lortie@gmail.com
Guest
 
Posts: n/a

re: Apache serves blank page


I'd bet Jerry is right, you are likely getting an error, but your php
settings are such that the error isn't logged, or displayed. I've ran
into this enviroment before and it just about drove me mad.

Adding this to the top of your script should allow you to at least see
the errors.


error_reporting(E_ALL);

Secondly, if it's not a max execution time error, then you might be
exceeding the max file upload size. Again, depending on your server's
PHP config, you may be able to override that value on a per script
level by adding something like this near the top of the script.

ini_set('upload_max_filesize' 8M);
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call to perl script in image tag does not execute parashar123 answers 27 January 28th, 2009 02:07 PM
Need help with Apache setup parashar123 answers 22 January 28th, 2009 02:05 PM
No CSS or PHP Includes showing on apache localhost site MaiyaHolliday answers 6 June 5th, 2007 09:36 PM