Solved

How TO Setup CGI on apache.

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now