Solved

How TO Setup CGI on apache.

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

Title # Comments Views Activity
UNiX Script filesystem space usage Part2 54 88
How to Change Interface on Cisco IOU 11 111
LINUX ZIP - UNCOMPRESS WINDOWS PATH 3 104
Field name with special character (Ñ) in Oracle 11 94
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

820 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