Ubuntu Lamp Apache2 cgi-bin

Discussion in 'Server Operation' started by networkingnub, Aug 4, 2009.

  1. networkingnub

    networkingnub New Member

    I'm very new to the whole cgi process. I followed the the tutorial for LAMP on Ubuntu from this site, and during that process I wanted to create a hello world perl/cgi program, just to learn how to set it up.

    1) Can you launch your cgi program from any directory in the browser. What I mean is can I move TEST.cgi in /this/that/directory and have it load in a browser if I know the path? Or do cgi scripts have to be in a cgi-bin to launch?

    Where is the cgi-bin in apache2 I tried in etc but it's not there? Other sites have said /var/www but I am still unsure? Is that where I put all CGI files?
     

Share This Page