Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on Enable Safe mode in VPS in the VPS & Dedicated forum
hello, Any body know how can i Enable Safe mode in my VPS and how can i Disable Remote file include in my VPS ...

  1. #1
    take it easy ... arianetwork's Avatar
    Join Date
    Mar 2006
    Location
    Hungry
    Posts
    107

    Enable Safe mode in VPS

    hello,
    Any body know how can i Enable Safe mode in my VPS and how can i Disable Remote file include in my VPS

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Are you referring to PHP settings? If so, these can be done in the php.ini file. Depending on your configuration the file will probably be in either /etc or /usr/local/Zend/etc (but it could be somewhere totally different). The easiest way to find it is to do a phpinfo() and look for the "Configuration File (php.ini) Path" near the top of the output.

    To turn on safe mode, find safe_mode in the file and change it to:
    safe_mode = on

    By remote file include I think you are refering to the URL fopen wrapers (which allow you to access files with URLs instead of file system paths). If so, find the "allow_url_fopen" setting and change to:
    allow_url_fopen = off

    If you are runing PHP as an Apache module (mod_php), you'll need to restart Apache to make the change take effect.

    Hope this helps.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    take it easy ... arianetwork's Avatar
    Join Date
    Mar 2006
    Location
    Hungry
    Posts
    107
    Hello Jason and thanks alot for your reply .
    But i don't have complete information about access to root .
    Can you reply me how can is access to my root , for example how can i access to cp /etc/services /etc/services.original or /etc/ssh/sshd_config . and please reply me how can i do this step by step :
    To install chrootkit, SSH into server and login as root.
    At command prompt type:

    cd /root/
    wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
    tar xvzf chkrootkit.tar.gz
    cd chkrootkit-0.44
    make sense


    To run chkrootkit

    At command prompt type:
    /root/chkrootkit-0.44/chkrootkit

  4. #4
    Loyal Client the_ancient's Avatar
    Join Date
    Feb 2004
    Posts
    3,386
    why are you using safe mode??? it is not really any safer....

    Infact it is being removed for php6
    -------------------------
    the_ancient
    MP Technology Group

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •