让cPanel的phpMyAdmin支持.zip导入

之前在 Knownhost 的 VPS 用 cPanel,也用过 DirectAdmin,这两种面板里 phpMyAdmin 在导入 SQL 数据的时候,都支持上传 .zip 附件:

phpMyAdmin Import

现在搬家到了 Servint 的 VPS,phpMyAdmin面板里面,可以把 SQL 数据导出为 .zip,却不能以 .zip 格式导入,仅支持原始 .sql 和 .gzip。搬家的时候敢时间没怎么研究,最近正在整 demo 站,有大量的 SQL 操作,winrar 貌似不支持把文件压缩成 .gzip,直接上传 .sql 吧又让畸形的 ADSL 很受伤...实在忍不下去了。

让 phpMyAdmin 支持 .zip 导入的解决方案,适用于 cPanel 用户,编辑:

/var/cpanel/easy/apache/profile/makecpphp.profile.yaml

找到:

Cpanel::Easy::PHP5::Zip: 0=0

修改为:

Cpanel::Easy::PHP5::Zip: 1

保存退出,如果发现这个值已经是 1,那就不要动,退出编辑。

cd /var/cpanel/easy/apache/profile/
chattr +i makecpphp.profile.yaml
/scripts/makecpphp

屏幕信息刷刷的走...完成之后,可以:

chattr -i makecpphp.profile.yaml

然后去 phpMyAdmin 面板看看吧,这下该支持 .zip 导入了吧。

LAMP

Email: i at onepx dot com || QQ: ⑧九零三④幺 || 微信: onepxcom
©2023 一像素 蜀ICP备13026576号-2 网站地图