You can choose whatever directory you like. On *nix machines it's usually on /var/www/cgi-bin, but it can be any directory you want. It might even be set-up to work by default. Try it. Stick your script into the script directory and point your browser at http://host/cgi-bin/youscript.pl, and see what happens.
Configuration of dynamic content is done via the Apache configuration file. Find your Apache conf file (httpd.conf) and edit it according to the instructions that you can find here: http://httpd.apache.org/docs/2.2/howto/cgi.html Good luck, Dp. From: Raheel Hassan [mailto:raheel.has...@gmail.com] Sent: 16 April 2009 09:17 To: Dermot Paikkos Subject: Re: how to add support of Msql and CGI in Apache Could you please tell me which directory i need to configure and what changes i need to make in which configuration file so that i can execute my CGI scripts. I have already created my CGI scripts and i am using Apache2.2.9. Kindest Regards, Raheel. On Tue, Apr 14, 2009 at 5:33 PM, Dermot Paikkos <dermot.paik...@sciencephoto.co.uk> wrote: : how to add support of Msql and CGI in Apache > > Hello, Hi > I am facing problems in executing cgi programs, on Apache web server, > can > any body tell me how i can configure my Apache server so that it can > support > CGI and Msql. I also wanted to enable ssl support in the Apache server. > Thanks in advance. The basics are: 1) Configure a directory as your cgi-bin directory*. 2) Create a basic script to excute** 3) Install from cpan DBI and DBD::mysql When you get up to stage 2, you should post back to the list with what you have and you should get some help with the rest. Good luck, Dp. * See ~/howto/cgi.html at httpd.apache.org ** perldoc CGI -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/