dapurhosting.com Blog for Tech

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

Fantastico Error

Filed under: Fantastico — dh @ 3:09 am

Login to SSH
/scripts/makecpphp
/etc/rc.d/init.d/cpanel restart

October 14, 2011

Fatal error: Maximum execution time of 300 seconds exceeded

Filed under: cPanel/WHM,MySql — dh @ 5:06 am

http://www.helpdesksys.com/joomla-articles/27-maximum-execution-time-of-300-seconds.html

Fatal error: Maximum execution time of 300 seconds exceeded

PHPMyAdmin will not work for uploading large mysql databases. If you attempt to upload a large mysql dataset you will often get this error

Here is the Fix

If you get this error you will need edit config.default.php inside phpmyadmin folder and look for this line

$cfg[’ExecTimeLimit’] = 300;

and replace with 0 or any larger value

$cfg[’ExecTimeLimit’] = 3600;

Normally it is located at “/usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/config.default.php”,

Ref: http://24x7servermanagement.com/blog/?p=517

June 21, 2011

Adding New Feature Groups for a cPanel Theme

Filed under: cPanel/WHM — Tags: , — dh @ 5:29 pm

Adding New Feature Groups for a cPanel Theme

Adding New Feature Groups for a cPanel Theme

April 9, 2011

A mysql user with the name already exists.

Filed under: cPanel/WHM,MySql — dh @ 5:18 am

Find and delete username from

/var/cpanel/databases/users.db

/var/cpanel/databases/

February 23, 2011

Fix Invalid (Email) Space

Filed under: cPanel/WHM,Email — dh @ 3:15 am

This is how to fix invalid email disk space usage (maildirsize)

  1. Login to your server via FTP
  2. Navigate to the following path /mail/yourdomain.com/user
  3. From this directory, delete the file named maildirsize
  4. Once this file is deleted, the system should reform the mail account automatically with the correct mailbox quota size upon new email activity.

Notes: If the correct mailbox quota is still not being displayed, from within cPanel, you can navigate to email accounts and click the change quota button to set a new quota.

Source: http://www.lancelhoff.com/error-invalid-maildirsize-file/

« Newer PostsOlder Posts »

Powered by WordPress