To try to narrow down where my error is I executed my *.fcgi file.  Please 
see below.  I still get Error 500 when visiting the domain.  How do these 
parameters get set?


[~/public_html]# ./dispatch.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: 303 SEE OTHER
Content-Type: text/html; charset=UTF-8
Location: /web2py/welcome/default/index
Content-Length: 73

You are being redirected <a href="/web2py/welcome/default/index">here</a>





On Monday, March 24, 2014 12:56:44 PM UTC-7, RTBS wrote:
>
> When I used your commands, I got python2.6 in my virtualenv.
>
> ====================
>
> To specify python2.7, rather than python2.6, in the virtualenv see below.
> In my example '/home/<USER>/python' == '<path to your new virtualenv>'
>
> 1) 
> virtualenv -p /usr/local/bin/python2.7 <path to your new virtualenv>
>
> 2) 
> source <path to your new virtualenv>/bin/activate
>
> 3) 
> pip install flup
>
> 4) 
> deactivate
> This is the command to leave your virtualenv.  To re-enter, use the 
> command in #2.
> ====================
>
> My project does not load (Error 500).  From reading this forum, I think 
> these are the required steps.  Is this correct?
>
> 1. create a virtualenv and install flup
> 2. create a file '.htaccess' in the 'public_html' directory
>       2.1 edit content in /home4/<USER>/public_html/.htaccess
> 3. create a file 'index.fcgi' in the public_html' directory
>       3.1 edit content in /home4/<USER>/public_html/index.fcgi
> 4. make the index.fcgi file executable (I used cpanel 'File Manager' to 
> set the permissions on this file to 755)
> 5. Download the source code for web2py from the web2py website.
>    http://www.web2py.com/examples/static/web2py_src.zip
>       5.1 FTP or SCP the zip file to your /home4/<USER> directory
>       5.2 Use the unzip command to put web2py at /home4/<USER>/web2py
> 6. Copy the 'routespatterns.example.py' file from 
> /home4/<USER>/web2py/examples to /home4/<USER>/web2py
>       6.1 rename the file 'routes.patterns.example.py' to 'routes.py'
>       6.2 edit content in /home4/<USER>/web2py/routes.py
>
> ====================
>
> I sent a ticket to their support team about utilizing mod_wsgi or fcgi, 
> knowing that web2py would not be supported.  Will this even work with the 
> 'Hatchling' package?  Perhaps I am wasting my time and need to change 
> hosting providers.
>
> From my support ticket:
> Currently, our Reseller and Shared plans (Hatchling, Baby, and Business) 
> are set up with suPHP, and would require an upgrade if you needed to use a 
> different handler. We have Apache 2.2 and 2.4 available for our VPS and 
> Dedicated servers, and Apache 2.2 for our shared environment.
>
> In order to use fcgi or mod_wsgi, it is required that you upgrade to 
> either a VPS or a Dedicated server solution. Both of these packages allow 
> for custom configuration of nearly any aspect of your server, and give you 
> full control over your software. 
>
> Any pointers would be appreciated. Thanks!
>
> On Friday, January 31, 2014 9:36:47 AM UTC-8, desta wrote:
>>
>> I am writing to update this method. We have followed the instructions 
>> included above but we kept getting an internal server error 500.
>>
>> The problem was that we had no experience how virtualenv works! So first 
>> you need to create one with the following command:
>> virtualenv /home/<USER>/python
>>
>> The problem was here, that this virtualenv missing the flup module. So to 
>> install you first need to run
>> source /home/<USER>/python/bin/activate
>>
>> and then run
>>
>> pip install flup
>>
>>
>> After that, it should work. Make sure you run the instructions from the 
>> previous posts.
>>
>> I hope this helps someone.
>>
>> On Wednesday, April 17, 2013 8:28:07 PM UTC+3, Diogo Munaro wrote:
>>>
>>> Thx man! You help me a lot!!
>>>
>>> Em sábado, 14 de maio de 2011 01h21min13s UTC-3, José Eloy escreveu:
>>>>
>>>> Hello! 
>>>>
>>>> Recently a customer bought a hosting plan (business) with hostgator. 
>>>> I'm developing for him a web2py application, I have doubts of how to 
>>>> deploy it. Somebody can help me? The application runs well in 
>>>> localhost (ubuntu). 
>>>>
>>>> Thanks in advance 
>>>>
>>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to