简体   繁体   English

httpd重新启动错误:Apache

[英]httpd restart error : Apache

When I tried to restart httpd, I am getting below error. 当我尝试重新启动httpd时,出现以下错误。

[admin@stg-001 ~]$ /apps/apache/bin/httpd -k restart 

httpd: Syntax error on line 114 of /apps/apache/conf/httpd.conf: Cannot load /apps/apache/modules/mod_ssl.so into server: libssl.so.1.0.0: cannot open shared object file:
No such file or directory 没有相应的文件和目录
Server version: Apache/2.2.21 (Unix) 服务器版本: Apache/2.2.21 (Unix)

Please help me to resolve the error. 请帮助我解决错误。

Try the following command, which shows required modules which are missing. 尝试以下命令,该命令显示缺少的必需模块。

ldd (apache_home_dir)/modules/mod_ssl.so

Will produce something like: 会产生类似:

linux-vdso.so.1 =>  (0x00007ffc61f7a000)        
libssl.so.1.0.0 => not found
libcrypto.so.1.0.0 => not found
librt.so.1 => /lib64/librt.so.1 (0x00007f71c9666000)

Below Fix Worked for me: 以下Fix对我有用:

export LD_LIBRARY_PATH=/path_to_openssl/lib/

or try 或尝试

export LD_LIBRARY_PATH=/path_to_openssl/

Ref: http://www.linuxquestions.org/questions/showthread.php?s=2bcf368edb2a95bce9e538e8db2aed76&p=5605966#post5605966 参考: http : //www.linuxquestions.org/questions/showthread.php? s = 2bcf368edb2a95bce9e538e8db2aed76&p = 5605966# post5605966

Why not read the error message? 为什么不阅读错误消息?

Check that the line 114 of /apps/apache/conf/httpd.conf is syntatically correct 检查/apps/apache/conf/httpd.conf的第114行在语法上是否正确

Check that the file /apps/apache/modules/mod_ssl.so exists 检查文件/apps/apache/modules/mod_ssl.so是否存在

You might want to check that libssl is indeed installed on your server with the proper version. 您可能想检查libssl是否确实以正确的版本安装在服务器上。 You can check in /var/lib (depends on you OS) 您可以检入/ var / lib(取决于您的操作系统)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM