Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 896674

Summary: Solaris .postinstall.httpd script fails to configure OPTIONS for apachectl
Product: [JBoss] JBoss Enterprise Web Server 2 Reporter: bmorriso
Component: httpdAssignee: Weinan Li <weli>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0.0CC: jawilson, jclere, lfuka, majoshi, mhasko, mhusnain
Target Milestone: ---   
Target Release: 2.0.1   
Hardware: sparc64   
OS: Solaris   
Whiteboard:
Fixed In Version: 2.0.1 Doc Type: Bug Fix
Doc Text:
The post-installation script included in <filename>jboss-ews-httpd-2.0.0-sun10.sparc64.zip</filename> incorrectly configured the <parameter>OPTIONS</parameter> parameter in the <filename>apachectl</filename> script. As a result, installing httpd in a directory other than the default directory (<filename class="directory">/opt/jboss-ews-2.0/</filename>), <filename>apachectl</filename> fails to launch httpd as it cannot locate the <filename>httpd.conf</filename> file. The following error message is displayed: <screen>httpd.worker: Could not open configuration file /opt/jboss-ews-2.0/etc/httpd/conf/httpd.conf: No such file or directory</screen> A fix is added to JBoss Enterprise Web Server 2.0.1. As a result, httpd locates the configuration files in <filename class="directory">$INSTALL_DIR/jboss-ews-2.0/etc/httpd/conf/</filename> and is launched successfully.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-03 12:58:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description bmorriso 2013-01-17 17:55:14 UTC
Description of problem:
The postinstall script included in jboss-ews-httpd-2.0.0-sun10.sparc64.zip doesn't correctly configure the OPTIONS parameter in the apachectl script. If a user installs httpd in a directory other than the default (/opt/jboss-ews-2.0/) then apachectl will fail to launch httpd since it can't locate httpd.conf.

Version-Release number of selected component (if applicable):


How reproducible:
Consistently

Steps to Reproduce:
1. unzip jboss-ews-httpd-2.0.0-sun10.sparc64.zip to a non-default directory (eg /app)
2. Run the .postinstall.httpd script located at $INSTALL_DIR/jboss-ews-2.0/etc
3. Run "apachectl start" as root from $INSTALL_DIR/jboss-ews-2.0/sbin
  
Actual results:
Launching fails with message:
./apachectl start
httpd.worker: Could not open configuration file /opt/jboss-ews-2.0/etc/httpd/conf/httpd.conf: No such file or directory

Expected results:
httpd locates the configuration files in $INSTALL_DIR/jboss-ews-2.0/etc/httpd/conf/, and launches.

Additional info:
apachectl is still configured to expect the OPTIONS parameter, so you can manually add it back and everything works as expected.

Comment 1 Mandar Joshi 2013-05-16 13:21:59 UTC
Added Doc text.

@Mladen, can you please review the Doc Text content??

Comment 2 Mladen Turk 2013-05-16 13:53:11 UTC
This has been fixed in the git. A version with the fix has already been built although too late for the ER1. I don't think we need this doc.

Comment 3 Libor Fuka 2013-06-07 10:45:02 UTC
Verified with EWS 2.0.1 CR1 on Solaris SPARC

Comment 4 Libor Fuka 2013-06-07 11:23:28 UTC
Verified with EWS 2.0.1 CR1 on Solaris 11 Intel 32/64bit

Comment 5 Jean-frederic Clere 2013-06-14 09:48:39 UTC
It is on all solaris zip files in fact.