Monthly Archives: May 2014

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

hp moonshot – list nodes

hpiLO-> show node list

Slot ID Proc Manufacturer Architecture Memory Power Health
—- —– ———————- ——————– —— —– ——
1 c1n1 Intel Corporation x86 Architecture 32 GB On OK
2 c2n1 Intel Corporation x86 Architecture 32 GB On OK
3 c3n1 Intel Corporation x86 Architecture 32 GB On OK
4 c4n1 Intel Corporation x86 Architecture 32 GB On OK
5 c5n1 Intel Corporation x86 Architecture 32 GB On OK
6 c6n1 Intel Corporation x86 Architecture 32 GB On OK
7 c7n1 Intel Corporation x86 Architecture 32 GB On OK
8 c8n1 Intel Corporation x86 Architecture 32 GB On OK
9 c9n1 Intel Corporation x86 Architecture 32 GB On OK
10 c10n1 Intel Corporation x86 Architecture 32 GB On OK
11 c11n1 Intel Corporation x86 Architecture 32 GB On OK
12 c12n1 Intel Corporation x86 Architecture 32 GB On OK
13 c13n1 Intel Corporation x86 Architecture 32 GB On OK
14 c14n1 Intel Corporation x86 Architecture 32 GB On OK
15 c15n1 Intel Corporation x86 Architecture 32 GB On OK
16 c16n1 Intel Corporation x86 Architecture 32 GB On OK
17 c17n1 Intel Corporation x86 Architecture 32 GB On OK
18 c18n1 Intel Corporation x86 Architecture 32 GB On OK
19 c19n1 Intel Corporation x86 Architecture 32 GB On OK
20 c20n1 Intel Corporation x86 Architecture 32 GB On OK
21 c21n1 Intel Corporation x86 Architecture 32 GB On OK
22 c22n1 Intel Corporation x86 Architecture 32 GB On OK
23 c23n1 Intel Corporation x86 Architecture 32 GB On OK
24 c24n1 Intel Corporation x86 Architecture 32 GB On OK
25 c25n1 Intel Corporation x86 Architecture 32 GB On OK
26 c26n1 Intel Corporation x86 Architecture 32 GB On OK
27 c27n1 Intel Corporation x86 Architecture 32 GB On OK
28 c28n1 Intel Corporation x86 Architecture 32 GB On OK
29 c29n1 Intel Corporation x86 Architecture 32 GB On OK
30 c30n1 Intel Corporation x86 Architecture 32 GB On OK
31 c31n1 Intel Corporation x86 Architecture 32 GB On OK
32 c32n1 Intel Corporation x86 Architecture 32 GB On OK
33 c33n1 Intel Corporation x86 Architecture 32 GB On OK
34 c34n1 Intel Corporation x86 Architecture 32 GB On OK
35 c35n1 Intel Corporation x86 Architecture 32 GB On OK
36 c36n1 Intel Corporation x86 Architecture 32 GB On OK
37 c37n1 Intel Corporation x86 Architecture 32 GB On OK
38 c38n1 Intel Corporation x86 Architecture 32 GB On OK
39 c39n1 Intel Corporation x86 Architecture 32 GB On OK
40 c40n1 Intel Corporation x86 Architecture 32 GB On OK
41 c41n1 Intel Corporation x86 Architecture 32 GB On OK
42 c42n1 Intel Corporation x86 Architecture 32 GB On OK
43 c43n1 Intel Corporation x86 Architecture 32 GB On OK
44 c44n1 Intel Corporation x86 Architecture 32 GB On OK
45 c45n1 Intel Corporation x86 Architecture 32 GB On OK

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

ispconfig – ERROR 404 – Not Found!

If you are running ispconfig + nginx + php-fpm and have such error:

FastCGI sent in stderr: “PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/www/clients/client0/webXXX/web/index.php) is not within the allowed path(s):

Fix.

You need check your nginx virtual host:

/etc/nginx/sites-enabled/100-linuxÄ—you.tk.vhost
line
fastcgi_pass = some_ip:PORT

grepp PORT /etc/php5/fpm/pool.d/webXXX.conf

/etc/init.d/nginx restart

InnoDB: Unable to lock ./ibdata1, error: 11

If you have this error:

InnoDB: using the same InnoDB data or log files.
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process

It means you have have running several mysql instances.

Fix.

killall mysqld
kill -9 `ps -aux | grep mysql | awk ‘{print $2}’ or maybe:
pgrep -u mysql | xargs kill -9

service mysqld start