[solved] PHP not processing

webizen

Well-Known Member
#2
The content-type returned for both http://64.202.244.25/index.php and http://64.202.244.25/Wdc/phpinfo.php is application/octet-stream. That's why browser tries to download.
$ curl -I http://64.202.244.25/index.php
HTTP/1.1 200 OK
Date: Wed, 02 Feb 2011 23:52:15 GMT
Server: LiteSpeed
Accept-Ranges: bytes
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Vary: User-Agent
Cache-Control: max-age=2592000
Expires: Fri, 04 Mar 2011 23:52:15 GMT
ETag: "a11-4b602806-be8b24"
Last-Modified: Wed, 27 Jan 2010 11:48:22 GMT
Content-Type: application/octet-stream
Content-Length: 2577

$ curl -I http://64.202.244.25/Wdc/phpinfo.php
HTTP/1.1 200 OK
Date: Thu, 03 Feb 2011 00:22:01 GMT
Server: LiteSpeed
Accept-Ranges: bytes
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Vary: User-Agent
Cache-Control: max-age=2592000
Expires: Sat, 05 Mar 2011 00:22:01 GMT
ETag: "1e-4b743548-be8b05"
Last-Modified: Thu, 11 Feb 2010 16:50:16 GMT
Content-Type: application/octet-stream
Content-Length: 30
However, index.html returns 'text/html'
$ curl -I http://64.202.244.25/index.html
HTTP/1.1 200 OK
Date: Wed, 02 Feb 2011 23:53:46 GMT
Server: LiteSpeed
Accept-Ranges: bytes
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Vary: User-Agent
Cache-Control: max-age=2592000
Expires: Fri, 04 Mar 2011 23:53:46 GMT
ETag: "14-4cd8261c-be8b25"
Last-Modified: Mon, 08 Nov 2010 16:32:28 GMT
Content-Type: text/html
Content-Length: 20
It is likely your application on that server has something (like below) override php type in .htaccess at docroot.
AddType application/octect-stream php
 
Last edited:
#3
Try AddType application/octect-stream php

Thanks, I will try that.

This is part of a server farm and I mirrored the directory from another server that is working in a group.

I copied the .htaccess file and everything?
 
#6
One more thing, if I change my .htaccess, the mirror will just change it back to the original configuration. So I don't think it's that.

mirror23.midwestsupplies.com is one of the servers in the group
 
Top