If you are using Cloudlinux cPanel and have some problems with phpmyadmin: error token mismatch
You need check users tmp folder permissions. like this:
ls -lad /home/username/tmp
It should be chmod 755 /home/username/tmp
If you are using Cloudlinux cPanel and have some problems with phpmyadmin: error token mismatch
You need check users tmp folder permissions. like this:
ls -lad /home/username/tmp
It should be chmod 755 /home/username/tmp
/scripts/proxydomains –user=
/scripts/proxydomains –domain=
yum install memcached
service memcached start or maybe: systemctl start memcached.service
pecl install memcache
systemctl restart httpd.service
If you want install from source:
wget http://pecl.php.net/get/memcache
cd memcache*
phpize
./configure
make && make install
echo “extension=memcache.so” >> /your_path/php.ini
If you have huge mail queue.
Fix.
vi /etc/exim.conf
smtp_accept_queue_per_connection = 60
service exim restart
exim -v -qff
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
If you got this error, you should check your databases like mysql for crashed tables.
mysqlcheck -c mysql
mysqlcheck -r mysql
Also its useful to review your log files like:
tailf /usr/local/cpanel/logs/error_log
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
/scripts/killacct username
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@
User this command if your server have different SSH port.
root@OLD[~]#rsync –progress –stats -avz –rsh=’ssh -p5093′ cpmove-user.tar.gz root@
Once transfer completed goto NEW server SSH and restore account.
root@NEW[~]#/scripts/restorepkg oldcpuser
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.
vi ~/.bashrc
if [ $(expr index “$-” i) -eq 0 ]; then
return
fi
If you are running whm with cloudlinux it works:
php=`su – cpanel_username -s /bin/bash -c “php -v | grep ^PHP | cut -d”.” -f1-2″ | awk ‘{print $2}’`
su – cpanel_username -s /bin/bash -c “echo disable_functions=mail >> /etc/cl.php.d/alt-php$php/custom_php.ini”
/scripts/rebuildhttpdconf && service httpd restart
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
/scripts/dnscluster synczone linux4you.tk
SSL redirection can be found in WHM control panel -> Tweak Settings -> Redirection