LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   c program cant run in www/cgi-bin (https://www.linuxquestions.org/questions/linux-software-2/c-program-cant-run-in-www-cgi-bin-480505/)

g-mey 09-05-2006 01:57 AM

c program 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);
}

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

reddazz 09-05-2006 02:46 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 05:25 PM.