Things that might bother cPanel users.

Status
Not open for further replies.

Smaily

Well-Known Member
Sep 19, 2011
46
0
56
cPanel Access Level
Root Administrator
1. Clustering/load balancing, mirroring. Not in cPanel/WHM.
2. SCP transfer as pack and transfer to /home for all accounts in other server. Not supported by WHM/cPanel.
Manually had to run backup on old server, then copy over all accounts packs and manually import each one in new server WHM.
Time consuming. SCP via SSH..
Why I didnt use multiple accounts import was simple. DNS was not susposed to change on any of the domains.
Both servers had internet and different IP addresses and hostnames but goal was to change new server ip and hostnames, nameservers into old ones straight after transfering everyone over. Now doing so there is no support in cPanel/WHM changing DNS on all of these clients with one click.

3. Home >> Backup >> Restore a Full Backup/cpmove File
One user disk quota was full in old server when doing backup.
Once reached importing that user, all users after that user failed to import correctly,
There were MySQL database errors and some files probably even missing.
Restarting MySQL and terminating all thouse broken imported clients and reimporting fixed the issue.

Restoring MySQL databases....
Restoring database cpaneldatabase......
Restoration of MySQL database (cpaneldatabase) failed with error: Execution of /usr/bin/mysql --defaults-file=/home/cpaneluser/._.work.etybgfMVzfXbt9Ij -B -A --force cpaneldatabase exited with value: 1

I would suggest on writing with red and bold text in end of each import if there are anykind of issues during import.
I have no time in scrolling through 500 clients imports. Ironically I had to have time to reimport 50 clients.

4. After changing server ip addresses in every centos conf file, whm page simply not found even after cpanel services restart.
vi /var/cpanel/mainip
/usr/local/cpanel/cpkeyclt

5. Nameserver ip addresses are total mess after ip address change of server. Manually have to remove old nameservers directly from file.
vi /etc/nameserverips

6. If you install CentOS 6.5 from live DVD and attempt to put some iptables rules in afterwards like custom SSH port then there is rule in iptables which wont allow that previously added rule to work correctly.

# cat /etc/sysconfig/iptables
-A INPUT -j REJECT --reject-with icmp-host-prohibited

Attempt to add custom ssh port
# iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 4041 -j ACCEPT
# /sbin/service iptables save
# iptables-save > /etc/sysconfig/iptables
# /etc/init.d/iptables restart

# vi /etc/ssh/sshd_config
Port into 4041
# service sshd restart

Connect does not work unless you remove from iptables
-A INPUT -j REJECT --reject-with icmp-host-prohibited

so..
# iptables -D INPUT -j REJECT --reject-with icmp-host-prohibited
# iptables -A INPUT -j REJECT --reject-with icmp-host-prohibited
# /sbin/service iptables save
# iptables-save > /etc/sysconfig/iptables
# /etc/init.d/iptables restart

Puts it to the end of the file and voila, port works.

Afcorse we could simply add it straight to correct place. But the point here is, many users may not notice why custom port dont start working at all.
# iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 4041 -j ACCEPT

7. By default settings of WHM if you attemt to import larger then 70Mb large database probably what happens is it fails with an error.
/etc/my.cnf
Must be changed, to do that even with an shell command, meybe consider allowing up to 150Mb databases by default
mysql -u cpanelusername -p mysqltable < /home/cpanelusername/cpaneltable.sql

[mysqld]
innodb_file_per_table=1
open_files_limit=35410
wait_timeout=1800
max_allowed_packet=128M

[mysqldump]
max_allowed_packet=128M

8. Restoring demo account, probably will miss in feature manager API Shell Access. And some robotic script will ruin your clients sites.

9. open_basedir protection, not on by default. Isnt this serious security issue when you get your clients up and running and they "guess" other party username, therefore see they have vbulletin and/or worpress installed and steal the database?

10. Simply exporting/importing WHM locale will "forget" some of translations in old server.
Which means if you dont notice it on time, you have to do custom translations over again.

11. Many countries are missing from locale CLDR list on WHM. So is mine.
12. There should be option in WHM to click "Send my custom translation to WHM as generous donation". I bet you would get alot more languages then you have now.

13. What is difference between xml and xlf file.

14. WHM Home >> Locales >> Edit a Locale >> Go
When logged in as root user,
Getting error "Invalid locale."
This error should be replaced with information something like "you need reseller with all privileges to do the modification of locale file in live".
Now after giving reseller privileges reseller can go back and try logging in again, apparently root is not allowed to and login to cpanel will fail but system redirects to reseller login, even after entering pw and user you dont get live editor.
I would also suggest once hitting that Go button as root to get message, "you must be logged in WHM as reseller to do that"

WHM Home >> Locales >> Edit a Locale >> Go

Home >> Resellers >> Edit Reseller Nameservers and Privileges >> Submit
Root access, all features.

15. FTP such as filezilla will probably timeout on connecting by default.
Iptables..
# iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 10000:20000 -j ACCEPT
# iptables -D INPUT -j REJECT --reject-with icmp-host-prohibited
# iptables -A INPUT -j REJECT --reject-with icmp-host-prohibited
# /sbin/service iptables save
# iptables-save > /etc/sysconfig/iptables
# /etc/init.d/iptables restart

16. Now changing custom exim SMTP port in whm additonal port then it will prob wont work either, even tho there are cpanel iptables rules, ironically they are rules for OUTPUT not for INPUT.
Lets aim this time before icmp host prohibited rule
# -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 587 -j ACCEPT
# /sbin/service iptables save
# iptables-save > /etc/sysconfig/iptables
# /etc/init.d/iptables restart

17. Some locale translating issues..

cPanel >> New Account Setup

Value in MB or 0 for [output,url,_1,unlimited,class,action_link].

Parse Failed
Can't use string ("Cpanel::Locale") as a HASH ref while "strict refs" in use at /usr/local/cpanel/Cpanel/CPAN/Locale/Maketext.pm line 717.

18. Another one
cPanel >> New Email Account Setup
Create Account
Do you wish to configure the account to work with a mail client (Outlook, Mail.app)?
Yes

Now to translating,
If the available options are not compatible with your application, you will need to use the [output,strong,Manual Settings] information.
Parse Failed
Can't use string ("Cpanel::Locale") as a HASH ref while "strict refs" in use at /usr/local/cpanel/Cpanel/CPAN/Locale/Maketext.pm line 717.

19. Locale file translation, Branding editor logos width and height.
Login WHM as reseller with all privs.
Choose locale live editor and go.
in cPanel click on branding editor, then on
change that style, eg root style.
Click on change logos
You are now able to change "Variable" language key under height and width.
This means someone has forgotten to enter width and height of cpanel default logos in there. Might be useful info for designers.

20. Live editor should have hotkey to switch on/off locale edit mode.
It is impossible to translate webdisk additional info for example.
Anyhow it is mainly ment to translate most "visible" things. Later will do background stuff in file but would be more convenient tho.

21. Getting error due to xCache.
RuntimeException(0): E_WARNING [2] xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason on line 245 in file /home/cpaneluser/public_html/CODE/libs/DomCache/DomCache.class.php, PHP 5.4.23 (Linux)
Thrown in /home/cpaneluser/public_html/CODE/libs\Dom.init.php on line 141
Show backtrace
Datetime xxx
Client ip: xxx
Ref:
Url: xxx
Show request parameters

Made me to remove and replace xCache with eAccelerator.

22. EAccelerator /tmpDSK
Now since EAccelerator uses /tmpDSK it gets full quicly even on 1.5GB
Have to resize /tmpDSK
pico /scripts/securetmp
change
my $tmpdsksize = 512000; # Must be larger than 250000
service mysql stop
service httpd stop
lsof /tmp
umount -l /tmp
umount -l /var/tmp
rm -fv /usr/tmpDSK
/scripts/securetmp

I believe for convenience there could be button under WHM status that simply asks what size you want for /tmpDSK and could make it much easier.

23. Symlink Race Condition Protection, Apache module addon blocks client sites on mainhostdomain/~username for preview reasons.
# tail -f /usr/local/apache/logs/error_log
It says error attacker blocked and how it looks like on visitor side is they simply cant see no files such as images.

24. If you enable stuff while building Apache like
Optional Fn Export
Optional Fn Import
Optional Hook Export
Optional Hook Import

you will get errors every second saying optional hook and fn until you remove them,
# tail -f /usr/local/apache/logs/error_log
Seemingly it is normal function of these things. Anyhow eating my logs, dont need them but someone does probs.

25. Seems maximum tmpDSK size cPanel supports is 4GB.

So main reason of this thread is meybe some stuff can be made more convenient.. would be happy not to bump into same issues in the future that simply take alot of time to solve on places where time is essential.

Now back to translating cPanel..
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

It's better to address each issue individually with their own thread or support ticket. Posting several issues into one thread makes it difficult to follow, and will lead to multiple discussions about various issues. I am closing this thread, but feel free to post new threads for any issues you would like addressed individually.

Thank you.
 
Status
Not open for further replies.