How to change the Web Port in EBS 12.2



As we all  know,httpd.conf configuration is managed by FMW  in R12.2, the method to change the webport is quite different in R12.2

Here are the steps to change Web Port in EBS 12.2
– Launch EM Console
http://<s_wls_admin_host>.<s_wls_admin_domain>:<s_wls_adminport>/em)

– Login as weblogic admin user (s_wls_admin_user)

– Select the webtier instance from the Web Tier drop down

– Select the Oracle HTTP server component and Advanced Configuration

– Choose httpd.conf for example

– Modify the Listen port value

– Save the changes

– Run Context File Synchronization $AD_TOP/bin/adSyncContext.pl
perl $AD_TOP/bin/adSyncContext.pl contextfile=$CONTEXT_FILE
– Manually update the $CONTEXT_FILE if old port values are still present
– Run autoconfig

– Check the value for s_login_page in the context file

– Also, context file should not have any references to old Listen port value

– Login to EBS and do some sanity testing

Here are the steps to change Web Port in EBS 12.2 to default port 80

1. Launch EM Console http://<s_wls_admin_host>.<s_wls_admin_domain>:<s_wls_adminport>/em)

2. Login as weblogic admin user (s_wls_admin_user)

3. Select the webtier instance from the Web Tier drop down

4. Select the Oracle HTTP server component and Advanced Configuration
– Choose httpd.conf
– Modify the Listen port value
# OHS Listen Port
Listen 80

5. Click apply

6. Execute the following commands as the root user on both the run file system and the patch file system.
$ chown root <FMW_HOME>/webtier/ohs/bin/.apachectl
$ chmod 6750 <FMW_HOME>/webtier/ohs/bin/.apachectl

7. Edit httpd.conf as applmgr user on both the run file system and the patch file system

Open $FMW_Home/webtier/instances/EBS_web_<instance_name>_OHS1/config/OHS/EBS_web_<instance_name>/httpd.conf
and search for tag #Group GROUP_TEMPLATE
From:
#Group GROUP_TEMPLATE
To:
Group %s_appsgroup%

Note:before change,you should confirm the value fo s_appsgroup by the following command and replace %s_appsgroup% to the value in httpd.conf
cat $CONTEXT_FILE |grep s_appsgroup
eg:
cat $CONTEXT_FILE |grep s_appsgroup
<appsgroup oa_var=”s_appsgroup” osd=”unix”>dba</appsgroup>

Before change
#Group GROUP_TEMPLATE

After change
Group dba

8. Restart HTTP services by executing the following command on the run file system:
$ sh <ADMIN_SCRIPTS_HOME>/adapcctl.sh stop
$ sh <ADMIN_SCRIPTS_HOME>/adapcctl.sh start

9. Run the following command on all application tier nodes:
perl $AD_TOP/bin/adSyncContext.pl contextfile=$CONTEXT_FILE

10. Stop AP Tier
$ sh <ADMIN_SCRIPTS_HOME>/adstpall.sh apps/<pwd>

11. Run AutoConfig on all application tier nodes.
$ sh <ADMIN_SCRIPTS_HOME>/adautocfg.sh

12. Check the value for s_login_page in the context file
cat $CONTEXT_FILE |grep s_login_page

13. Start AP Tier
$ sh <ADMIN_SCRIPTS_HOME>/adstrtal.sh apps/<pwd>

14. Log into EBS to test

Related Articles

Enabling TLS in Oracle Apps R12.2

40 question you must know about R12.2

Important Changes in Autoconfig R12.2

Service Group changes in R12.2

Login flow in R12.2 and basic troubleshooting


Leave a Reply