Solved

How TO Setup CGI on apache.

Posted on 1998-11-02
1
413 Views
Last Modified: 2013-12-16
I have a apache installed and run on the directory /usr/local/apache/ .  The html docs root is /usr/local/apache/share/htdocs.  The cgi-bin is peer to this directory.  I just want to run the html page with the 'post' command.  However, it didn't success.  What else do I need to do .  Very ugent !!!!
0
Comment
Question by:andrewma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
turnkey earned 200 total points
ID: 1812312
andrewma:

Type the following commands(as root):
1).  cd /usr/local/apache/share/htdocs
2).  chmod 666 *
3).  cd ..
4).  cd cgi-bin
5).  chmod 755 *

That's it!  What you have done in the steps above is given read and write permissions to everyone in the htdocs directory.  You have also given read, write, execute permissions to the owner of the cgi script (this is usually the user "nobody" when using Apache) and read/execute permissions to everyone else.

Now, assuming that you are writing your "post" command (in HTML) correctly to call up the cgi, everything should process fine.

Regards,
turnkey
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question