Update script homepage
mkdir /usr/local/updatescript cd /usr/local/updatescript wget http://tools.web4host.net/update.script chmod 755 update.script
./update.script
./update.script UPDATEME
./update.script DATE
./update.script CLEAN
nano -w /etc/exim.conf
primary_hostname =
av_scanner = clamd:/tmp/clamd
check_message:
deny message = This message contains malformed MIME ($demime_reason)
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}
deny message = This message contains a virus or other harmful content ($malware_name)
demime = *
malware = *
deny message = This message contains an attachment of a type which we do not accept (.$found_extension)
demime = bat:com:pif:prf:scr:vbs
warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
/sbin/service exim restart
nano -w /etc/httpd/conf/httpd.conf
LoadModule php5_module /usr/lib/apache/libphp5.so
LoadFile /usr/lib/libxml2.so LoadModule security2_module /usr/lib/apache/mod_security2.so
LoadFile /usr/lib64/libxml2.so LoadModule security2_module /usr/lib/apache/mod_security2.so
<IfModule mod_security2.c> # ModSecurity2 ONLY # Do not change anything in included files # Include /etc/modsecurity2/modsecurity-rules-selected-by-web4host.net.conf </IfModule>
/sbin/service httpd restart
nano -w /etc/httpd/conf/httpd.conf
<IfModule mod_security.c> # Only inspect dynamic requests # (YOU MUST TEST TO MAKE SURE IT WORKS AS EXPECTED) #SecFilterEngine DynamicOnly SecFilterEngine On # Reject requests with status 500 SecFilterDefaultAction "deny,log,status:500" # Some sane defaults SecFilterScanPOST On SecFilterCheckURLEncoding On SecFilterCheckCookieFormat On SecFilterCheckUnicodeEncoding Off SecFilterNormalizeCookies On # enable version 1 (RFC 2965) cookies SecFilterCookieFormat 1 #SecServerResponseToken Off #If you want to scan the output, uncomment these #SecFilterScanOutput On #SecFilterOutputMimeTypes "(null) text/html text/plain" # Accept almost all byte values SecFilterForceByteRange 1 255 # Server masking is optional #fake server banner - NOYB used - no one needs to know what we are using SecServerSignature "Power MOD by web4host.net" #SecUploadDir /tmp #SecUploadKeepFiles Off # Only record the interesting stuff SecAuditEngine RelevantOnly #SecAuditLog logs/audit_log # You normally won't need debug logging #SecFilterDebugLevel 0 #SecFilterDebugLog logs/modsec_debug_log # Mini Rules Include /etc/modsecurity/mini.conf </IfModule>
/sbin/service httpd restart
nano -w /etc/httpd/conf/httpd.conf
<IfModule mod_evasive.c> DOSHashTableSize 3097 DOSPageCount 2 DOSSiteCount 50 DOSPageInterval 1 DOSSiteInterval 1 DOSBlockingPeriod 10 DOSWhitelist 127.0.0.1 DOSEmailNotify your-email@your-domain.tld </IfModule>
/sbin/service httpd restart
/usr/local/directadmin/customapache/
nano -w /etc/httpd/conf/httpd.conf
LoadModule perl_module /usr/lib/apache/libperl.so
LoadModule evasive_module /usr/lib/apache/mod_evasive.so
<IfDefine HAVE_PYTHON> AddModule mod_python.c </IfDefine>
AddModule mod_evasive.c
/sbin/service httpd restart
nano -w /etc/httpd/conf/httpd.conf
<IfModule mod_evasive20.c> DOSHashTableSize 3097 DOSPageCount 2 DOSSiteCount 50 DOSPageInterval 1 DOSSiteInterval 1 DOSBlockingPeriod 10 DOSWhitelist 127.0.0.1 DOSEmailNotify your-email@your-domain.tld </IfModule>
/sbin/service httpd restart
wget http://tools.web4host.net/modevasive/test.txt mv test.txt test.pl chmod 755 test.pl ./test.pl
kiss start
kiss stop
kiss status
kiss restart
EXTN="o"
EXTN="ko"
| /usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so |
nano -w /usr/local/lib/php.ini
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so" eaccelerator.shm_size="32" eaccelerator.cache_dir="/tmp/eaccelerator" eaccelerator.enable="1" eaccelerator.optimizer="1" eaccelerator.check_mtime="1" eaccelerator.debug="0" eaccelerator.filter="" eaccelerator.shm_max="0" eaccelerator.shm_ttl="0" eaccelerator.shm_prune_period="0" eaccelerator.shm_only="0" eaccelerator.compress="1" eaccelerator.compress_level="9"
/sbin/service httpd restart
cd /usr/local/directadmin/customapache/
nano -w configure.php
nano -w configure2.php
--with-gd \ --with-gd-dir=/usr/local \
--with-gd \ --with-gd-dir=/usr/local/lib \ --with-freetype \ --with-freetype-dir=/usr/local/lib \
./build clean ./build gd
./build clean ./build gd ./build php d service httpd restart
./build clean ./build gd ./build php_ap2 d service httpd restart
nano -w configure.php
nano -w configure2.php
--with-imap=/usr/local/imap-2004c1 \
--with-zip \
service httpd restart
avgscan -clean -ext=* -rt -arc /home
avgscan -clean -ext=* -rt /home
avgupdate --online /opt/grisoft/avg7/data
nano -w /usr/local/nobody_check/nc.conf
nano -w /etc/crontab
# nobody_check */15 * * * * root /usr/local/nobody_check/nobody_check >/dev/null 2>&1
Copyright © Web4Host.Net 2004-2005-2006-2007-2008