The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

suphp chroot() - who have success expirience?

Discussion in 'Security' started by mitya4004, Dec 9, 2009.

  1. mitya4004

    mitya4004 Member

    Joined:
    Dec 30, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hello.

    I cant manage to configure this suphp config value:


    chroot:
    Path to change the process's root directory to before executing the
    script. Has to be specified without a trailing slash.
    If not specified, no chroot() call is performed. May contain variables
    as described above.


    I am trying

    chroot=/home
    chroot=${home}
    chroot=${home}/public_html

    But all of this values leads to error 500.

    Using of chroot seems to be great security trick..

    Who could tell what value would be correct?
     
  2. Janak

    Janak Well-Known Member

    Joined:
    Jul 18, 2009
    Messages:
    71
    Likes Received:
    1
    Trophy Points:
    6
    Please check the apache error logs and see what kind of errors are you getting there?
     
  3. mitya4004

    mitya4004 Member

    Joined:
    Dec 30, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    It is for all chroot values

    [Sun Dec 13 16:10:32 2009] [error] [client 91.212.150.250] SystemException in API_Linux.cpp:477: chroot() failed: No such file or directory
    [Sun Dec 13 16:10:32 2009] [error] [client 91.212.150.250] Premature end of script headers: index.php
    [Sun Dec 13 16:10:32 2009] [error] [client 91.212.150.250] SystemException in API_Linux.cpp:477: chroot() failed: No such file or directory
    [Sun Dec 13 16:10:32 2009] [error] [client 91.212.150.250] Premature end of script headers: index.php
    [Sun Dec 13 16:10:32 2009] [error] [client 77.88.25.28] SystemException in API_Linux.cpp:477: chroot() failed: No such file or directory
    [Sun Dec 13 16:10:32 2009] [error] [client 77.88.25.28] Premature end of script headers: index.php
     
  4. mitya4004

    mitya4004 Member

    Joined:
    Dec 30, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
  5. mitya4004

    mitya4004 Member

    Joined:
    Dec 30, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    up up up !!!
     
Loading...

Share This Page