Forcefully restore cpanel backup file from a specific location.

ARUN Posted in BACKUP, WHM BACKEND
0
Forcefully restore cpanel backup file from a specific location.
/scripts/restorepkg --force /home/USERNAME/backup-11.28.2011_23-00-USER.tar.gz

How to show a message when we login via ssh

ARUN Posted in Boot, SSH, WHM BACKEND
0

Write the contents in file  /etc/motd

vi /etc/motd

WHM does not show the nameserverips

ARUN Posted in DNS, WHM BACKEND, WHM FRONTEND
0

Main >> DNS Functions >> Nameserver IPs   does not show the nameserverips

Solution :

cp -ar /var/cpanel/nameserverips.yaml /var/cpanel/nameserverips.yaml.bak

vi /var/cpanel/nameserverips.yaml

Should look like below :

**************************************************

---
ns1.arunp.in:
  226.58.71.189: 1
  count: '2'
zones: giftnfun.com,arunp.in
ns2.nandamurifans.com:
226.58.71.190: 1
  count: '2'
zones: giftnfun.com,arunp.in

**************************************************

Please make sure that “1” marked in RED should be altered as well. default will be “0”.

Restart cpanel and relogin

SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (585) of file “/home/username/public_html/index.php”

ARUN Posted in SSL, WHM BACKEND
0

SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (585) of file “/home/username/public_html/index.php”

Solution :

First check permission & ownership of files and folders.

Secondly.  Open httpd.conf

Go to the entry where 443 (SSL) details for the domain is given.

If its nobody nobody try changing to :

suPHP_UserGroup USERNAME USERNAME

How does ip/~username work in server

ARUN Posted in HTTPD, WHM BACKEND, WHM FRONTEND
0

How does ip/~username point to public_html instead of /home/username in server.

Solution : Its done by “UserDir”

httpd.conf might have an entry as below :

=================

[email protected] [~]# grep UserDir /usr/local/apache/conf/httpd.conf
UserDir public_html
[email protected] [~]#
=========================
Thats what is specifying the document root.
By default "UserDir" is enabled.
To disable we can use :
UserDir disabled user4 user5 user6
http://httpd.apache.org/docs/2.0/mod/mod_userdir.html

Cant add/delete user

ARUN Posted in WHM BACKEND
0

[email protected] [~]# userdel arun

vipw lockfile (/etc/ptmp) is present.

[email protected] [~]#

Solution :   See if the lock file /etc/ptmp is present; if so, remove it.

rndc: connect failed: 127.0.0.1#953: connection refused

ARUN Posted in WHM BACKEND, WHM FRONTEND
0

When trying to restart named we are getting the below error

[email protected] [~]# rndc reload
rndc: connect failed: 127.0.0.1#953: connection refused
[email protected] [~]#

Solution :

/scripts/rebuildnamedconf

Getting following error while trying to access Fantastico : Warning: php_uname() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1013 Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1029 Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1030 Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1031 Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1032 Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1033 Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1034 Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1035

ARUN Posted in ERROR, FANTASTICO, WHM BACKEND, WHM FRONTEND
0

Warning: php_uname() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1013

Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1029

Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1030

Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1031

Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1032

Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1033

Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1034

Warning: shell_exec() has been disabled for security reasons in /tmp/cpanel_phpengine.1306989206.272778s_v9ctir4 on line 1035

 

Solution :  /scripts/makecpphp

Updating FTP Server…Updates for “ftp” are disabled because “/etc/ftpdisable” exists

ARUN Posted in FTP, WHM BACKEND, WHM FRONTEND
0

Getting the error : Updating FTP Server…Updates for “ftp” are disabled because “/etc/ftpdisable” exists    while trying to run upcp

One solution that worked :

http://forum.webhostingdevelopment.com/index.php/2011/05/pure-authd-usrsbinpure-authd-s-varrunftpd-sock-r-usrsbinpureauth-running-as-root-with-pid/

[ERROR] Sorry, but that file doesn’t exist: [/etc/ssl/private/pure-ftpd.pem]

ARUN Posted in ERROR, FTP, WHM BACKEND
0

Getting the error [ERROR] Sorry, but that file doesn’t exist: [/etc/ssl/private/pure-ftpd.pem] in /var/log/messages

Solution is in the link below :

 

http://forum.webhostingdevelopment.com/index.php/2011/05/pure-authd-usrsbinpure-authd-s-varrunftpd-sock-r-usrsbinpureauth-running-as-root-with-pid/

pure-authd (/usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth) running as root with PID

ARUN Posted in FTP, WHM BACKEND
0

While trying to restart FTP via WHm we are getting the error :

=========

pure-authd (/usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth) running as root with PID

=========

Login to WHM >> Manage Service SSL Certificates >>

Reset the FTP ssl certificate.

Try restarting FTP.. it should work

make sure to run [/scripts/upcp –force] after that

If that dont work then go ahead and do :

cd /var/lib/rpm/

[  rm -f __db.*    ]

[   rpm -vv –rebuilddb    ]

How to increase /tmp size in dedicated server with cpanel

ARUN Posted in WHM BACKEND, WHM FRONTEND, WHM SCRIPTS
0

cp -ar /scripts/securetmp /scripts/securetmpbak

Edit

In a cpanel server edit  /scripts/securetmp and give

“my $tmpdsksize = 4096000;”

and then run

[      /scripts/securetmp –auto  ]

to create the new tmp.

 

Missing HOST Config Line in /etc/wwwacct.conf, please reconfigure with Edit Setup.

ARUN Posted in WHM BACKEND, WHM FRONTEND
0

Getting the below error while trying to create an account using in cpanel server using WHM >> Create Account

Missing HOST Config Line in /etc/wwwacct.conf, please reconfigure with Edit Setup.

Solution :

Edit /etc/wwwacct.conf

vi /etc/wwwacct.conf

Edit the line called HOST as mentioned below :

HOST server.domain.com

====================================

[email protected] [~]# cat /etc/wwwacct.conf | grep HOST

HOST server.domain.com

[email protected] [~]#

====================================

Cpanel filter location

ARUN Posted in WHM BACKEND
0

/etc/vfilters

Change WHM mail server IP address

ARUN Posted in MAIL, WHM BACKEND, WHM FRONTEND
0

How to change exim mail interface IP :

Login to WHM >> Exim Configuration Editor >> and check the below.

Automatically send outgoing mail from the account’s IP address instead of the main IP address. Warning: If you turn this setting on you should make sure reverse DNS entries match the ones in /etc/mail_reverse_dns.

Login to SSh

vi /etc/mailips

* :new_IP_address

For example :

[email protected] [~]# cat /etc/mailips

* :10.10.10.5

[email protected] [~]#

 

vi /etc/mailips

domain.com:IP address

# To send the email out from the particular IP for domain.com.

 

New cPanel requires

vi /etc/mailhelo to be changed as well. See below example

**********************

domain.com : domain.com
*: server.arun.net
*********************