Find the answer to your Linux question:
Results 1 to 2 of 2
I have cgi file helloworld.cgi in /usr/local/apache2/htdocs folder: #!/usr/bin/perl print "Content-type: text/html", "\n\n"; # MIME header. print "Hello World"; I want to run this script on firefox with address: http://localhost/helloworld.cgi ...
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    3

    How to run CGI in localhost (Fedora Core 7)

    I have cgi file helloworld.cgi in /usr/local/apache2/htdocs folder:

    #!/usr/bin/perl
    print "Content-type: text/html", "\n\n"; # MIME header.
    print "Hello World";

    I want to run this script on firefox with address: http://localhost/helloworld.cgi
    But i didn't how to configure apache to run it. Please help me to solve this problem.

  2. #2
    Just Joined! vigol's Avatar
    Join Date
    Jun 2008
    Location
    Uns Cigano from Vigol
    Posts
    24
    I don't know what's the problem?
    1- default path of CGI
    or
    2-Apache not runnung
    ?
    if the problem is related to Apache Running, try it :
    1. /etc/rc.d/apache2 status
    2. if result != "running" then :
    /etc/rc.d/apache2 start

    you'll see "done" result

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •