Results 1 to 2 of 2
Like Tree3Likes
  • 1 Post By bienvenidoainternet
  • 2 Post By masshuu

Thread: [FastCGI] Is it enabled? 500 error when trying to run python FCGI script

  1. #1
    bienvenidoainternet is offline x10Hosting Member
    Join Date
    Mar 2010
    Posts
    1

    Question [FastCGI] Is it enabled? 500 error when trying to run python FCGI script

    Hello, I have a free hosting account on x10hosting and I'd like to know if it's possible to run a FCGI script. I'm trying to run a test script but I get a 500 error.

    I'm using this fcgi wrapper: http://svn.saddi.com/py-lib/trunk/fcgi.py
    And this is the script:

    Code:
    #!/usr/bin/env python
    
    from fcgi import WSGIServer
    
    def app(env, start):
        start('200 OK', [('Content-Type', 'text/plain')])
        yield 'Hello!\n'
        yield '\n'
    
    WSGIServer(app).run()
    Normal python works for me but I get a 500 error when trying to run this. Why is that? (I'm trying to run it from cgi-bin with permission on 755)

    Thank you.
    dinomirt96 likes this.

  2. #2
    masshuu's Avatar
    masshuu is offline Head of the Geese
    Join Date
    Oct 2007
    Location
    Las Colinas, Tx
    Posts
    2,286

    Re: [FastCGI] Is it enabled? 500 error when trying to run python FCGI script

    i just tried to import it, and using my script, got an error:
    Code:
    try:
      from fcgi import WSGIServer
      print "fcgi moduel Loaded"
    except Exception as inst:
      print "Error:", inst
    Code:
    Error: No module named fcgi
    If you want, you can suggest that x10 add the module in the Suggestions forum
    Last edited by masshuu; 04-12-2010 at 11:47 AM.
    verlmirt17 and karimirt47 like this.
    Just leading the flock.
    Livewire
    Masshuu ------ carl6969
    descalzo ------------------- Smith6612
    Bryon--------------------------------- Corey
    If you find any post helpful or useful, duck
    \ / This for that post and rep it up.

Similar Threads

  1. perl/python error
    By kdmqforforum in forum Scripts, 3rd Party Apps, and Programming
    Replies: 0
    Last Post: 05-09-2009, 11:24 PM
  2. Python script simply won't run!
    By matrixsquare in forum Scripts, 3rd Party Apps, and Programming
    Replies: 6
    Last Post: 04-01-2009, 08:40 AM
  3. Delete Error Logs script error D:
    By Shadow121 in forum Scripts, 3rd Party Apps, and Programming
    Replies: 0
    Last Post: 06-29-2008, 08:39 PM
  4. Replies: 3
    Last Post: 04-03-2008, 04:47 PM
  5. Does anyone script in Python?
    By sekinto in forum Off Topic
    Replies: 11
    Last Post: 11-04-2007, 03:22 AM

Tags for this Thread

Posting Permissions

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