Solved

How TO Setup CGI on apache.

Posted on 1998-11-02
1
401 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
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

809 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