无法启动Apache服务器[apache-2.2.29]

时间:2015-04-02 02:48:40

标签: apache tomcat

我已在我的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

1 个答案:

答案 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, 阿尼尔