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.
| [reply] |
ok so what is the easy website to learn apache2
| [reply] |
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.
| [reply] |
| [reply] |
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.
| [reply] |