Apache/PHP : internal server error

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

    #1

    Apache/PHP : internal server error

    Hello,

    Our configuration :

    Apache 2.0.53
    PHP 5.0.4
    PC Windows 2000
    MATLAB 6.1

    We work on a consulting project in France which involves MATLAB Web server,
    Database Toolbox. This application allows user to have a web interface to
    MATLAB functions which invokes database connection to Microsoft Access. This
    application, in order to run, needs a proper and safe installation of Apache
    and PHP. This MATLAB based application behaves as expected.

    The concept of this application is as follow :

    - from HTML pages, the user fills specific information and then applies them
    (click OK or another action)
    - Apache and PHP interprets/gets user's information filled in the HTML page
    - Apache and PHP then executes a connection to MATLAB via MATLAB webserver
    - MATLAB performs data processing, database conection, savesfigures, and
    then returns to Apache and PHP, an html form in a text format, and some
    images stored in a specific temporayr folder
    - Apache and PHP are supposed to get those informations in order to update
    the HTML page and publish this new one (PHP does this work by replacing some
    keyword, like $Name by a value returned by MATLAB, insert images produced by
    MATLAB in the HTML page)

    BUT, in one case, in one specific selection, we run into troubles with this
    application. PHP and Apache generate an error :

    see error web.txt, for an overview of the error generated by our internet
    explorer
    see error apache.txt, for an overview of the apache error log
    see page html.txt, for an overview of the last HTML page invoked before the
    issue pops up

    I also put in my public folder apache configuration's file (httpd.conf),
    php.ini file and upload.php3, PHP script used to create dynamically the new
    HTML page.

    Files are stored in \\home-toaster\public\ Patrick_Masson\ tmw

    I would need your help debugging this error and find ways to dig into this
    error. As of today, my attempts did fail and I am still faced to a lack of
    new ideas to get into it.

    All tips and tricks to debug or solve this issue would be highly
    appreciated.

    Thank you very mcuh for your help.

    Best regards,

    Patrick Masson

    PS: this issue is critical and I would need urgent help.


  • Erwin Moller

    #2
    Re: Apache/PHP : internal server error

    Patrick Masson wrote:
    [color=blue]
    > Hello,
    >
    > Our configuration :
    >
    > Apache 2.0.53
    > PHP 5.0.4
    > PC Windows 2000
    > MATLAB 6.1
    >
    > We work on a consulting project in France which involves MATLAB Web
    > server, Database Toolbox. This application allows user to have a web
    > interface to MATLAB functions which invokes database connection to
    > Microsoft Access. This application, in order to run, needs a proper and
    > safe installation of Apache and PHP. This MATLAB based application behaves
    > as expected.
    >
    > The concept of this application is as follow :
    >
    > - from HTML pages, the user fills specific information and then applies
    > them (click OK or another action)
    > - Apache and PHP interprets/gets user's information filled in the HTML
    > page - Apache and PHP then executes a connection to MATLAB via MATLAB
    > webserver - MATLAB performs data processing, database conection,
    > savesfigures, and then returns to Apache and PHP, an html form in a text
    > format, and some images stored in a specific temporayr folder
    > - Apache and PHP are supposed to get those informations in order to update
    > the HTML page and publish this new one (PHP does this work by replacing
    > some keyword, like $Name by a value returned by MATLAB, insert images
    > produced by MATLAB in the HTML page)
    >
    > BUT, in one case, in one specific selection, we run into troubles with
    > this application. PHP and Apache generate an error :
    >
    > see error web.txt, for an overview of the error generated by our internet
    > explorer
    > see error apache.txt, for an overview of the apache error log
    > see page html.txt, for an overview of the last HTML page invoked before
    > the issue pops up
    >
    > I also put in my public folder apache configuration's file (httpd.conf),
    > php.ini file and upload.php3, PHP script used to create dynamically the
    > new HTML page.
    >
    > Files are stored in \\home-toaster\public\ Patrick_Masson\ tmw
    >
    > I would need your help debugging this error and find ways to dig into this
    > error. As of today, my attempts did fail and I am still faced to a lack of
    > new ideas to get into it.
    >
    > All tips and tricks to debug or solve this issue would be highly
    > appreciated.
    >
    > Thank you very mcuh for your help.
    >
    > Best regards,
    >
    > Patrick Masson
    >
    > PS: this issue is critical and I would need urgent help.[/color]

    Hi Patrick,

    Why don't you show us the content of the errors?
    Where are they?
    We cannot browse your personal homedirectory from here...

    Regards,
    Erwin Moller

    Comment

    • Patrick Masson

      #3
      Re: Apache/PHP : internal server error

      Hi Erwin,

      The files are in:

      \\home-toaster\public\ Patrick_Masson\ tmw

      """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""

      Error web:

      Internal Server Error
      The server encountered an internal error or misconfiguratio n and was unable
      to complete your request.

      Please contact the server administrator, pmasson@mathwor ks.fr and inform
      them of the time the error occurred, and anything you might have done that
      may have caused the error.

      More information about this error may be available in the server error log.


      --------------------------------------------------------------------------------

      Apache/2.0.53 (Win32) PHP/5.0.4 Server at 192.168.90.84 Port 80

      """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """""""""""
      error Apache:

      [Wed Oct 12 11:31:05 2005] [notice] Parent: Received shutdown signal --
      Shutting down the server.
      [Wed Oct 12 11:31:06 2005] [notice] Child 1764: Exit event signaled. Child
      process is ending.
      [Wed Oct 12 11:31:07 2005] [notice] Child 1764: Released the start mutex
      [Wed Oct 12 11:31:10 2005] [notice] Child 1764: Waiting for 250 worker
      threads to exit.
      [Wed Oct 12 11:31:10 2005] [notice] Child 1764: All worker threads have
      exited.
      [Wed Oct 12 11:31:10 2005] [notice] Child 1764: Child process is exiting
      [Wed Oct 12 11:31:11 2005] [notice] Parent: Child process exited
      successfully.
      [Wed Oct 12 11:31:13 2005] [notice] Apache/2.0.53 (Win32) PHP/5.0.4
      configured -- resuming normal operations
      [Wed Oct 12 11:31:14 2005] [notice] Server built: Feb 10 2005 06:11:34
      [Wed Oct 12 11:31:14 2005] [notice] Parent: Created child process 1492
      [Wed Oct 12 11:31:14 2005] [notice] Child 1492: Child process is running
      [Wed Oct 12 11:31:14 2005] [notice] Child 1492: Acquired the start mutex.
      [Wed Oct 12 11:31:14 2005] [notice] Child 1492: Starting 250 worker threads.
      [Wed Oct 12 11:32:00 2005] [error] [client 192.168.90.84] malformed header
      from script. Bad header=trtrtrtr tr: matweb.exe, referer:


      """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """""""""""




      "Erwin Moller"
      <since_humans_r ead_this_I_am_s pammed_too_much @spamyourself.c om> a écrit dans
      le message de news: 434d0301$0$1107 4$e4fe514c@news .xs4all.nl...[color=blue]
      > Patrick Masson wrote:
      >[color=green]
      >> Hello,
      >>
      >> Our configuration :
      >>
      >> Apache 2.0.53
      >> PHP 5.0.4
      >> PC Windows 2000
      >> MATLAB 6.1
      >>
      >> We work on a consulting project in France which involves MATLAB Web
      >> server, Database Toolbox. This application allows user to have a web
      >> interface to MATLAB functions which invokes database connection to
      >> Microsoft Access. This application, in order to run, needs a proper and
      >> safe installation of Apache and PHP. This MATLAB based application
      >> behaves
      >> as expected.
      >>
      >> The concept of this application is as follow :
      >>
      >> - from HTML pages, the user fills specific information and then applies
      >> them (click OK or another action)
      >> - Apache and PHP interprets/gets user's information filled in the HTML
      >> page - Apache and PHP then executes a connection to MATLAB via MATLAB
      >> webserver - MATLAB performs data processing, database conection,
      >> savesfigures, and then returns to Apache and PHP, an html form in a text
      >> format, and some images stored in a specific temporayr folder
      >> - Apache and PHP are supposed to get those informations in order to
      >> update
      >> the HTML page and publish this new one (PHP does this work by replacing
      >> some keyword, like $Name by a value returned by MATLAB, insert images
      >> produced by MATLAB in the HTML page)
      >>
      >> BUT, in one case, in one specific selection, we run into troubles with
      >> this application. PHP and Apache generate an error :
      >>
      >> see error web.txt, for an overview of the error generated by our internet
      >> explorer
      >> see error apache.txt, for an overview of the apache error log
      >> see page html.txt, for an overview of the last HTML page invoked before
      >> the issue pops up
      >>
      >> I also put in my public folder apache configuration's file (httpd.conf),
      >> php.ini file and upload.php3, PHP script used to create dynamically the
      >> new HTML page.
      >>
      >> Files are stored in \\home-toaster\public\ Patrick_Masson\ tmw
      >>
      >> I would need your help debugging this error and find ways to dig into
      >> this
      >> error. As of today, my attempts did fail and I am still faced to a lack
      >> of
      >> new ideas to get into it.
      >>
      >> All tips and tricks to debug or solve this issue would be highly
      >> appreciated.
      >>
      >> Thank you very mcuh for your help.
      >>
      >> Best regards,
      >>
      >> Patrick Masson
      >>
      >> PS: this issue is critical and I would need urgent help.[/color]
      >
      > Hi Patrick,
      >
      > Why don't you show us the content of the errors?
      > Where are they?
      > We cannot browse your personal homedirectory from here...
      >
      > Regards,
      > Erwin Moller
      >[/color]


      Comment

      • Patrick Masson

        #4
        Re: Apache/PHP : internal server error

        Hi,

        I can send files to you if you give me your email address.

        Patrick

        "Patrick Masson" <pmasson@mathwo rks.fr> a écrit dans le message de news:
        dij0ne$g5o$1@fr ed.mathworks.co m...[color=blue]
        > Hi Erwin,
        >
        > The files are in:
        >
        > \\home-toaster\public\ Patrick_Masson\ tmw
        >
        > """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""
        >
        > Error web:
        >
        > Internal Server Error
        > The server encountered an internal error or misconfiguratio n and was
        > unable to complete your request.
        >
        > Please contact the server administrator, pmasson@mathwor ks.fr and inform
        > them of the time the error occurred, and anything you might have done that
        > may have caused the error.
        >
        > More information about this error may be available in the server error
        > log.
        >
        >
        > --------------------------------------------------------------------------------
        >
        > Apache/2.0.53 (Win32) PHP/5.0.4 Server at 192.168.90.84 Port 80
        >
        > """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """""""""""
        > error Apache:
        >
        > [Wed Oct 12 11:31:05 2005] [notice] Parent: Received shutdown signal --
        > Shutting down the server.
        > [Wed Oct 12 11:31:06 2005] [notice] Child 1764: Exit event signaled. Child
        > process is ending.
        > [Wed Oct 12 11:31:07 2005] [notice] Child 1764: Released the start mutex
        > [Wed Oct 12 11:31:10 2005] [notice] Child 1764: Waiting for 250 worker
        > threads to exit.
        > [Wed Oct 12 11:31:10 2005] [notice] Child 1764: All worker threads have
        > exited.
        > [Wed Oct 12 11:31:10 2005] [notice] Child 1764: Child process is exiting
        > [Wed Oct 12 11:31:11 2005] [notice] Parent: Child process exited
        > successfully.
        > [Wed Oct 12 11:31:13 2005] [notice] Apache/2.0.53 (Win32) PHP/5.0.4
        > configured -- resuming normal operations
        > [Wed Oct 12 11:31:14 2005] [notice] Server built: Feb 10 2005 06:11:34
        > [Wed Oct 12 11:31:14 2005] [notice] Parent: Created child process 1492
        > [Wed Oct 12 11:31:14 2005] [notice] Child 1492: Child process is running
        > [Wed Oct 12 11:31:14 2005] [notice] Child 1492: Acquired the start mutex.
        > [Wed Oct 12 11:31:14 2005] [notice] Child 1492: Starting 250 worker
        > threads.
        > [Wed Oct 12 11:32:00 2005] [error] [client 192.168.90.84] malformed header
        > from script. Bad header=trtrtrtr tr: matweb.exe, referer:
        > http://192.168.90.84/upload.php3
        >
        > """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """"""""""""""" """""""""""
        >
        >
        >
        >
        > "Erwin Moller"
        > <since_humans_r ead_this_I_am_s pammed_too_much @spamyourself.c om> a écrit
        > dans le message de news: 434d0301$0$1107 4$e4fe514c@news .xs4all.nl...[color=green]
        >> Patrick Masson wrote:
        >>[color=darkred]
        >>> Hello,
        >>>
        >>> Our configuration :
        >>>
        >>> Apache 2.0.53
        >>> PHP 5.0.4
        >>> PC Windows 2000
        >>> MATLAB 6.1
        >>>
        >>> We work on a consulting project in France which involves MATLAB Web
        >>> server, Database Toolbox. This application allows user to have a web
        >>> interface to MATLAB functions which invokes database connection to
        >>> Microsoft Access. This application, in order to run, needs a proper and
        >>> safe installation of Apache and PHP. This MATLAB based application
        >>> behaves
        >>> as expected.
        >>>
        >>> The concept of this application is as follow :
        >>>
        >>> - from HTML pages, the user fills specific information and then applies
        >>> them (click OK or another action)
        >>> - Apache and PHP interprets/gets user's information filled in the HTML
        >>> page - Apache and PHP then executes a connection to MATLAB via MATLAB
        >>> webserver - MATLAB performs data processing, database conection,
        >>> savesfigures, and then returns to Apache and PHP, an html form in a text
        >>> format, and some images stored in a specific temporayr folder
        >>> - Apache and PHP are supposed to get those informations in order to
        >>> update
        >>> the HTML page and publish this new one (PHP does this work by replacing
        >>> some keyword, like $Name by a value returned by MATLAB, insert images
        >>> produced by MATLAB in the HTML page)
        >>>
        >>> BUT, in one case, in one specific selection, we run into troubles with
        >>> this application. PHP and Apache generate an error :
        >>>
        >>> see error web.txt, for an overview of the error generated by our
        >>> internet
        >>> explorer
        >>> see error apache.txt, for an overview of the apache error log
        >>> see page html.txt, for an overview of the last HTML page invoked before
        >>> the issue pops up
        >>>
        >>> I also put in my public folder apache configuration's file (httpd.conf),
        >>> php.ini file and upload.php3, PHP script used to create dynamically the
        >>> new HTML page.
        >>>
        >>> Files are stored in \\home-toaster\public\ Patrick_Masson\ tmw
        >>>
        >>> I would need your help debugging this error and find ways to dig into
        >>> this
        >>> error. As of today, my attempts did fail and I am still faced to a lack
        >>> of
        >>> new ideas to get into it.
        >>>
        >>> All tips and tricks to debug or solve this issue would be highly
        >>> appreciated.
        >>>
        >>> Thank you very mcuh for your help.
        >>>
        >>> Best regards,
        >>>
        >>> Patrick Masson
        >>>
        >>> PS: this issue is critical and I would need urgent help.[/color]
        >>
        >> Hi Patrick,
        >>
        >> Why don't you show us the content of the errors?
        >> Where are they?
        >> We cannot browse your personal homedirectory from here...
        >>
        >> Regards,
        >> Erwin Moller
        >>[/color]
        >
        >[/color]


        Comment

        • Gordon Burditt

          #5
          Re: Apache/PHP : internal server error

          >Error web:[color=blue]
          >
          >Internal Server Error
          >The server encountered an internal error or misconfiguratio n and was unable
          >to complete your request.[/color]

          This error has several causes all of them related to a CGI or PHP
          program not generating correct headers (Content-type:, etc.)

          1. The program dumped core or aborted before generating any output.
          2. The program could not be executed due to incorrect permissions
          (either Apache or OS) or missing shared libraries.
          3. The program generated error messages *BEFORE* the Content-type
          header about things like missing include files or libraries,
          or debugging code is misplaced.
          4. The program forgot to output the Content-type header or the blank
          line separating the headers from the content.
          [color=blue]
          >[Wed Oct 12 11:32:00 2005] [error] [client 192.168.90.84] malformed header
          >from script. Bad header=trtrtrtr tr: matweb.exe, referer:
          >http://192.168.90.84/upload.php3[/color]

          This error message suggests that something is trying to output
          content without headers.


          Gordon L. Burditt

          Comment

          Working...