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.

PHP Safe Mode

Discussion in 'General Discussion' started by IT Hosting, Jul 3, 2002.

  1. IT Hosting

    IT Hosting Member

    Joined:
    Jun 20, 2002
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Is there any way *through WHM* to control safe mode? or do I have to do it &manually&?
     
  2. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    Turn safe mode on in php.ini. You can then turn it off and add open_basedir for each virtual account by modifying the new account creation script. If you leave safe mode off in php.ini and then use open_basedir, your server won't be safe as people can still access the dangerous PHP functions from a sub-domain.
     
  3. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    I wonder what file it is that creates the subdomains, and if it's possible to modify it the same way as the create account script add open_basedir to all new subdomains.
     
Loading...

Share This Page