dapurhosting.com Blog for Tech

June 14, 2016

cPanel dan Webmail Forbidden di Litespeed

Filed under: cPanel/WHM,Securtiy — dh @ 2:55 pm

Whitelist rule id 981246 di whm > ConfigServer ModSecurity Control

August 2, 2015

Change cPanel Port

Filed under: cPanel/WHM — dh @ 6:31 am

You can change the cPanel port by editing this line in

pico /var/cpanel/cpanel.config

Cari

port=2082

Dan ganti ke port yang diinginkan lalu restart cpanel

service cpanel restart

April 21, 2015

Deleting mailman archives in cPanel

Filed under: cPanel/WHM — dh @ 4:33 am

(more…)

March 24, 2015

Ganti Port cPanel

Filed under: cPanel/WHM — dh @ 11:56 am

(more…)

October 20, 2013

Domain already setup

Filed under: cPanel/WHM — Tags: — dh @ 3:13 pm

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

September 27, 2012

Menyembunyikan Icon di cPanel

Filed under: cPanel/WHM — dh @ 8:53 am

In order to get rid of icons (if you use x3):
1) in /usr/local/cpanel/base/frontend/x3/dynamicui/ create a new file called remove_items_dynamicui.conf
(the name of the file can actually be whatever as long as it includes dynamicui and is a .conf file, ex abc_dynamicui_xyz.conf)

2) enter one line for each item you do not want to show. For hiding mysql-remoteaccess, emailroute and legacy file manager, the following needs to be added:

file=>mysql-remoteaccess,skipobj=>1
file=>emailroute,skipobj=>1
file=>legacy_filemanager,skipobj=>1

You can find all file names to use for each icon in /usr/local/cpanel/base/frontend/x3/dynamicui.conf

August 13, 2012

Webmail User ‘useraccount’ is over quota

Filed under: cPanel/WHM — dh @ 3:06 am

Webmail User ‘useraccount’ is over quota
But useraccount is not over quota

Go to
/var/cpanel/overquota/
ll

delete cpanel username from list

June 15, 2012

Mod_Deflate

Filed under: cPanel/WHM,Server — Tags: — dh @ 6:02 pm

Ke cPanel >> Apache Configuration >> Include Editor >> Post VirtualHost Include >> All Version Tambahkan kode ini


AddOutputFilterByType DEFLATE text/html text/plain text/xml


# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won’t work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

# Don’t compress images
SetEnvIfNoCase Request_URI \
\.(?:exe|t?gz|zip|bz2|sit|rar)$ \
no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary


# Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary

Test:
http://www.whatsmyip.org/http-compression-test/

March 3, 2012

Unable to fetch the cPanel user file

Filed under: cPanel/WHM — dh @ 3:44 am

log into root SSH on the machine and do the following:

cd /var/cpanel/users
ls -lah username
cat username

permission must:
rw-r----- 1 root username 596 Jun 8 14:03 username

Inside the file, the USER=username entry should have the username of that user. Some 3rd party plugins modify the username by appending .sometext to the end of the username. This can cause cPanel to be unable to read the user’s file.

October 20, 2011

Share IP Not Showing Default Website

Filed under: cPanel/WHM,Server — dh @ 3:19 am

When browse to IP, browser not showing default website but other website (client)

login to ssh

pico /usr/local/apache/conf/httpd.conf

find
Copy …..
Paste on top and change IP address to touble IP


ServerName x.x.com
DocumentRoot /usr/local/apache/htdocs
ServerAdmin x.x@x.com

suPHP_UserGroup nobody nobody

UserDir disable

jalankan command ini supaya httpd.conf yang baru diganti menjadi default apache (konfigurasi tidak hilang)

/usr/local/cpanel/bin/apache_conf_distiller –update

« Newer PostsOlder Posts »

Powered by WordPress