Apache/PHP : internal server error

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Our configuration :

Apache 2.0.53
PHP 5.0.4
PC Windows 2000

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  
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  

Thank you very mcuh for your help.

Best regards,

Patrick Masson

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

Re: Apache/PHP : internal server error

Patrick Masson wrote:

Quoted text here. Click to load it

Hi Patrick,

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

Erwin Moller

Re: Apache/PHP : internal server error

Hi Erwin,

The files are in:



Error web:

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

Please contact the server administrator, pmasson@mathworks.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 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  
[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  
[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] malformed header  
from script. Bad header=trtrtrtrtr: matweb.exe, referer:


"Erwin Moller"  
Quoted text here. Click to load it

Re: Apache/PHP : internal server error


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


Quoted text here. Click to load it

Re: Apache/PHP : internal server error

Quoted text here. Click to load it

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.

Quoted text here. Click to load it

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

                        Gordon L. Burditt

Site Timeline