+ Reply to Thread
Results 1 to 2 of 2
Like Tree2Likes
  • 1 Post By DanielB
  • 1 Post By daman371

Thread: Python Outside cgi-bin

  1. #1
    DanielB's Avatar
    DanielB is offline x10Hosting Member DanielB is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    9

    Python Outside cgi-bin

    Is it possible to have python scripts outside the cgi-bin, and still get them to run, much like a php script would?
    karimirt47 likes this.

  2. #2
    daman371 is offline x10 Sophmore daman371 is an unknown quantity at this point
    Join Date
    Nov 2006
    Location
    Louisiana
    Posts
    130

    Re: Python Outside cgi-bin

    Assuming you have the shebang, #!/usr/bin/python, line at the beginning of your script, you can change the extension of the file to .cgi and use the following in htaccess.

    Code:
    AddType application/x-httpd-cgi .pl
    AddHandler cgi-script .py
    dinomirt96 likes this.

+ Reply to Thread

Similar Threads

  1. Replies: 5
    Last Post: 07-10-2009, 03:30 AM
  2. MySQLdb on Python
    By hardbyte in forum Free Hosting
    Replies: 0
    Last Post: 11-25-2008, 02:03 AM
  3. Python / MySQLdb
    By Korexio in forum Free Hosting
    Replies: 9
    Last Post: 11-29-2007, 08:29 AM
  4. Python/.htaccess help
    By *Face in forum Free Hosting
    Replies: 6
    Last Post: 09-21-2007, 01:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers