cant run php file on PHP_SuEXEC VHost Templates

Discussion in 'General OpenLiteSpeed Discussion' started by while1, Oct 12, 2017.

  1. while1

    while1 New Member

    Hello friends
    I started working with templates and something is not really clear to me.

    I have successfully set up listeners and vhost to PHP_SuEXEC Built-in Template And run HTML files without problem But when I try to run PHP files I get error 503 (Service Unavailable).

    OpenLiteSpeed 1.4.27 (ols1clk)
    what I missing?

    Thanks
     
  2. cyberpersons

    cyberpersons New Member

    Did you setup php external app at server level?
     
  3. while1

    while1 New Member

    I did not touch anything. Everything is set

    Server Configuration > External App
    LiteSpeed SAPI App lsphp uds://tmp/lshttpd/lsphp.sock

    VHost Template PHP_SuEXEC > External App
    LiteSpeed SAPI App $VH_NAME_lsphp uds://tmp/lshttpd/$VH_NAME_lsphp.sock
     
  4. while1

    while1 New Member

    [solved] - Thank you cyberpersons for the direction of the solution.
    VHost Template PHP_SuEXEC > External App > Memory Soft Limit is 100M by the default in this template and the process is 149MB therefore return 503.

    And my new question is why the empty PHP process needs 149M for echo 'hello world'; ??
     

Share This Page