درس اعداد وحماية سيرفرك بنفسك وحماية نستكمل سويا
حماية الـ 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 --rkhuntercronAdmin (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

