Apache serves blank page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mani

    Apache serves blank page



    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
  • Sven Reuter

    #2
    Re: Apache serves blank page

    Mani wrote:
    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
    --



    For mail replace 'mm' with actual month, 'jj' with actual year (e.g.
    '..._11_08').

    Comment

    • Mani

      #3
      Re: Apache serves blank page

      Did you also increased the time out for php scripts? Default is IMO 30
      seconds.
      Did you mean max_execution_t ime? If answer is yes, the answer for your
      question is yes :)

      Comment

      • Jerry Stuckle

        #4
        Re: Apache serves blank page

        Sven Reuter wrote:
        Mani wrote:
        >
        >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@attgl obal.net
        =============== ===

        Comment

        • Jerry Stuckle

          #5
          Re: Apache serves blank page

          Mani wrote:
          >
          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@attgl obal.net
          =============== ===

          Comment

          • duane.lortie@gmail.com

            #6
            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);

            Comment

            Working...