我已在我的7773
文件中以root身份安装了Apache并配置了端口httpd.conf
。
当我尝试启动apachectl
时,我收到以下错误:
[root@iam-dev bin]# ./apachectl -k start
httpd: Syntax error on line 420 of /home/app/apache-2.2.29/conf/httpd.conf: Syntax error on line 9 of /home/app/apache-2.2.29/conf/webgate.conf: Cannot load /home/app/Middleware/Apache22_WebgateR2PS2_Home/webgate/apache/lib/webgate.so into server: /home/app/Middleware/Apache22_WebgateR2PS2_Home/webgate/apache/lib/webgate.so: undefined symbol: nzos_GetSSLSessionID
答案 0 :(得分:0)
您需要将LD_LIBRARY_PATH env变量设置为指向/ home / app / Middleware / Apache22_WebgateR2PS2_Home / webgate / apache / lib和Apache Home lib目录。像,
export LD_LIBRARY_PATH=/home/app/Middleware/Apache22_WebgateR2PS2_Home/webgate/apache/lib:<Apache Instal Dir>/lib
此外,您可以使用以下命令找到未解析的库。
ldd home/app/Middleware/Apache22_WebgateR2PS2_Home/webgate/apache/lib/webgate.so
HTH, 阿尼尔