Transport Layer Security module fails to load - apache

I am using Ubuntu 12.04 LTS, and Apache 2.4.
I've installed TLS by following the steps on this link: https://help.ubuntu.com/community/GnuTLS
When restarting Apache I get the following error:
apache2: Syntax error on line 212 of /etc/apache2/apache2.conf:
Syntax error on line 1 of /etc/apache2/mods-enabled/gnutls.load:
Cannot load /usr/lib/apache2/modules/mod_gnutls.so into server:
/usr/lib/apache2/modules/mod_gnutls.so: undefined symbol: unixd_config
If I remove the #gnutls.conf file from the /etc/apache2/mods-enabled directory Apache restarts.
What is causing the module not to load?

Your level of mod_gnutls isn't aware of Apache 2.4, one breaking change in 2.4 is the symbol unixd_config is replaced by ap_unixd_config. There will probably be a slew of similar issues.

Related

Apache http server, Solaris 8

While starting the apache http server, I am getting the below error:
httpd: Syntax error on line 67 of /isgwtld/lsam/apache/conf/httpd.conf: Cannot load modules/mod_wl_22.so into server: ld.so.1: httpd: fatal: relocation error: file /isgwtld/lsam/apache/modules/mod_wl_22.so: symbol unixd_set_global_mutex_perms: referenced symbol not found
Configuration used currently:
OS: Solaris 8
APACHE HTTP SERVER : 2.4.27
weblogic: 10.3.0
Probably you are using an old version of the module or a mod_wl module compiled for an older httpd version (2.0 or 2.2).
In my case, I solved using an updated mod_wl version compiled for apache 2.4.

module pcntl already loaded in unknown on line 0

After installation pcntl encounters an error while running tests (make test)
Module 'pcntl' already loaded in unknown on line 0
Thus on many forums the same - comment out in the *.ini files row
Disable_functions =
pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl
I found it in the file /etc/php5/apache2/php.ini, commented out, restart apache2, did not help. Restarting the server does not help.
How do I fix this error?
ubuntu 14.04
apache 2.4.7
php5 5.5.9

Error on apache start: Could not open configuration file /etc/apache2/mods-enabled/proxy_scgi.load

In ubuntu server when I try to start apache it gives following error message.
apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/proxy_scgi.load: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
What is the reason for the error? And how can I get through this issue?
This issue can be fixed by enabling the proxy_scgi module. Following is the command to enable the module in linux.
sudo a2enmod proxy_scgi

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

Configuration http not running after installing mod_jk.so

I installed: mod_jk-1.2.31-httpd-2.2.x.so
When restart httpd after updateing mod_jk
/sbin/service http stop
ERROR:
httpd: syntax error on line 30 of /usr/local/apache/conf/httpd.conf: syntax error on line 2 of /usr/local/apache/conf.d/mod_jk.conf: cannot load /usr/local/apache/modules/mod_jk.so into server: /usr/local/apache/modules/mod_jk.so: wrong ELF class: ELFCLASS32
Found the correct compiled version for 64bit system.