project_key: JBPAPP6 .postinstall fails because mod_cluster.conf and mod_snmp.conf in conf.d directory are missing. I checked swiftly all platforms and its true for all of them. Just in case of Windows postinstall.httpd.bat script does not require these files, there is only expected mod_snmp.conf.in which is missing as well
I'm making these changes to the different postinstall scripts. On RHEL: #JBPAPP-9446 -sed -i -e "s:MemManagerFile cache/mod_cluster:MemManagerFile $currentDir/cache/mod_cluster:" conf.d/mod_cluster.conf +# sed -i -e "s:MemManagerFile cache/mod_cluster:MemManagerFile $currentDir/cache/mod_cluster:" conf.d/mod_cluster.conf #JBPAPP-9746 -mkdir -p $currentDir/var/cache/mod_snmp -sed -i -e "s:/var/cache/mod_snmp:$currentDir/var/cache/mod_snmp:" conf.d/mod_snmp.conf +# mkdir -p $currentDir/var/cache/mod_snmp +# sed -i -e "s:/var/cache/mod_snmp:$currentDir/var/cache/mod_snmp:" conf.d/mod_snmp.conf On Windows: mkdir var\log\httpd 2>NUL mkdir var\cache\mod_ssl 2>NUL mkdir var\cache\mod_proxy 2>NUL -mkdir var\cache\mod_snmp 2>NUL +rem mkdir var\cache\mod_snmp 2>NUL mkdir var\run 2>NUL pushd etc\httpd if not exist modules\ mklink /D modules ..\..\lib\httpd\modules @@ -61,7 +61,7 @@ for %%i in (charset.conv mime.types) do if not exist %%i nawk -f "%INSTALL_ETC_DIR%\rewriteconf.awk" "%INSTALL_TOP_DIR%" %%i.in %%i ) pushd httpd\conf -for %%i in (httpd.conf mod_snmp.conf) do ( +for %%i in (httpd.conf ) do ( if not exist %%i nawk -f "%INSTALL_ETC_DIR%\rewriteconf.awk" "%INSTALL_TOP_DIR%" %%i.in %%i ) popd On Solaris: @@ -171,7 +171,7 @@ fi createbasedir /var/log/httpd createbasedir /var/cache/mod_ssl createbasedir /var/cache/mod_proxy -createbasedir /var/cache/mod_snmp +# createbasedir /var/cache/mod_snmp createbasedir /var/lock/subsys setattributes 0700 apache $SUGID /var/cache/mod_ssl @@ -240,7 +240,7 @@ EOH do copynoreplace $f done - copynoreplace "$INSTALL_ROOT/etc/httpd/conf/mod_cluster-native.conf" +# copynoreplace "$INSTALL_ROOT/etc/httpd/conf/mod_cluster-native.conf" copynoreplace "$INSTALL_ROOT/etc/httpd/conf/httpd.conf" copynoreplace "$INSTALL_ROOT/etc/mime.types" copynoreplace "$INSTALL_ROOT/etc/sysconfig/httpd" Please let me know if other modifications are needed, meanwhile, please update manually as above. Thanks!
Changes committed, marking as resolved. Will be in ER3.
This fix makes .postinstall working, but creates greater differences between httpd in EWS 2.0 and httpd shipped with EAP 6. [~permaine] is this really intended or there should be rather created the missing configuration files as they are in EWS 2.0? Putting the missing configuration files would be from my perspective better because it lowers the difference between this two products.
Reopening till it will be determined if it should remain as it is or changed to lower differentiation between httpd in EWS 2.0 and httpd shipped with EAP 6.0.1
Link: Added: This issue relates to JBEWS-8
There are components in EWS that are not in EAP, hence, the zips will not be exactly the same as in EWS, EWS specific components should be removed. Also in EAP 6, webserver connectors and related files should be in the webserver connectors zip. I've filed JBEWS-8 (and linked this JIRA to it) so that we can fix the postinstall script to check for the existence of the file before editing it so that we can keep the postinstall without any changes in future releases.
The fix solves the problem plus see comments above
Release Notes Docs Status: Added: Not Required Writer: Added: mistysj
Verified, see comments above
Release Notes Docs Status: Removed: Not Required Writer: Removed: mistysj Docs QE Status: Removed: NEW