Kötü niyetli PHP işlevleri nasıl devre dışı bırakılır:
1. Ssh ile oturum araçalım
2. Custombuild dizinine gidin:
cd /usr/local/directadmin/custombuild
3. Komutu yürütün:
./build secure_php
Yukarıdaki komutları çalıştırdıktan sonra engelleme listesi için şunu kullanın:
grep disable_functions /usr/local/php*/lib/php.ini
Eğer çıktı aşağıdaki gibi yada benzeri ise işlemler tamam demektir.
disable_functions = hopenbasedir, system, cat, popen, proc_close, proc_open, proc_get_status, proc_nice, show_source, posix_mkfifo, mysql_list_dbs, get_current_user, getmyuid, pconnect, link, symlink, pcntl_exec, ini_alter, leak, apache_setenv, posix_kill, posix_setpgid, posix_setsid, posix_setuid, proc_terminate, syslog, 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, virtual, user_dir, ini_restore, mail, phpmail, sendmail, passthru, highlight_file, ignore_user_abord, listen, pclose, shell, define_syslog_variables, dl, showsource, ftp_exec
Ekstra olarak engelleme listesine ekleme çıkarma yapmak istiyorsanız Aşağıdaki dizine gidip nano php.ini dosyasında disable_functions kelimesini aratalım.
cd /usr/local/php74/lib/
nano php.ini
Ve ilgili düzenlemeleri yaptıktan sonra tekrar aşağıdaki komutları uygulayalım.
cd /usr/local/directadmin/custombuild
./build secure_php
Bilgi Bankasına Dön