LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-05-2006, 01:52 AM   #1
g-mey
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Rep: Reputation: 0
gcc cant run in www/cgi-bin


Hello all,

Im new here... I have a problem on gcc... I create a simple c program as below... And copied to /var/www/cgi-bin ...
After I compile and try to run.. there is no result..
But when I copy,compile and run from /var or in root..
It was OK...

Why it cant run in cgi-bin? does it required any security setting?

=============

#include <stdio.h>

main()
{
printf("Hello World\n");
exit(0);
}

=============
 
Old 09-05-2006, 02:07 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have you had a look at the Apache docs on CGI at http://httpd.apache.org/docs/2.0/howto/cgi.html? They should explain what you need to do.

Also, please don't double post - it makes it difficult for others to search for information when posts are split across threads.
 
Old 09-05-2006, 03:27 AM   #3
g-mey
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
sorry for the double post..
i dont know which section to post..

anyway...thanks.. i'll read the docs...

to others, if you have solution.. please help..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cgi-bin Cool_Hand_Luke Linux - Newbie 3 04-02-2005 03:32 PM
CGI to work out side of cgi-bin? crashedspine Linux - Newbie 13 09-02-2004 08:49 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM
Cgi-bin Llwyd Linux - Networking 3 03-01-2003 01:46 PM
http://www.burstnet.com/cgi-bin/ads/ad7954a.cgi/3980/RETURN-CODE rverlander LQ Suggestions & Feedback 1 06-07-2002 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration