HTTP 404 Error after Login to cPanel - Theme issue

Error

HTTP error 401 Invalid security token

or

HTTP 404 Error after Login to cPanel

Cause:

Current cPanel theme assigned to the user account may not working or not available in the server. So changing the theme to another will solve the issue.



Solution


Change current theme of cPanel



Front End:

1. Login to WHM as root user.

2. Main >> Account Functions >> Modify an Account

3. Check  'cPanel Theme' given for the specific account which you have problem. change it then save the changes.

4. Try login to your account again.


Back End:

1. Login as root user via ssh.

2. Open edit the file, /var/cpanel/users/<username>
    change the RS value in the file to x3

3. restart cPanel service.


Railo Memory Issue - JAVA_OPTS


Error on starting railo service.
When starting Railo, it will show Railo service started but when checking the railo status 'No PID Found'
Also there will be errors like the following in the catalina.out log file.

# cat /opt/railo/tomcat/logs/catalina.out

Error occurred during initialization of VM
Could not reserve enough space for object heap

Solution
--------

As we see the error log file, we can assume that the error is related to memory.
As Railo runs on JVM, memory issue related to java.

Java's Memory initiations is done by reading the script file,  setenv.sh.

By default it is as shown below,

# cat /opt/railo/tomcat/bin/setenv.sh

JAVA_OPTS="-Xms64m -Xmx256m -XX:MaxPermSize=64m ";   # memory settings
export JAVA_OPTS;

If there is any problem in starting Railo,change the memory parameters to default.

By effectively changing these parameters, Railo performance can be increased.

How to change cPanel User password in Backend/terminal ?


In some cases when you try to change user account password through front end, it will show that password changed successfully and when you try to login it will show authentication failure.

How to change cPanel password from command line or terminal ?

cPanel password of a domain can be changed from command line using cPanel script. Given below are the steps to do the same.

1. Login to your server as root via SSH.

2. Execute the following script from the command line.

/scripts/chpass [username] [password]


Replace [username] with the cPanel user name of the domain & [password] with the new password.

3. Synchronizing the new password with FTP password;

In cPanel/WHM servers, whenever a new account is created in WHM, by default a FTP account is created. The cPanel password and FTP password are synchronized. Use the following command to synchronize the new password with FTP password.

/scripts/ftpupdate


cPanel - Awstat result is not updating / showing in Browser



When you login to a account in cPanel for viewing awstat results, you may see all the entries in the awstat result showing Zero usage.

Cause:

Awstat update in Browser view is by default disabled in the user account.

Solution:

You can enable Browser view of Awstat by following the steps as described below.

1. Login to user's home directory which you want to enable Browser view.

2. Change directory to /home/<user>/tmp/awstats/

3. Open the file awstats.<domain>.conf

4. Search for the line AllowToUpdateStatsFromBrowser in the awstats.<domain>.conf file

5. By default AllowToUpdateStatsFromBrowser=0
   Change it to AllowToUpdateStatsFromBrowser=1

6. After you have done all the above steps, take awstats option in cPanel. You can see a button 'update' in there. Just click it and see your awstat results.

WordPress Upload Error - "This file is too big. Files must be less than 1500 KB in size"


Error:

This file is too big. Files must be less than 1500 KB in size

Cause:

In WordPress, by default Max upload file size is set to 1500 KB.

Solution:

1. Login to wp-admin

2. Click on My Sites >> Network Admin

3. Settings >> Network Settings

4. You can see an option there to set Max upload file size. Set it as what you wish and save changes. This should resolve your issue.


After the above changes, try uploading once again. If the problem still persists, you have to check the back end wordpress files were changed with these settings or not. Follow the steps given below to verify it.


1. Login to users's wordpress-document root and issue the following command to find the files which containing the entries regarding the Max upload file size.

2. # grep -irl "fileupload_maxk" .

3. Open all the php files listed by the above command and check the file size given in "get_site_option( 'fileupload_maxk', XXXX ) " is changed to newly updated size. If it is still 1500, change it.

Open the files and search the lines which contain 'fileupload_maxk'.
You can see the the number specified for  Max upload file size in that line. File size is specified in KB.

cPanel - SMTP Error (451): Failed to set sender



Error:

When you try to send mails from any email client using cPanel, you may see the following error flashed

SMTP Error (451): Failed to set sender "test@example.com"  (Temporary local problem - please try later)

Solution:

Let you are trying to send mail from "test1@yourdomain.com" to "test@example.com"

If "test1@yourdomain.com" is using local mail server, the command given below must display "yourdomain.com" as result.

# cat /etc/localdomains | grep yourdomain.com
 
If the output is null, add an entry for "yourdomain.com" in /etc/localdomains.

Also remove the entry of "yourdomain.com" in /etc/remotedomains if there exists one.

Administrative Site Tools For System Engineers

MANY TOOLS IN ONE

PING


You can use the above site used to check whether a domain is loading slowly by checking its ping result.

http://www.just-ping.com

It is an online web-based ping: Free online ping from 50 locations worldwide.

UNIX TimeStamp Converter


You can use the above site to find the date and time used in Unix. It will help you to check the time in which a cpanel backup is created by checking the unix time given in /backup/cpbackup/ daily | weekly | monthly /cpbackupstatus.cfg file.

DNS


You can use the above site to check the DNS information of a domain.


PROXY


The given site is a proxy site. There are a lot of proxy site available. You can use proxy sites when your IP is blocked in the server. You can access websites using proxy sites even the firewall rules is enabled to block certain IPs.


WHOIS


You can check information about a domain by using the above sites. It fetches the domain information from the domain registrar.

Domain Resolution

You can use the above sites to check whether a domain can resolve from different parts of the world. It will help us to know whether there is any DNS propagation delay or not.

MyIP


This site will show your public IP that you are currently using.

SSL

https://www.networking4all.com/en/support/tools
http://www.digicert.com

These site will help you check the details of SSL certificates used by a domain.

MAIL


This site will help you to check whether a mail box exists or not.


MX-BlackList


These site tools help you to check MX record used for a domain. You can check whether an MX IP is blacklisted or not. A server IP will be blacklisted when spam contents were detected by the authority.

WebSite Up or Down


The above site will show you the status of your website. Shows whether your site is up or down.

Google bot last visit

http://www.gbotvisit.com/

The above site helps to check the last time google bot visit a particular url.