Solved

How TO Setup CGI on apache.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sudo logging 5 80
linux  centos   virtualization network quetion 6 75
Using Grep to Find a file 8 85
cron job says it ran, no results 25 114
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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 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…

911 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

24 Experts available now in Live!

Get 1:1 Help Now