【发布时间】:2014-02-15 18:11:06
【问题描述】:
在我的 Cent OS 机器上手动升级 PHP 和 MySQL 然后登录到我的 Plesk 管理面板后,我在尝试执行大量任务时收到以下错误。 PHP 和 MySQL 本身就可以正常运行。
New files of configuration for Apache web server were not built due to errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = [unixODBC][Driver Manager]Can't open lib '/usr/lib64/libmyodbc3.so' : /usr/lib64/libmyodbc3.so: cannot open shared object file: No such file or directory. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click here to retry generating broken configuration or click here to retry generating of all configurations.
我在以下文件中找到了 ODBC 配置详细信息:
/etc/odbcinst.ini
内容如下:
# Driver from the MyODBC package
# Setup from the unixODBC package
[MySQL]
Description = MySQL driver for Plesk
Driver = /usr/lib64/libmyodbc3.so
Setup =
FileUsage = 1
Driver64 = /usr/lib64/libmyodbc3.so
Setup64 =
UsageCount = 1
我希望必须更新 Driver 和 Driver64 参数以反映 MySQL 升级时发生的更改,但是我无法找到相应驱动程序的路径,现在我已经无法理解了。非常欢迎任何建议。
更新:“# locate libmyodbc3”不返回任何结果。
【问题讨论】: