Monday, July 22, 2013

How to fix the vFabric Web Server Error - Permission denied: access to / because search permission are missing - Linux

Permission denied: access to /favicon.ico denied (filesystem path '/opt/myserver/vfabricws') because search permissions are missing on a component of the path

[Mon Jul 22 16:08:30 2013] [crit] [client 10.1.1.88] (13)Permission denied: DBM failure while logging transaction in mod_bmx_vhost
[Mon Jul 22 16:08:31 2013] [error] [client 10.1.1.88] (13)Permission denied: access to /index.html denied (filesystem path '/opt/myserver/vfabricws') because search permissions are missing on a component of the path
[Mon Jul 22 16:08:31 2013] [crit] [client 10.1.1.88] (13)Permission denied: DBM failure while logging transaction in mod_bmx_vhost

I noticed that after I upgrade the server from ERS to vFabric WS, I encountered an error which I stated above. I listed below on how to fix it.

How to fix the error:

Step 1) Check the user and group owner of the folder where you install the vFabric Web Server (i.e. ls -l ).
            Example:
[rhserver]$ ls –l /opt/myserver/vfabricws
drwxrwxr-x. 2 wadmin wsgrp 4096 Jul 22 17:02 vfabricws
            The vabfricws user owner is wadmin and groupowner is wsgrp

Step 2) Open your file conf/httpd.conf and look for the text User vfhttpd and Group vfhttpd or sometimes User nobody or Group nobody
            Example:
User vfhttpd
Group vfhttpd
Or
User nobody
Group nobody

Step 3) Change User for vfhttpd or nobody to wadmin, and change Group owner from vfhttpd or nobody to wsgrp
Example:
User wadmin
Group wsgrp

Step 4) Save the httpd.conf file.

Step 5) Restart your vfabric WS (i.e. sudo ./httpdctl stop; sudo ./httpdctl start;)

Now verify if you still getting an error in you error.log