درس اعداد وحماية سيرفرك بنفسك وحماية نستكمل سويا
حماية الـ tmp /scripts/securetmp والان من WHM Main >> Service Configuration >> Exim Configuration Editor ننزل للاسفل ونختار advanced editor
ثم
تركيب ELS ونتابع
ثم نبحث ف الملف عن طريق Ctrl+w هنبحث عن ServerSignature نجعلها off ثم عمل ريستارت لاباتشى
تبحث عن
حماية الـ tmp /scripts/securetmp والان من WHM Main >> Service Configuration >> Exim Configuration Editor ننزل للاسفل ونختار advanced editor
ثم
رمز Code:
service exim restart
service cpanel restart
الان سوف نركب LES المتميز جدا ف حماية ملفات النظام ايضا رمز Code:
cd /usr/src
رمز Code:
wget http://www.r-fx.ca/downloads/les-current.tar.gz
رمز Code:
tar -zxvf les-current.tar.gz
رمز Code:
cd les*
رمز Code:
sh install.sh
رمز Code:
/usr/local/sbin/les -ea 1
الان سوف نركب العمــلاق CSF بالاعدادات المطلوبه عن طريق اسكربت الاخ مصطفى الغالى رمز Code:
wget http://www.dolphin4h.com/ssh/csf.shchmod +x csf.sh
sh csf.sh
رمز Code:
wget --output-document=installer.sh http://servermonkeys.com/projects/els/installer.sh; chmod +x installer.sh; sh installer.sh
ونكتبرمز Code:
els --chkrootkit
رمز Code:
els --chkrootkitcron
رمز Code:
Ensure this is correct.Proceed? (y/n):
نكتب y ثم ENTER ثم نركب رمز Code:
els --rkhunter
رمز Code:
ELS can now install RKHunter.Proceed? (y/n):
ثم yرمز Code:
els --rkhuntercron
Admin (your) E-Mail Address (this should NOT be on this server): نكتب البريد ثم نتابع y رمز Code:
rkhunter -c
رمز Code:
els --chmodfiles
رمز Code:
els --disabletelnet
رمز Code:
els --imagemagick
رمز Code:
els --zendopt
رمز Code:
els --securepartitions
رمز Code:
els --tweakcpsettings
رمز Code:
els --fixrndc
الان نأتى للتعديل على الاباتشى رمز Code:
pico /usr/local/apache/conf/httpd.conf
ضع باول الملف التاليثم نبحث ف الملف عن طريق Ctrl+w هنبحث عن ServerSignature نجعلها off ثم عمل ريستارت لاباتشى
رمز Code:
httpd restart
الان نعــدل على php.ini
رمز Code:
pico /usr/local/lib/php.ini
نضع باول الملف
رمز Code:
reveal_php 0
نبحث عن
رمز Code:
safe_mode
نجعله
رمز Code:
safe_mode = on
نبحث عن
رمز Code:
allow_url_fopen
نجعله
رمز Code:
allow_url_fopen = off
تبحث عن
رمز Code:
expose_php
تجعله
رمز Code:
expose_php = off
رمز Code:
enable_dl
تجعلهرمز Code:
enable_dl = off