The proxy subdomain option will automatically redirect visitors to the correct port when they access the following subdomains (example.com stands for the user’s domain name): cpanel.example.com redirects to the user’s cPanel interface [no need to use example.com:2082]. webmail.example.com redirects to the user’s webmail [no need to use example.com:2095]. whm.example.com redirects to the user’s WHM interface […]
Category: Cpanel
PDO Mysql not enabled after easyapache
Normally PDO mysql extension will be enabled once you installed it through Easyapache. However, in cPanel 11.32 versions, if you are seeing PDO_mysql extension is not enabled after easyapache, then you need to install the PDO_mysql extension from PECL repository.
1 |
#pecl install PDO_MYSQL |
After installing, check the installed modules using the following command.
1 2 3 4 5 6 |
#pecl list PDO PDO support => enabled PDO drivers => mysql pdo_mysql PDO Driver for MySQL, client library version => 5.0.95 |
Manually removing a Parked domain
Manually removing a parked domain is indeed a tough job. This article should help to make your job a bit easier. I would strongly recommend you to keep a backup before you edit the files.
1 |
Grep the <i><b>/var/cpanel/users</b></i> folders for the domain that you are looking for and remove it from the user file in question |
(this will also tell you who owns the domain).
1 |
Remove the domain entry from <i><b>/etc/named.conf</b></i> and the cooresponding .db file from <i><b>/var/named</b></i> and restart your bind server. |
1 |
Remove the virtual host or ServerAlias (whichever is applicable) from the <i><b>/etc/httpd/conf/httpd.conf</b></i> file and restart Apache |
1 |
Remove files with that domain name as the filename from <i><b>/etc/valiases</b></i>, <i><b>/etc/vdomainaliases</b></i>, and <i><b>/etc/vfilters</b></i>. |
1 |
If the domain is in <i><b>/etc/localdomains</b></i> or <i><b>/etc/remotedomains</b></i> then remove it from those files as well. Same goes for <i><b>/etc/userdomains</b></i>. |
This should pretty much wipe out […]
Log locations
This is a shortlist of various log files for various applications on your Cpanel VPS. cPanel Installation Logs:
1 |
/var/log/cpanel-install-thread0.log |
Apache:
1 2 3 |
/usr/local/apache/logs/access_log /usr/local/apache/logs/error_log /usr/local/apache/domlogs/example.com |
Apache SUEXEC Logs:
1 |
/usr/local/apache/logs/suexec_log |
MySQL:
1 |
/var/lib/mysql/hostname.err |
BIND (named) Log:
1 |
/var/log/messages |
Exim:
1 2 3 |
/var/log/exim_mainlog /var/log/exim_paniclog /var/log/exim_rejectlog |
Courier or Dovecot IMAP:
1 |
/var/log/maillog |
Tomcat Logs:
1 2 |
/usr/local/jakarta/tomcat/logs/catalina.err /usr/local/jakarta/tomcat/logs/catalina.out |
cPanel Access Log:
1 |
/usr/local/cpanel/logs/access_log |
cPanel Error Log:
1 |
/usr/local/cpanel/logs/error_log |
cPanel License Log:
1 |
/usr/local/cpanel/logs/license_log |
Stats Execution […]
Invalid License error for cPanel
Invalid License error for cPanel. 1. Check the validity of the license at http://verify.cpanel.net. If it is valid: 2. Login to ssh. 3. Make sure that port 80 is open to contact cPanel license server and your server’s hostname is a FQDN (Fully Qualified Domain Name). 4. Stop the firewalls running in the server and […]
File locations
Contents 1 Apache 2 Exim 3 ProFTPD 4 Pure-FTPD 5 Mysql 6 SSHD 7 Perl 8 PHP 9 Named(BIND) 10 Cpanel installation directory structure 11 WHM related files 12 Some Important cpanel/whm files Apache Installation directory: /usr/local/apache Apache binaries are stored here – httpd, apachectl, apxs: /usr/local/apache/bin Configuration files: /usr/local/apache/conf Main configuration file: /usr/local/apache/conf/httpd.conf Domain […]
“Domain already exists” error while adding addon domain in cpanel.
If you are trying to add-on a domain in cPanel and get “Domain already exists” messages, you will have to manually remove the DNS entries before you can add the domain. Actually, you can get an error message if you are adding domains that have similar names – meaning mydomain.com and mydomain.net – the .com […]
Creating a package in cPanel/WHM
A package specifies several different values for a cPanel account. This feature allows you to create a new package that can be applied to any account hosted by your server. To create a package please follow the steps mentioned below. 1. Login to oyur WHM. 2. Click “Add a package” WHM >> Package >> Add […]
Creating an E-Mail Forwarder in cPanel
To add a mail forwarder please follow the below given steps. 1. Login to cPanel and click Forwarders in mail section 2. Click Add Forwarder. 3. Put the name of the email address you wish to forward from in the first blank field. For example: for admin@yourdomainname.com, put admin in the first blank field. 4. […]
Creating an email account in cpanel
How to create an email account in cpanel. 1. Login to cPanel and click Email Accounts in Mail section. 2. Type the email address to be created in the Email field [If you manage more than one domain, make sure to select the appropriate domain from the pull-down menu.] 3. Type the desired password twice. […]