in reply to Re: apache2 start up after installing
in thread apache2 start up after installing

thanx but uploads can be done by cgi as well as from perl, and i want to know about perl. and i know the upload script, i just want the form to be seen at localhost..
  • Comment on Re^2: apache2 start up after installing

Replies are listed 'Best First'.
Re^3: apache2 start up after installing
by MidLifeXis (Monsignor) on May 01, 2012 at 13:06 UTC

    marto has provided links in Re^3: apache2 start up after installing that may prove to be very helpful. It appears that you need to understand some of the basics of how web applications work. Perhaps even something at http://w3schools.com or similar would be helpful.

    The fact that a web script is written in perl is of no consequence. It is how the web script interacts with the web server that makes it CGI or mod_perl or plack. Modules like Apache2, CGI, and plack can help your script interface with the server, but until you grasp the basic architecture of what the httpd server, the CGI script, and the browser / client each do, it may be difficult to make use of those.

    --MidLifeXis

      ok so what is the easy website to learn apache2

        Do you want to learn mod_perl2 (perl bindings into Apache2.x), how to manage the Apache 2.x server, or how to write applications for the web (mod_perl, cgi, and plack are but three technologies for doing this)?

        Your question, as it stands, is ambiguous, and I am not certain that you know what you are asking.

        --MidLifeXis

Re^3: apache2 start up after installing
by zentara (Cardinal) on May 01, 2012 at 14:55 UTC
    You need to put your Perl scripts in the cgi-bin of the apache2 webserver. Google for "ubuntu cgi-bin location" and you will get all the answers you need. There is an apache configuration file, which specifies where the cgi-bin is, and what file extensions like .pl are recognized. Although it is possible to set it up so that cgi scripts can be run from the html root directory, it is very seldom done for security reasons. You can load an image or html page from html-root, but scripts are generally confined to a cgi-bin directory.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh