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.
Related
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.
I'm trying to run a simple lua script on my Apache server (version 2.4.23).
I followed these instructions and added the next line to my apache2.conf:
LuaMapHandler / /path/to/lua/script.lua my_lua_handler
when restarting my server I'm getting this output:
AH00526: Syntax error on line 146 of /etc/apache2/apache2.conf:
Invalid command 'LuaMapHandler', perhaps misspelled or defined by included in the server configuration
As far as I read the mod_lua is already available from version 2.3
What am I missing?
You probably need to load the module:
LoadModule lua_module modules/mod_lua.so
and/or enable it using
a2enmod lua
I was required to update php5.3 to php5.5, which also resulted in upgrading httpd2.2 to httpd2.4. Now after i upgraded my httpd isn't starting, throwing error
/etc/httpd/conf/httpd.conf: Cannot load modules/mod_authn_default.so
/etc/httpd/conf/httpd.conf: Cannot load modules/mod_authz_default.so
/etc/httpd/conf/httpd.conf: Cannot load modules/mod_ldap.so
/etc/httpd/conf/httpd.conf: Cannot load modules/mod_authnz_ldap.so
/etc/httpd/conf/httpd.conf: Cannot load modules/mod_disk_cache.so
I commented the lines from httpd.conf which resulted to these
Starting httpd: AH00534: httpd: Configuration error: No MPM loaded.
I when to '00-mpm.conf' inside conf.modules.d and comment every mpm module but that didn't work. Also I did look at http://httpd.apache.org/docs/2.4/upgrading.html but couldn't figure out what changes are to be done.
Can any one suggest me a link to load this modules. Since no package is there I cannot install modules using yum install mod_name.
Apache httpd has 3 choices for MPM, and you have to select one.
You should not comment out all lines in 00-mpm.conf.
mpm_prefork is recommended if you use mod_php .
For example in your 00-mpm.conf,
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
I'm getting this when I upgrade to Yosemite:
$ apachectl configtest
AH00526: Syntax error on line 102 of /private/etc/apache2/httpd.conf:
Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration
and on line 102:
User _www
Any suggestions?
Add following line in apache httpd.conf (Default path : /private/etc/apache2/httpd.conf)
LoadModule unixd_module libexec/apache2/mod_unixd.so
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 .