Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

hello Monks,
i am using perl with apache server installed on my computer
i have created seperate cgi program and html files and i placed the cgi files in the cgi-bin folder in apache folder
where should i place the html files
i also placed the html files in the same directory where the cgi files exists
and i declared the path of the cgi files in the action part of the html files
but i am not able to run it
it is giving me error
can i know the reason and where should i place the html files so that i can run the on my computer
thanks

Replies are listed 'Best First'.
Re: where sould i place the html files
by KurtSchwind (Chaplain) on Dec 05, 2007 at 02:07 UTC

    Open your httpd.conf file in your favourite editor and look for DocumentRoot.

    On 95% of the systems out there, DocumentRoot will point to some directory called 'htdocs' somewhere on your system. At one point, some linux distros went with 'html' instead. But httpd.conf never lies.

    --
    I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.
Re: where sould i place the html files
by tuxz0r (Pilgrim) on Dec 05, 2007 at 00:47 UTC
    This depends on how your CGI program accesses the .html files; but, typically they are in whatever the document root directory is as defined in your httpd.conf (/var/www/html or some such). If you could tell us a little more about how the CGI programs access the HTML files and vice-versa, plus info on how Apache is installed (what OS, is this a personal 'public_html' directory or the global doc root?), etc., we could probably offer a little more help.

    ---
    s;;:<).>|\;\;_>?\\^0<|=!]=,|{\$/.'>|<?.|/"&?=#!>%\$|#/\$%{};;y;,'} -/:-@[-`{-};,'}`-{/" -;;s;;$_;see;
    Warning: Any code posted by tuxz0r is untested, unless otherwise stated, and is used at your own risk.

Re: where sould i place the html files
by tachyon-II (Chaplain) on Dec 05, 2007 at 01:18 UTC

    htdocs

    If you did a default install then the HTML goes into the folder "htdocs". This is at the same level as the cgi-bin folder.