[solved] PHP not processing

Discussion in 'Install/Configuration' started by Brent W Peterson, Feb 2, 2011.

  1. Brent W Peterson

    Brent W Peterson New Member

    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
    Last edited by a moderator: Feb 3, 2011
  2. webizen

    webizen New Member

    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.
    However, index.html returns 'text/html'
    It is likely your application on that server has something (like below) override php type in .htaccess at docroot.
    Last edited: Feb 3, 2011
  3. Brent W Peterson

    Brent W Peterson New Member

    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?
  4. webizen

    webizen New Member

    Is php always like that since fresh install? What is the LSWS version?
  5. Brent W Peterson

    Brent W Peterson New Member

    This is a Fresh install on a new server. It is 4.0.19 std

    PHP builds fine
  6. Brent W Peterson

    Brent W Peterson New Member

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

    mistwang LiteSpeed Staff

    you missed the script handler configuration for ".php".
  8. Brent W Peterson

    Brent W Peterson New Member

    Thank you !! That did it!

Share This Page