Showing posts with label HTTP server. Show all posts
Showing posts with label HTTP server. Show all posts

Monday, 25 August 2014

Permission denied: make_sock: could not bind to address 0.0.0.0:80 in Oracle http server


Error getting from OHS log

[2014-08-25T17:26:27.000+06:00] [ohs1] [UNKNOWN] [] [console] [host: istelar.localdomain] [nwaddr: 192.168.10.210] /u01/oracle/middleware/Oracle_FRHome1/ohs/bin/apachectl startssl: execing httpd
[2014-08-25T17:26:27.000+06:00] [ohs1] [UNKNOWN] [] [console] [host: istelar.localdomain] [nwaddr: 192.168.10.210] Start process
[2014-08-25T17:26:27.992+06:00] [OHS] [ERROR:32] [OHS-9999] [core.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22974] [tid: 140343298516800] [userId: oracle] [VirtualHost: main]  Unable to open logs
[2014-08-25T17:26:27.992+06:00] [OHS] [INCIDENT_ERROR:20] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22974] [tid: 140343298516800] [userId: oracle] [VirtualHost: main]  no listening sockets available, shutting down
[2014-08-25T17:26:27.992+06:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22974] [tid: 140343298516800] [userId: oracle] [VirtualHost: main] (13)Permission denied:  make_sock: could not bind to address 0.0.0.0:80
[2014-08-25T17:26:27.992+06:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22974] [tid: 140343298516800] [userId: oracle] [VirtualHost: main] (13)Permission denied:  make_sock: could not bind to address [::]:80
[2014-08-25T17:26:29.000+06:00] [ohs1] [UNKNOWN] [] [console] [host: istelar.localdomain] [nwaddr: 192.168.10.210] /u01/oracle/middleware/Oracle_FRHome1/ohs/bin/apachectl startssl: execing httpd
[2014-08-25T17:26:29.000+06:00] [ohs1] [UNKNOWN] [] [console] [host: istelar.localdomain] [nwaddr: 192.168.10.210] Start process
[2014-08-25T17:26:29.047+06:00] [OHS] [ERROR:32] [OHS-9999] [core.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22978] [tid: 139745400321856] [userId: oracle] [VirtualHost: main]  Unable to open logs
[2014-08-25T17:26:29.047+06:00] [OHS] [INCIDENT_ERROR:20] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22978] [tid: 139745400321856] [userId: oracle] [VirtualHost: main]  no listening sockets available, shutting down
[2014-08-25T17:26:29.047+06:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22978] [tid: 139745400321856] [userId: oracle] [VirtualHost: main] (13)Permission denied:  make_sock: could not bind to address 0.0.0.0:80
[2014-08-25T17:26:29.047+06:00] [OHS] [INCIDENT_ERROR:32] [OHS-9999] [worker.c] [host: istelar.localdomain] [nwaddr: 192.168.10.210] [pid: 22978] [tid: 139745400321856] [userId: oracle] [VirtualHost: main] (13)Permission denied:  make_sock: could not bind to address [::]:80

Solution:

Step1: Go to /u01/oracle/middleware/Oracle_FRHome1/ohs/bin location

Step2: Check the permission of .apachectl file permission

[oracle@istelar bin]$ ls -l .apachectl
-rwxr-x--- 1 oracle oinstall 465658 Oct 27 2009 .apachectl 

Step3: Change the permission of .apachectl file

[root@istelar bin]# chown root .apachectl
[root@istelar bin]# chmod 6750 .apachectl

[oracle@istelar bin]$ ls -la .ap*
-rwsr-s--- 1 root oinstall 13278 Nov 19  2011 .apachectl

[oracle@istelar bin]$

Step4: Now start the /u01/stelar11g/Script/OPMN.sh service

Step5: Now check the log