Article ID: 114393, created on Jul 23, 2012, last review on Aug 12, 2014

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 11.5 for Windows

问题

PPlesk 服务团队已经为 phpMyAdmin 升级到 3.4.10.2 版本的脚步准备了所有的安全更新。该脚本可用于安装有 10.2.x, 10.3.x and 10.4.x  版本的服务器

注意:如果您升级 Plesk 到低于 11.0.9 的版本,会再次安装 phpMyAdmin 旧版本。因此我们建议您升级到最新的可用 Plesk 版本或如以下说明再次执行 phpMyAdmin 升级。

要求

phpMyAdmin 3.4.10.2 需要 MySQL 5.0.15 或更新版本

解决方案

1. 创建 phpMyAdmin 当前版本的备份:
# DUMP_D=`cat /etc/psa/psa.conf | grep DUMP_D| head -1 | awk {'print $2'}`
# mkdir $DUMP_D/Old_phpMyAdmin
# PRODUCT_ROOT_D=`cat /etc/psa/psa.conf | grep PRODUCT_ROOT_D | head -1 | awk {'print $2'}`
# cp -r $PRODUCT_ROOT_D/admin/htdocs/domains/databases/phpMyAdmin $DUMP_D/Old_phpMyAdmin/
# PHPMYADMINDB=`mysql -uadmin -p\`cat /etc/psa/.psa.shadow \` -e 'show databases like "phpmyadmin%"' | tail -1`
# mysqldump -uadmin -p`cat /etc/psa/.psa.shadow ` $PHPMYADMINDB > $DUMP_D/Old_phpMyAdmin/phpmyadmin_db.dump
 
2. 下载带有新版本 phpMyAdmin (md5sum c32ede2c9159801f74d8d1b002a7041e for file phpmyadmin_3_4_10.tar.gz) 与安装脚本 (md5sum 9a51e8da4a59252a73cae0b879ea408c for file pma10_install.sh) 的存档:
# cd /usr/local/psa/var/
# wget http://kb.sp.parallels.com/Attachments/20990/Attachments/phpmyadmin_3_4_10.tar.gz
# wget http://kb.sp.parallels.com/Attachments/20990/Attachments/pma10_install.sh
 
3. 运行用于安装 phpMyAdmin 3.4.10.2 的安装脚本:
# chmod u+x pma10_install.sh
# ./pma10_install.sh

**** Package  scriptlet completed successfully.

 Trying to remove old phpmyadmin directory... done
 Trying to unpack new phpmyadmin version... done
 Trying to set permissions... done
===> Installing phpMyAdmin
 Trying to create pmadb... done
done
Restarting SWsoft control panels server... stale pidfile. ok

其它信息

欲了解可升级 phpMyAdmin 的其它 Plesk 版本,请查看以下文章:

Older Plesk Versions - Upgrade phpMyAdmin to version 3.4.10.2 on Plesk Linux 8.6 / 9.x
Older Plesk Versions - Upgrade phpMyAdmin to version 3.4.10.2 on Plesk Linux 10.1.x
Older Plesk Versions - Upgrade phpMyAdmin to version 3.4.10.2 on Plesk Linux 10.0.x

Attachments

56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 85a92ca67f2200d36506862eaa6ed6b8 aea4cd7bfd353ad7a1341a257ad4724a 46a8e394d6fa13134808921036a34da8 bd7fc88cf1b01f097749ae6f87272128 01bc4c8cf5b7f01f815a7ada004154a2 ed7be2b984f9c27de1d2dc349dc19c6d a766cea0c28e23e978fa78ef81918ab8 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article