为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:dm8_20240920_x86_rh7_64
【操作系统】:uosdms 4.19.90-2403.3.0.0270.90.uel20.x86_64
【CPU】:Intel(R) Core(TM) i9-8950HK
【问题描述】*:用PHP 8.0.30版本(Zend Engine v4.0.30)分别调用达梦在安装包中提供的libphp80_dm.so和php80_pdo_dm.so,相应的PHP组件php-fpm不能启动,分别报如下错误:
PHP Fatal error: Unable to start dm module in Unknown on line 0
php-fpm.service: Main process exited, code=exited, status=254/n/a
php-fpm.service: Failed with result 'exit-code'.
Failed to start The PHP FastCGI Process Manager.
PHP Fatal error: Unable to start PDO_DM module in Unknown on line 0
php-fpm.service: Main process exited, code=exited, status=254/n/a
php-fpm.service: Failed with result 'exit-code'.
Failed to start The PHP FastCGI Process Manager.
同时,在php -info中:
PDO_DM(php80_pdo_dm.so)
PDO Driver for DM (Unknown) => enabled
DM Connection Pooling => Not supported in this build
libphp80_dm.so未报类似信息
[root@uosdms system]# more /usr/lib/systemd/system/php-fpm.service
It's not recommended to modify this file in-place, because it
will be overwritten during upgrades. If you want to customize,
the best way is to use the "systemctl edit" command.
[Unit]
Description=The PHP FastCGI Process Manager
After=syslog.target network.target
[Service]
Type=notify
EnvironmentFile=/etc/sysconfig/php-fpm
ExecStart=/usr/sbin/php-fpm --nodaemonize
ExecReload=/bin/kill -USR2 $MAINPID
PrivateTmp=true
RuntimeDirectory=php-fpm
RuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target
[root@uosdms sysconfig]# more /etc/sysconfig/php-fpm
LD_LIBRARY_PATH=:/dmroot/dbms/bin
Can work for none-pdo