hello,
Any body know how can i Enable Safe mode in my VPS and how can i Disable Remote file include in my VPS![]()
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 ...
hello,
Any body know how can i Enable Safe mode in my VPS and how can i Disable Remote file include in my VPS![]()
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
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
why are you using safe mode??? it is not really any safer....
Infact it is being removed for php6
Copyright © 2011 JaguarPC.com
Bookmarks