Skip to main content

I just had this happen to me. Kind of a n00b move, but hey. It happens =)

Ran this:

[root@oamserver ~]# /opt/apps/oracle/Middleware/Oracle_WG1/webgate/apache/tools/setup/InstallTools/EditHttpConf -f /etc/httpd/conf/httpd.conf -oh /opt/apps/oracle/Middleware/Oracle_WG1/ -w /opt/apps/oracle/Middleware/webgateInstance/ -ws apache

And I got this:
Error: You are not authorized to configure this web server

Let’s not talk about why this is being run as root right now =)

Anyway, before you run the EditHttpConf command for your OAM 11g webgate, you need to edit the httpd.conf file and make sure the User and Group are the same as the installation of the webgate. So for my example, the user and group are both oracle.

Save and rerun:

[root@oamserver ~]# /opt/apps/oracle/Middleware/Oracle_WG1/webgate/apache/tools/setup/InstallTools/EditHttpConf -f /etc/httpd/conf/httpd.conf -oh /opt/apps/oracle/Middleware/Oracle_WG1/ -w /opt/apps/oracle/Middleware/webgateInstance/ -ws apache
The web server configuration file was successfully updated
/etc/httpd/conf/httpd.conf has been backed up as /etc/httpd/conf/httpd.conf.ORIG

BAM!