#356 Fails to build under F18 (new Apache release)
Closed: Fixed None Opened 11 years ago by shaiton.

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.


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

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..'

https://fedoraproject.org/wiki/How_to_fix_bugs_on_the_Fedora_Project_website#Making_changes

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

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

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 ;)

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

Login to comment on this ticket.

Metadata