Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configure cgi for Netsaint

Status
Not open for further replies.

ady2k

Vendor
Jan 28, 2002
463
ID
I already configured part of httpd.conf like :
ScriptAlias /netsaint/cgi-bin/ /usr/libexec/netsaint/cgi/
<Directory /usr/libexec/netsaint/cgi/>
Options ExecCGI
order deny,allow
deny from all
allow from 127.0.0.1
</Directory>

Alias /netsaint/ /usr/share/netsaint/
<Directory /usr/share/netsaint/>
Options None
order deny,allow
deny from all
allow from 127.0.0.1
</Directory>
I already tried to browse : I still received error message &quot; permission denied&quot;
How can I solve the cgi problem ?
Any idea for this problem.
Because I don't have cgi programming background.
Thank you
 
This is not a cgi problem. You need to set the permissions on that directory. On some distros apache runs as user=apache and group=apache on others it's nobody. Which ever case it is, you need to make sure this user and group exist on your system. When you upload or copy a file to that dir it will have you as the owner and group so you need to chown the file and dir or chmod the permissions. For example, if you want everybody to be able to read and execute the file but only the owner(user) to be able to write, then you would use &quot;chmod 755 filename&quot;. To come up with the number, consider the table below. Read has a value of 4, write a value of 2, and execute a value of 1.

| owner | group | others|
read = 4 | X | X | X |
write = 2 | X | | |
exec = 1 | X | X | X |
---------------------------------------
total | 7 | 5 | 5 |

 
I already checked the file permission.
I still got the error message :
&quot; Forbidden
You don't have permission to access /netsaint/cgi-bin/ on this server.
Apache/1.3.23 Server at 10.10.100.250 Port 80&quot;
All the file permission have been 755.
Any idea about this problem
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top