Tag Archives: cPanel

PHP Fatal error: Call to undefined function PMA_generate_common_hidden_inputs()

If you can’t access phpmyadmin from cPanel panel, you can fix it by checking active mysql process list.

This error look like this:

PHP Fatal error: Call to undefined function PMA_generate_common_hidden_inputs() in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/plugins/auth/AuthenticationCpanel.class.php on line 213

cPanel remove cloudlinux on Centos

yum remove liblve-devel
wget http://repo.cloudlinux.com/cloudlinux/sources/cln/centos2cl
sh centos2cl -c

rpm -e –nodeps kernel-2.6.32-379.5.1.lve1.1.9.6.1.el6.x86_64 kernel-headers-2.6.32-379.5.1.lve1.1.9.6.1.el6.x86_64 kernel-2.6.32-379.9.1.lve1.1.9.7.1.el6.x86_64 kernel-firmware-2.6.32-379.9.1.lve1.1.9.7.2.el6.noarch kernel-2.6.32-379.9.1.lve1.1.9.7.2.el6.x86_64

yum install kernel kernel-headers
yum update

yum remove lve liblve lve-utils lve-stats
/scripts/easyapache –build

Also I found this script:
/usr/local/cpanel/bin/cloudlinux_system_install -c

cPanel account transfer on command line

Login your Old server SSH via root user and use these commands.

root@OLD[~]#cd /home
root@OLD[~]#/scripts/pkgacct

Once package account process completed, You can view backup file like cpmove-cpuser.tar.gz

Transfer account to another NEW server using RSYNC or SCP commands.

root@OLD[~]#rsync -avz –progress /home/cpmove-cpuser.tar.gz root@:/home

User this command if your server have different SSH port.

root@OLD[~]#rsync –progress –stats -avz –rsh=’ssh -p5093′ cpmove-user.tar.gz root@:/home/

Once transfer completed goto NEW server SSH and restore account.

root@NEW[~]#/scripts/restorepkg oldcpuser

cpanel block domain for sending emails

touch /etc/blockeddomains
echo “domain.com” >> /etc/blockeddomains
WHM > Exim Configuration Editor > Advanced Editor

domainlist blocked_domains = lsearch;/etc/blockeddomains

#route
democheck:
driver = redirect
require_files = “+/etc/demouids”
condition = “${if eq {${lookup {$originator_uid} lsearch {/etc/demouids} {$value}}}{}{false}{true}}”
allow_fail
data = :fail: demo accounts are not permitted to relay email

reject_domains:

driver = redirect
# RBL Blacklist incoming hosts
domains = blocked_domains
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.

configuring PHP and suEXEC command line suphp

Usage: /usr/local/cpanel/bin/rebuild_phpconf [–dryrun] [–no-restart] [–no-htaccess]
[–current|–available]
–dryrun : Only display the changes that would be made
–no-restart : Don’t restart Apache after updating the php.conf link
–no-htaccess : Don’t update user configurable PHP mime mapping.
–current : Show current settings
–available : Show available handlers and PHP SAPIs
: Version of PHP to set as default handler for .php files
<PHP# Handler> : Type of Apache module to use in serving PHP requests
: enabled, disabled, 1 or 0

/usr/local/cpanel/bin/rebuild_phpconf 5 cgi cgi 1