LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > [solved] PHP not processing

Reply
 
Thread Tools Display Modes
  #1  
Old 02-02-2011, 01:21 PM
Brent W Peterson Brent W Peterson is offline
Senior Member
 
Join Date: Apr 2010
Posts: 109
Default [solved] PHP not processing

I just setup my 8th Litespeed server and all my config settings appear to be the same as my other servers. The problem is that it is downloading my PHP file instead of running it? It works fine for Html?

http://64.202.244.25

put if you go here

http://64.202.244.25/Wdc/phpinfo.php

It trys to download. I know it is something simple but I just can't remember what it is!! Help
__________________
Brent W Peterson
Twitter me - http://twitter.com/#!/brentwpeterson

Last edited by NiteWave; 02-03-2011 at 01:29 PM..
Reply With Quote
  #2  
Old 02-02-2011, 03:55 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
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.
Quote:
$ 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'
Quote:
$ 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.
Quote:
AddType application/octect-stream php

Last edited by webizen; 02-02-2011 at 04:22 PM.. Reason: response from wdc/phpinfo.php added
Reply With Quote
  #3  
Old 02-02-2011, 04:10 PM
Brent W Peterson Brent W Peterson is offline
Senior Member
 
Join Date: Apr 2010
Posts: 109
Default 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?
__________________
Brent W Peterson
Twitter me - http://twitter.com/#!/brentwpeterson
Reply With Quote
  #4  
Old 02-02-2011, 04:33 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Is php always like that since fresh install? What is the LSWS version?
Reply With Quote
  #5  
Old 02-03-2011, 07:14 AM
Brent W Peterson Brent W Peterson is offline
Senior Member
 
Join Date: Apr 2010
Posts: 109
This is a Fresh install on a new server. It is 4.0.19 std

PHP builds fine
__________________
Brent W Peterson
Twitter me - http://twitter.com/#!/brentwpeterson
Reply With Quote
  #6  
Old 02-03-2011, 07:15 AM
Brent W Peterson Brent W Peterson is offline
Senior Member
 
Join Date: Apr 2010
Posts: 109
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
__________________
Brent W Peterson
Twitter me - http://twitter.com/#!/brentwpeterson
Reply With Quote
  #7  
Old 02-03-2011, 11:02 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
you missed the script handler configuration for ".php".
Reply With Quote
  #8  
Old 02-03-2011, 12:44 PM
Brent W Peterson Brent W Peterson is offline
Senior Member
 
Join Date: Apr 2010
Posts: 109
Thank you !! That did it!
__________________
Brent W Peterson
Twitter me - http://twitter.com/#!/brentwpeterson
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:26 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.