in reply to Re: Display the data passed from php
in thread Display the data passed from php

Yes the contents are displayed instead of output. Should I specify the path of cgi-bin where it is installed. Cgi-bin directory is in /var/www/cgi-bin which is the path of the server.

Replies are listed 'Best First'.
Re^3: Display the data passed from php
by moritz (Cardinal) on Aug 20, 2007 at 10:39 UTC
    With Apache you can configure any directory to serve perl CGI scripts, but you have to do that manually. (And you have to add the executable flag for the script).

    The apache doc is quite good, and there are many tutorials on the web.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^3: Display the data passed from php
by Gangabass (Vicar) on Aug 20, 2007 at 11:09 UTC

    The simplest way is to move the file to /var/www/cgi-bin and make it executable by doing

    $chmod +x mail_contact.pl

      Is there any other way to execute. In the configuration # To use CGI scripts outside of ScriptAliased directories: # (You will also need to add "ExecCGI" to the "Options" directive.) # #AddHandler cgi-script .cgi pl Should this be uncommented so that the script works
        If the script isn't in cgi-bin you have to do that, yes.