in reply to running cgi scripts locally

Well, I'm running Suse 9.1 at the moment. And perl is of course already installed. So, I have to install a web server on my local machine before I can test these scripts out?
Gulp. How do I do that?

Replies are listed 'Best First'.
Re^2: running cgi scripts locally
by Joost (Canon) on May 24, 2005 at 11:41 UTC
    Installing apache on suse is quite easy if you use the apache rpms that come with it. The only tricky part (if you've never done that) is probably going to be configuring apache in such a way that you can easily write & run cgi scripts from your development directory (probably in your homedir).

    I've got the following entry in my (apache 1.3) configuration:

    # # UserDir: The name of the directory which is appended onto a user's h +ome # directory if a ~user request is received. # <IfModule mod_userdir.c> UserDir public_html # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # <Directory /home/*/public_html> AllowOverride All AddHandler perl-script .cgi Options All +ExecCGI <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Order deny,allow Deny from all </Limit> </Directory> </IfModule>

    Which means that every user's "public_html" directory in their homedir is accessible as http://localhost/~username/ and that files ending in .cgi will be run as cgi scripts.

Re^2: running cgi scripts locally
by gellyfish (Monsignor) on May 24, 2005 at 11:21 UTC

    In all probability you already have apache installed on the machine, if not you should be able to install the appropriate package from the installation medium using YaST or whatever SuSE use as a package manager these days.

    /J\