php compiled but not working on site

Discussion in 'Install/Configuration' started by Brent W Peterson, Jan 10, 2012.

  1. Brent W Peterson

    Brent W Peterson New Member

    Sorry everyone, I know I have done this before but I can't remember how I fixed it last time.

    I installed litespeed on a new server, compiled PHP without errors etc.

    I have my site root working and it return html. However when I try to run php it simply downloads the file?

    I created my external app and script handler. I did not use the Apache templates as I never got PHP compiled for Apache (I need 5.2.17)
  2. webizen

    webizen New Member

  3. Brent W Peterson

    Brent W Peterson New Member

    I copied the site from a working Magento site so the .htaccess file hasn't changed.
  4. webizen

    webizen New Member

    is your new site configured to use .htaccess?
  5. Brent W Peterson

    Brent W Peterson New Member

    Yes, I have it set on the server tab and the virtual tab

    a test.html file works, but not phpinfo.php
  6. webizen

    webizen New Member

  7. Brent W Peterson

    Brent W Peterson New Member

    Yea, that is what I was thinking to (And it's even me :)
    I just switch to Apache configs and I then look at my ext app tab
    Type Name Address Action
    LSAPI App lsphp5 uds://tmp/lshttpd/lsphp5.sock
  8. webizen

    webizen New Member

    did you create script handler for .php which uses lsphp5 Ext app?
  9. Brent W Peterson

    Brent W Peterson New Member

    Yes under script hander I have suffixes php5, Handerler TYpe Litespeed API, Serverleve:Lsphp5

    Do I need one for php as well?
  10. webizen

    webizen New Member

    Yes, you do!
  11. Brent W Peterson

    Brent W Peterson New Member

    Can I use the same external app?
    uds://tmp/lshttpd/lsphp5.sock
  12. webizen

    webizen New Member

    Yes, you can. One ext app can be assigned to multiple handlers.
  13. Brent W Peterson

    Brent W Peterson New Member

    Ok this is a new one. http://brentwpeterson.tumblr.com/

    I have all these odd chars on my Magneto install?

    phpinfo.php still downloads. What else should I show you?
  14. webizen

    webizen New Member

  15. Brent W Peterson

    Brent W Peterson New Member

    HTTP/1.1 200 OK
    X-Powered-By: PHP/5.2.17
    Content-Type: text/html
    Date: Tue, 10 Jan 2012 20:45:39 GMT
    Server: LiteSpeed
    Connection: Keep-Alive
    Keep-Alive: timeout=5, max=100
  16. webizen

    webizen New Member

    is it just for phpinfo(); or for any php? pls provide a sample URL in question.
  17. Brent W Peterson

    Brent W Peterson New Member

    Everything is working now! Thank you

Share This Page