Apache mod_ssl could not be loaded - apache

Trying to enable the mod_ssl module on Apache 2.4.25, I get the following error:
httpd: Syntax error on line 129 of /ld01/otsweb/build/apache/httpd24.conf: Cannot load modules/mod_ssl.so into server: \t0509-022 Cannot load module /usr/local/apache24/modules/mod_ssl.so.\n\t0509-150 Dependent module libssl.so could not be loaded.\n\t0509-022 Cannot load module libssl.so.\n\t0509-026 System error: A file or directory in the path name does not exist.\n\t0509-022 Cannot load module /usr/local/apache24/modules/mod_ssl.so.\n\t0509-150 Dependent module /usr/local/apache24/modules/mod_ssl.so could not be loaded.
Line 129 is the LoadModule ssl_module modules/mod_ssl.so line in the httpd.conf file.
I have the same configuration running correctly on another server. That server does not have a libssl.so file on it, yet Apache with SSL is running.
Apache was configured with: (OpenSSL version is 1.0.2k from openssl.org)
./configure --enable-mods-shared="proxy proxy_http" --enable-auth-digest --enable-ssl --with-ssl=/usr/local/ssl/bin
Has anyone seen this same error?

With the release of OpenSSL 1.0.2l we decided to reinstall Apache from scratch, and everything is working correctly. A clean install of both seems to have cleared out the problem.

Related

Can't locate API module structure `config_log_module'

I have just installed Fedora 25 on my Raspberry Pi, and I have installed Apache using the command dnf install httpd.
I have then enabled the service: systemctl enable httpd.service.
Then started the service: service httpd start.
This fails and when I check the log using systemctl status httpd.service I see the following message:
httpd: Syntax error on line 214 of /etc/httpd/conf/httpd.conf: Can't locate API module structure `config_log_module'
[EDIT]: and line 214 of /etc/httpd/conf/httpd.conf reads:
LoadModule config_log_module modules/mod_log_config.so
The issue being that this file does exist - so I do not understand why it is failing for this reason?
It would help if you paste the line 214 of your config file to make sure, but it seems you are using an incorrect module identifier.
The correct module identifier for mod_log_config is log_config_module and not config_log_module as API the config complains about.
LoadModule log_config_module modules/mod_log_config.so
is there the "mod_log_config.so" file in address : "/etc/httpd/modules/mod_log_config.so" ?
what is the out put of this command on your httpd server :
ls -l /etc/httpd/modules/mod_log_config.so
seems this module does not exist.

Mod_wsgi - configuration failed

I am trying to install mod_wsgi using with apache2 but i cant:
I placed the mod_wsgi.so file in C:\Apache24\modules directory
In httpd conf file
1) when i try to LoadModule wsgi_module modules/mod_wsgi.so and restart apache then apache cannot be started - I get an error "The requested operation has failed"
2) when i remove the previous line and add "WSGIScriptAlias /myapp C:/wsgi-scripts/myapp.wsgi" i get the same error
reinstalled python for all users and this resolved itself, I must have installed python on windows for "just me" before

Where did my apache module get installed

I'm trying to get Crowd Apache Connector working. I've installed the modules. If I do a yum info it tells me that it's installed. If I do httpd -M it's listed as a shared module. However, it's not in apache/modules/
When I try the LoadModule in the pre main include, I get the error that it cannot load it into the server because it doesn't exist.
The error after trying to load the module:
Configuration problem detected on line 1 of file /usr/local/apache/conf/includes/pre_main_global.conf.tmp: : Cannot load /usr/local/apache/modules/mod_authnz_crowd.so into server: /usr/local/apache/modules/mod_authnz_crowd.so: cannot open shared object file: No such file or directory --- /usr/local/apache/conf/includes/pre_main_global.conf.tmp --- 1 ===> LoadModule authnz_crowd_module modules/mod_authnz_crowd.so <=== 2LoadModule authz_svn_crowd_module modules/mod_authz_svn_crowd.so --- /usr/local/apache/conf/includes/pre_main_global.conf.tmp ---
I figured it out. After reinstalling it, I checked the httpd.conf file and found that it was installing it to:
/usr/lib64/httpd/modules/mod_authnz_crowd.so
Knowing that I was able to get it working.

Apache server httpd exiting with error

Team,
I am trying to start httpd
$# service httpd start
Starting httpd: httpd: Syntax error on line 162 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf.d/proxy_ajp.conf: Cannot load /etc/httpd/modules/mod_proxy_ajp.so into server: /etc/httpd/modules/mod_proxy_ajp.so: undefined symbol: proxy_module
[FAILED]
Process got exiting as per above.
I am running this in RHEL 5.2 server.
I am new to httpd / apache .Please let me know how to debug this ?
Many Thanks,
-Rishal
First place to look, make sure the following exists in the httpd.conf file:
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
Remember the file mod_proxy.so must exist and contain the necessary permissions.
If it doesn't work, are you able to copy in the contents of your proxy_ajp.conf? It maybe useful to see line 162 (and surroundings) of your httpd.conf file too .

Apache2 cannot load mod_tile

I had installed mod_tile and apache2 and tile server worked without problem. after that i installed php5.5.3. it changed all file structures of apache2 conf. i think something has changed. "LoadModule tile_module"had been removed from the config file. I added it in new apache2.conf file. but now when i restart apache it shows this message:
apache2: Syntax error on line 141 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/mod_tile.conf: Cannot load /usr/lib/apache2/modules/mod_tile.so into server: /usr/lib/apache2/modules/mod_tile.so: undefined symbol: unixd_set_global_mutex_perms
Action 'configtest' failed.
and this is /etc/apache2/mods-enabled/mod_tile.conf
LoadModule tile_module /usr/lib/apache2/modules/mod_tile.so