You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Qingjuan Gu <qi...@wistar.upenn.edu> on 2002/06/06 19:53:14 UTC

cannot get media type from 'application'

Hello everybody,

Now I can access html and .cgi file from web broswer. I installed apache_1.3.24 and php-4.0.6 on Tru64 unix. when I broswer .php file, 

****there are the error message from web broswer:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, qgu@athena.wistar.upenn.edu and inform them of the time the error occurred, and anything you might have done that may have caused the error.


****and eroor_log:
[Thu Jun  6 13:42:51 2002] [warn] mod_mime: analyze_ct: cannot get media type from 'application'
[Thu Jun  6 13:42:51 2002] [error] (8)Exec format error: exec of /db4/usr/local/www/php/hello.php failed
[Thu Jun  6 13:42:51 2002] [error] [client 130.91.8.66] Premature end of script headers: /db4/usr/local/www/php/hello.php

********
I have setup the httpd.conf to permit php:
LoadModule php4_module        libexec/libphp4.so
ScriptAlias /php-bin/ "/db4/usr/local/www/php/"
    <Directory "/db4/usr/local/www/php">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>
AddType application /x-httpd-php .php

********
But in My mime.types, there is no php-replated application, if needed, what application should I add?


thank you very much.

Grace

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: cannot get media type from 'application'

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 6 Jun 2002, Qingjuan Gu wrote:
> AddType application /x-httpd-php .php

There should not be space between "application" and "/x-httpd-php".  The
mime type is "application/x-httpd-php".

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org