'force gid' not working

Discussion in 'PHP' started by _qwerty_, Feb 9, 2009.

  1. gosborne

    gosborne Member

    I tried that earlier today to no avail. Are there any logs or settings that may help that I can give you?
  2. mistwang

    mistwang LiteSpeed Staff

    What's your "force gid" configuration, does the gid exist in /etc/group?

    Let you php script run shell command "id" to dump the uid and gids, you can PM me the result.
  3. mistwang

    mistwang LiteSpeed Staff

    From the information in your PM, looks like your PHP is not running in suEXEC mode, so, everything run as the default server UID.
    If you configure your vhosts natively from LSWS console, you should add a VHost Level lsphp_$VH_NAME external app, and corresponding script handler configuration for ".php".
    The easiest way is to use our PHP suEXEC vhost template.
  4. gosborne

    gosborne Member

    I believe I have all of that set up correctly already too :-/

    LiteSpeed API App Definition Edit Delete Back
    Name PHP5
    Address uds://tmp/lshttpd/$VH_NAME_lsphp.sock
    Notes Not Set
    Max Connections 5
    Environment Not Set
    Initial Request Timeout (secs) 180
    Retry Timeout (secs)0
    Persistent Connection Yes
    Connection Keepalive Timeout30
    Response Buffering No
    Auto Start Yes
    Command $SERVER_ROOT/fcgi-bin/lsphp
    Back Log 10
    Instances 5
    Run On Start Up No
    Max Idle Time 60
    Priority 0
    Memory Soft Limit 200M
    Memory Hard Limit (bytes) 250M
    Process Soft Limit 100
    Process Hard Limit 200

    and for the handler

    Suffixes: php
    Handler type: Litespeed API
    Handler name: [server level]: lsphp5

    should that be vhost level php5? when i switch it to that I get no output whatsoever when i load the page.
  5. mistwang

    mistwang LiteSpeed Staff

    Yes, should vhost level php5. The command maybe should be


Share This Page