Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 2 of 2

Thread: cgi questions

  1. #1
    rince is offline Registered User
    Join Date
    Oct 2001
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question cgi questions

    how can i make apache recognize my perl-scripts as cgis? my browser just displays them as plain text.
    (exec-bit set)
    (not only my scripts but also printenv and test-cgi)

  2. #2
    gigi's Avatar
    gigi is offline Registered User
    Join Date
    Apr 2001
    Location
    I don't know where I am ...
    Posts
    249
    Thanks
    0
    Thanked 0 Times in 0 Posts
    create a directory in your documents dir. in the WebServer dir called "cgi-bin".
    then turn on web sharing
    go to http://localhost/cgi-bin/YOUR-SCRIPT-HERE.cgi
    you have to have the correct permissions on the script (chmod 755 etc)

 

 

Similar Threads

  1. cgi script
    By osxmatrix in forum Unix & X11
    Replies: 9
    Last Post: February 9th, 2003, 01:17 PM
  2. Getting a CGI script to work locally on my Mac
    By simX in forum Mac OS X System & Mac Software
    Replies: 11
    Last Post: July 12th, 2002, 01:43 PM
  3. CGI Scripts...
    By martinatkinson in forum Design & Media
    Replies: 1
    Last Post: June 7th, 2002, 10:47 AM
  4. CGI script connected to database. XML.
    By brutfood in forum Software Programming & Web Scripting
    Replies: 2
    Last Post: April 11th, 2002, 10:09 AM

Bookmarks

Posting Permissions

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