Ticket #150 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Fails to build under F18 (new Apache release)

Reported by: shaiton Owned by: webmaster
Priority: major Milestone:
Component: General Keywords:
Cc: trasher Blocked By:


The actual websites can't be built under Fedora 18 as there were some modules renamed/removed/replaced.

Here is what I get after some cleaning (adding a new module and removing the not found ones):

diff --git a/fedoraproject.org/httpd/conf/httpd.conf.in b/fedoraproject.org/httpd/conf/httpd.conf.in
index e4b416a..7e9fd9b 100644
--- a/fedoraproject.org/httpd/conf/httpd.conf.in
+++ b/fedoraproject.org/httpd/conf/httpd.conf.in
@@ -145,21 +145,22 @@ Listen 5000
 # Example:
 # LoadModule foo_module modules/mod_foo.so
+LoadModule mpm_prefork_module /etc/httpd/modules/mod_mpm_prefork.so
 LoadModule auth_basic_module /etc/httpd/modules/mod_auth_basic.so
 LoadModule auth_digest_module /etc/httpd/modules/mod_auth_digest.so
 LoadModule authn_file_module /etc/httpd/modules/mod_authn_file.so
-LoadModule authn_alias_module /etc/httpd/modules/mod_authn_alias.so
+#LoadModule authn_alias_module /etc/httpd/modules/mod_authn_alias.so
 LoadModule authn_anon_module /etc/httpd/modules/mod_authn_anon.so
 LoadModule authn_dbm_module /etc/httpd/modules/mod_authn_dbm.so
-LoadModule authn_default_module /etc/httpd/modules/mod_authn_default.so
+#LoadModule authn_default_module /etc/httpd/modules/mod_authn_default.so
 LoadModule authz_host_module /etc/httpd/modules/mod_authz_host.so
 LoadModule authz_user_module /etc/httpd/modules/mod_authz_user.so
 LoadModule authz_owner_module /etc/httpd/modules/mod_authz_owner.so
 LoadModule authz_groupfile_module /etc/httpd/modules/mod_authz_groupfile.so
 LoadModule authz_dbm_module /etc/httpd/modules/mod_authz_dbm.so
-LoadModule authz_default_module /etc/httpd/modules/mod_authz_default.so
-LoadModule ldap_module /etc/httpd/modules/mod_ldap.so
-LoadModule authnz_ldap_module /etc/httpd/modules/mod_authnz_ldap.so
+#LoadModule authz_default_module /etc/httpd/modules/mod_authz_default.so
+#LoadModule ldap_module /etc/httpd/modules/mod_ldap.so
+#LoadModule authnz_ldap_module /etc/httpd/modules/mod_authnz_ldap.so
 LoadModule include_module /etc/httpd/modules/mod_include.so
 LoadModule log_config_module /etc/httpd/modules/mod_log_config.so
 LoadModule logio_module /etc/httpd/modules/mod_logio.so
@@ -192,7 +193,7 @@ LoadModule proxy_http_module /etc/httpd/modules/mod_proxy_http.so
 LoadModule proxy_connect_module /etc/httpd/modules/mod_proxy_connect.so
 LoadModule cache_module /etc/httpd/modules/mod_cache.so
 LoadModule suexec_module /etc/httpd/modules/mod_suexec.so
-LoadModule disk_cache_module /etc/httpd/modules/mod_disk_cache.so
+#LoadModule disk_cache_module /etc/httpd/modules/mod_disk_cache.so
 #LoadModule file_cache_module /etc/httpd/modules/mod_file_cache.so
 #LoadModule mem_cache_module /etc/httpd/modules/mod_mem_cache.so
 LoadModule cgi_module /etc/httpd/modules/mod_cgi.so

We need to figure out the new name of the missing modules, and update the config accordingly. Be aware that our builders are under RHEL and NEEDS the old config.


httpd.conf.in (18.7 KB) - added by shaiton 4 years ago.
new conf file

Change History

comment:1 Changed 4 years ago by elad

comment:2 Changed 4 years ago by trasher

I did not see there were an already opened ticket about that issue (see my comment in ticket #154).

comment:3 Changed 4 years ago by trasher

  • Cc trasher added

comment:4 Changed 4 years ago by robyduck

Before closing this ticket please remember to revert the 'important note' which has been inserted for Apache 2.4 on the wiki page 'How to fix bugs..'


comment:5 Changed 4 years ago by shaiton

some more update http://paste.stg.fedoraproject.org/2607/

the diff http://paste.stg.fedoraproject.org/2608/

I should have done this too fast, it gives me a simple "error".c

comment:6 Changed 4 years ago by robyduck

Ok, I write down some tests I did this morning, hope they can be useful:

  • Access Control: OK
  • MaxRequestsPerChild? has to be renamed in MaxConnectionsPerChild? (not blocking)
  • MaxClients? has to be renamed in MaxRequestWorkers? (not blocking)
  • DefaultType? has to be used with other configuration settings, or it has to be se to none
  • KeepAlive?: OK
  • mod_authn_default and mod_authz_default have been removed!
  • mod_authn_core has to be reconfigured, apache 2.4 can't check the user
  • Some modules have been commented out:
    • mod_mem_cache: we have to use mod_cache_disk !
    • mod_file_cache commented out !

I can't test this building the pages on my F17, can anyone do it for me? Thx

Last edited 4 years ago by robyduck (previous) (diff)

Changed 4 years ago by shaiton

new conf file

comment:7 Changed 4 years ago by shaiton

I just added a new configuration file, which runs fine with root previleges. There should be some more SELinux context to set up. If anyone know this, please help ;)

comment:8 Changed 4 years ago by shaiton

  • Status changed from new to closed
  • Resolution set to fixed

Fixed now. I kept the old config file on the tree and a quick test on the Makefile to use the right one. Will need to be removed for F20 as we won't maitain the old apache release.

Fixed only on the master branch.

See http://git.fedorahosted.org/cgit/fedora-web.git/commit/?id=6385bcb22ce91c6735b516a1ac9d174961bf12a9

Note: See TracTickets for help on using tickets.