December 5, 2014
Find Trojan dan Spam Scripts
October 30, 2014
August 27, 2014
Install iRedMail
cd /root/ wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.8.7.tar.bz2 tar xjf iRedMail-0.8.7.tar.bz2 cd /root/iRedMail-0.8.7 bash iRedMail.sh
December 10, 2013
Domain Control Panel
duoserversindonesia.com
http://domcenter.duoserversindonesia.com/
http://domainpanel.duoserversindonesia.com
Indonitahost/lancarhost
http://indonitahost.myorderbox.com
November 22, 2013
MySQL error ./eximstats/smtp’ is marked as crashed
Mysql error log:
[ERROR] /usr/sbin/mysqld: Table './eximstats/smtp' is marked as crashed and should be repaired
Perbaiki dengan
myisamchk -r /var/lib/mysql/eximstats/smtp.MYI
Nanti akan muncul pesan
- recovering (with sort) MyISAM-table '/var/lib/mysql/eximstats/smtp.MYI' Data records: 461204 - Fixing index 1 - Fixing index 2 - Fixing index 3 - Fixing index 4 - Fixing index 5 - Fixing index 6 - Fixing index 7
November 21, 2013
wordpressslog@yandex.com
Cara menemukan script atau plugins wordpress yang mengirim email ke wordpressslog@yandex.com
cd /home/usercp/public_html/wp-content/plugins/ grep -H -r "d29yZHByZXNzc2xvZ0B5YW5kZXguY29t" /home/usercp/public_html/wp-content/plugins/
d29yZHByZXNzc2xvZ0B5YW5kZXguY29t adalah encoding base64 untuk wordpressslog@yandex.com
referensi: http://wordpress.org/support/topic/rogue-emails-to-wordpressslogyandexcom?replies=4#post-4409743
November 14, 2013
Permission 600 di Litespeed
Pastikan suExec diaktifkan di Litespeed. Kalau file yang digenerate masi 600 dan folder 700 maka harus build ulang apache melalui easyapache dan pastikan
- Disable opsi Mime Magic
- Centang opsi Save my profile with appropriate PHP 5 options set so that it is compatible with cpphp
October 20, 2013
Domain already setup
Jika addon domain error dan muncul pesan sbb:
domain.tld is already configured. Sorry, the domain 'domain.tld' is already setup (remove it from httpd.conf with '/scripts/killvhost domain.tld', and be sure to excise it from /var/cpanel/userdata/)
Solusi:
Jalankan perintah ini:
grep -lR domain.tld /var/cpanel/userdata/*
jika muncul listnya, jalankan perintah dibawah ini untuk rebuild cache:
/scripts/updateuserdomains
October 19, 2013
Mod_rewrite di codeigniter
Mod_rewrite di codeigniter
refernsi: http://www.farinspace.com/codeigniter-htaccess-file/
RewriteEngine On RewriteBase / ### Canonicalize codeigniter URLs # If your default controller is something other than # "welcome" you should probably change this RewriteRule ^(welcome(/index)?|index(\.php)?)/?$ / [L,R=301] RewriteRule ^(.*)/index/?$ $1 [L,R=301] # Removes trailing slashes (prevents SEO duplicate content issues) RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ $1 [L,R=301] # Enforce www # If you have subdomains, you can add them to # the list using the "|" (OR) regex operator RewriteCond %{HTTP_HOST} !^(www|subdomain) [NC] RewriteRule ^(.*)$ http://www.domain.tld/$1 [L,R=301] # Enforce NO www #RewriteCond %{HTTP_HOST} ^www [NC] #RewriteRule ^(.*)$ http://domain.tld/$1 [L,R=301] ### # Removes access to the system folder by users. # Additionally this will allow you to create a System.php controller, # previously this would not have been possible. # 'system' can be replaced if you have renamed your system folder. RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] # Checks to see if the user is attempting to access a valid file, # such as an image or css document, if this isn't true it sends the # request to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] # Without mod_rewrite, route 404's to the front controller ErrorDocument 404 /index.php
Apply These Final Touches to Clean Up the URL
Remember, once you have your CodeIgniter htaccess file setup, you will want to go into your “/system/application/config/config.php”, find the following:
$config['index_page'] = "index.php";
and change it to:
$config['index_page'] = "";