Log in as the superuser.
su
Change to the virtual server directory.
cd vs_dir
Create the cgi-bin directory.
mkdir cgi-bin
chown user:group cgi-bin
chmod 755 cgi-bin
Now you can set the virtual server’s CGI directory, user, and group in one of these ways:
Use the dir, user, and group parameters of the send-cgi Service SAF in the obj.conf file, see the Sun Java System Web Server 6.1 SP11 Administrator’s Configuration File Reference.
Enter this information using the Settings page in the Preferences tab of the Virtual Server Manager, see the Sun Java System Web Server 6.1 SP11 Administrator’s Guide.