title: Issue setting up Flask site
body: <p>I'm working through a short Flask <a href="http://willhaley.com/blog/flask-on-bluehost/" rel="nofollow">tutorial</a> and am having some issues. I got to the end and got a 500 Server error. If I run the .fcgi from within my virtual environment I get the message below. I don't see any errors in logs I have access to. Not really sure what the problem is.</p>
  
  <ul>
  <li>Shared host: Bluehost</li>
  <li>Python ver: 2.7.6</li>
  </ul>
  
  <p><strong>Error message</strong></p>
  
  <pre><code>(flask_hello_world) me@domain [~/public_html/projects/flask_hello_world]# python flask_hello_world.fcgi
  WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI!
  WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
  WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
  WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!
  Status: 200 OK
  Content-Type: text/html; charset=utf-8
  Content-Length: 12
  
  Hello World!
  </code></pre>
  
  <p><strong>.htaccess</strong></p>
  
  <pre><code>Options +ExecCGI
  AddHandler fcgid-script .fcgi
  RewriteEngine On
  RewriteCond %(REQUEST_FILENAME) !-f
  RewriteRule ^(.*)$ flask_hello_world.fcgi/$1 [QSA,L]
  RewriteLog rewrite.log
  RewriteLogLevel 3
  </code></pre>
  
  <p><strong>flask_hello_world.fcgi</strong></p>
  
  <pre><code>#!/path/to/python27/.virtenv/flask_hello_world/bin/python
  
  from flup.server.fcgi import WSGIServer
  from flask_hello_world_app import app as application
  
  if __name__ == '__main__':
  WSGIServer(application).run()
  </code></pre>
  
  <p><strong>flask_hello_world_app.py</strong></p>
  
  <pre><code>from datetime import datetime
  from flask import Flask
  app = Flask(__name__)
  
  @app.route('/')
  def hello_world():
      return 'Hello World!'
  
  @app.route('/the-time')
  def the_time():
       cur_time = str(datetime.now())
       return cur_time + ' is the current time!  ...YEAH!'
  
  if __name__ == '__main__':
      app.run()
  </code></pre>
  
  <p><strong>Packages Installed on <code>/.virtenv/flask_hello_world</code></strong></p>
  
  <pre><code># pip list
  Flask (0.10.1)
  flup (1.0.2)
  itsdangerous (0.23)
  Jinja2 (2.7.1)
  MarkupSafe (0.18)
  pip (1.4.1)
  setuptools (0.9.8)
  Werkzeug (0.9.4)
  wsgiref (0.1.2)
  </code></pre>