Forcefully restore cpanel backup file from a specific location.
/scripts/restorepkg --force /home/USERNAME/backup-11.28.2011_23-00-USER.tar.gz
Forcefully restore cpanel backup file from a specific location.
/scripts/restorepkg --force /home/USERNAME/backup-11.28.2011_23-00-USER.tar.gz
Write the contents in file /etc/motd
vi /etc/motd
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”
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 point to public_html instead of /home/username in server.
Solution : Its done by “UserDir”
httpd.conf might have an entry as below :
=================
root@server [~]# grep UserDir /usr/local/apache/conf/httpd.conf UserDir public_html root@server [~]#
=========================
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
root@server [~]# userdel arun
vipw lockfile (/etc/ptmp) is present.
root@server [~]#
Solution : See if the lock file /etc/ptmp is present; if so, remove it.
When trying to restart named we are getting the below error
root@server [~]# rndc reload
rndc: connect failed: 127.0.0.1#953: connection refused
root@server [~]#
Solution :
/scripts/rebuildnamedconf
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
Getting the error : Updating FTP Server…Updates for “ftp” are disabled because “/etc/ftpdisable” exists while trying to run upcp
One solution that worked :
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 :
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 ]
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.
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
====================================
root@server [~]# cat /etc/wwwacct.conf | grep HOST
HOST server.domain.com
root@WDC-FutureHosting [~]#
====================================
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 :
root@server [~]# cat /etc/mailips
* :10.10.10.5
root@server [~]#
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
*********************