Merhaba R10 üyeleri; Linux sunucunuz tehlike durumuna giriyor ve sürekli hackleniyormu? Bu yazıyı okumanızı öneririm!
Linux sunucularda shell yemek basit bir iştir. Ancak bunu düzgün biçimde onarırsak shell'den kurtuluruz.
Adım 1
php.ini dosyamızı açıyoruz
"disable_functions =" diye aratalım ve satırın yerine
disable_functions = foreach, glob, openbasedir, posix_getpwuid, f_open, system,dl, array_compare, array_user_key_compare, passthru, cat, exec, popen, proc_close, proc_get_status, proc_nice, proc_open, escapeshellcmd, escapeshellarg, show_source, posix_mkfifo, ini_restore, mysql_list_dbs, get_current_user, getmyuid, pconnect, link, symlink, fin, passthruexec, fileread, shell_exec, pcntl_exec, ini_alter, parse_ini_file, leak, apache_child_terminate, chown, posix_kill, posix_setpgid, posix_setsid, posix_setuid, proc_terminate, syslog, allow_url_fopen, fpassthru, execute, shell, curl_exec, chgrp, stream_select, passthru, socket_select, socket_create, socket_create_listen, socket_create_pair, socket_listen, socket_accept, socket_bind, socket_strerror, pcntl_fork, pcntl_signal, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig, openlog, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, virtual
yazalım.
Adım 2
"register_globals" diye aratalım eğer = karşısındaki "Off" ise olduğu gibi bırakalım eğer "On" ise "Off" olarak değiştirelim.
"allow_url_fopen" diye arayalım eğer = karşısındaki "Off" ise olduğu gibi bırakalım eğer "On" ise "Off" olarak değiştirelim.
safe_mode = Off
Adım 3
Ne yapacağınızı öğrendiniz diye farzederek;
session.hash_function = 0
expose_php = Off
html_errors = Off
max_execution_time = 750
max_input_time = 750
ServerSignature = Off
UseCanonicalName = Off
register_long_arrays = Off
enable_dl = off
track_errors = Off
ignore_repeated_errors = Off
ignore_repeated_source = Off
display_startup_errors = off
safe_mode_gid = Off
Not: Lütfen işleme başlamadan önce yedek alınız!