Set UID Mode and Chroot Mode in cpanel

Discussion in 'Install/Configuration' started by Alborz, Oct 3, 2011.

  1. Alborz

    Alborz New Member

    Hi guys,

    How can enable Set UID Mode as Doc Root UID and Chroot Mode as Virtual Host Root when install lsws on cpanel?


    Thanks
  2. NiteWave

    NiteWave Administrator

    chroot won't work with cPanel since its complexity(my guess)

    I think just enable php suExec will do it

    lsws admin console->Configuration->Server
    ->General->PHP suEXEC:Yes
  3. Alborz

    Alborz New Member

    when I run a php file in my server id is user= uid= gid=
    I see another server that same script export this:
    user=someuser uid=692 gid=689
    How can I do this in my own server?
  4. NiteWave

    NiteWave Administrator

    as I said in previous post: enable php suExec
  5. Alborz

    Alborz New Member

    php suExec is enabled
  6. NiteWave

    NiteWave Administrator

    can you give a screenshot of
    Configuration->Server->General->Using Apache Configuration File
  7. Alborz

    Alborz New Member

    The screenshot attached.

    Attached Files:

  8. NiteWave

    NiteWave Administrator

    it should work as expected.

    please give the output of:
    #ps -ef|grep lsphp
  9. mistwang

    mistwang LiteSpeed Staff

    check phpinfo() page under Litespeed, open_basedir is enforced, so id command cannot be executed successfully, suphp does not support open_basedir.
  10. Alborz

    Alborz New Member

    I disable open_basedir and rebuild apache conf but the Id command can not run yet.
  11. mistwang

    mistwang LiteSpeed Staff

    double check phpinfo() to make sure open_basedir is really disabled.

Share This Page