PhpMyAdmin Fatal error: Class 'PMA_Error'

Thanks for the suggestion, Arieh, but it's not quite what I'm looking for. As many servers as we monitor, I'm just looking for simple output we can mail ourselves automatically to check up on some details of server health without needing to run more resource intensive programs.

Jeff
 
Same error (scripts directory missing) with phpMyAdmin 3.5.1!

post output for:

ls -l /var/www/html/

Code:
total 16
-rw-r--r--  1 root    root      44 Sep 29  2011 index.html
-rwxr-xr-x  1 root    root      68 Sep 29  2011 redirect.php
lrwxrwxrwx  1 webapps webapps   19 Mar 15 04:02 roundcube -> roundcubemail-0.7.2
drwxr-xr-x 10 webapps webapps 4096 Mar 15 04:02 roundcubemail-0.7.2
lrwxrwxrwx  1 webapps webapps   19 Oct  5  2011 squirrelmail -> squirrelmail-1.4.22
drwxr-xr-x 16 webapps webapps 4096 Oct  5  2011 squirrelmail-1.4.22
lrwxrwxrwx  1 root    root      24 Oct  3  2011 webmail -> /var/www/html/roundcube/

ls -l /var/www/

Code:
total 36
drwxr-xr-x  2 root root  4096 Feb  4 11:39 build
drwxr-xr-x  2 root root  4096 Sep 29  2011 cgi-bin
drwxr-xr-x  3 root root  4096 Sep 29  2011 error
drwxr-xr-x  2 root root  4096 Sep  9  2011 htdocs
drwxr-xr-x  4 root root  4096 May  7 11:47 html
drwxr-xr-x  3 root root  4096 Sep 29  2011 icons
drwxr-xr-x 14 root root 12288 Jan 26 00:26 manual
 
Hi Arieh,

I tried
Code:
while read command percent rss; do if [[ "${command}" != "COMMAND" ]]; then rss="$(bc <<< "scale=2;${rss}/1024")"; fi; printf "%-26s%-8s%s\n" "${command}" "${percent}" "${rss}"; done < <(ps -A --sort -rss -o comm,pmem,rss | head -n 11)

And I got this:
Code:
COMMAND                   %MEM    RSS
-bash: bc: command not found
httpd                     4.6     
-bash: bc: command not found
httpd                     4.5     
-bash: bc: command not found
httpd                     4.5     
-bash: bc: command not found
mysqld                    4.2     
-bash: bc: command not found
httpd                     4.2     
-bash: bc: command not found
httpd                     4.1     
-bash: bc: command not found
httpd                     4.1     
-bash: bc: command not found
spamd                     3.5     
-bash: bc: command not found
spamd                     3.2     
-bash: bc: command not found
spamd                     3.2
 
Hi Sellerone,

this is what I got

Code:
root@123456:/usr/local/directadmin/custombuild# yum install bc -y
-bash: yum: command not found


And by doing
Code:
./build phpmyadmin

I got this:
Code:
root@123456:/usr/local/directadmin/custombuild# ./build phpmyadmin
chmod: cannot access `/var/www/html/phpMyAdmin-3.5.1-all-languages/scripts': No such file or directory
phpMyAdmin 3.5.1-all-languages installation is done.

thnx

mileZ
 
Last edited:
mmh ok thot you was on a centos box, what os are you using?

Apparently phpmyadmin has been installed correctly.

regards
 
try check which is the correct package name

apt-cache search bc

For phpmyadmin, apparently it is installed, check using

ls -l /var/www/html

Regards
 
apt-cache search bc

generates a very long list. How can I see the package name?

PhpMyAdmin is installed but I still have the error:

Code:
Fatal error: Class 'PMA_Error' not found in /var/www/html/phpMyAdmin-3.5.1-all-languages/libraries/Error_Handler.class.php on line 103

Thanks

PS: this is the best support ever :)
 
DA Staff has fixed the error on build phpmyadmin.

Here's John report:

Hello,

Are there any reports of non-functionality?
That may be a separate issue..

I've changed it to add a check:

if [ -d ${REALPATH}/scripts ]; then
chmod 000 ${REALPATH}/scripts
fi

if [ -d ${REALPATH}/setup ]; then
chmod 000 ${REALPATH}/setup
fi

as the folders don't exist in newer versions of PMA.. however, it shouldn't affect anything with regards to functionality.

Thank you,

John

Regards
 
Back
Top