in reply to apache2 start up after installing

There are two steps you need to take: You need to write a perl script that does what you want, and you need to configure Apache to run that script when you call a certain URL.

For the first part, see CGI Programming from the Tutorials section. For the second part, consider the Apache documentation on setting up CGI.

Replies are listed 'Best First'.
Re^2: apache2 start up after installing
by javed (Initiate) on May 01, 2012 at 12:47 UTC
    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..

      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
      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