Hello Guys!
This time i am posting
About
"How to prevent from symlink ?"
so lets start
First step:-
Open your site control Panel.
Change permission for ln command.
Code:
sudo su
cd /bin
chmod 400 ln
Second step :-
Edit php.ini configuration
to search php.ini file
Code:
locate php.ini
Code:
edit php.ini
nano /etc/php5/apache2/php.ini search ” disable_functions ” and put in the list
disable_functions =
symlink,system,shell_exec,eval,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinumcols,ini_alter,leak,listen,chgrp,apache_note,apa
che_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,ftp,myshellexec,proc_open,socket_bind,proc_close,
escapeshellarg,popen,fpassthru,php_uname,
pcntl_exec,
Final Step:-
Now restart the service .
Code:
/etc/init.d/php5 restart
/etc/init.d/apache2 restart
This make your server
is secure from symlink.
Thanx For Reading .
#Anonymous_KnW
0 comments:
Post a Comment