[web2py] Re: wfastcgi on IIS ... no more wfastcgi.py script?

2019-07-23 Thread Dustin Esposito
How would you move a site from a python web server to IIS 8?



On Sunday, December 13, 2015 at 11:45:21 PM UTC-5, Tim Richardson wrote:
>
>
>
> On Monday, 14 December 2015 13:36:05 UTC+11, Tim Richardson wrote:
>>
>> wfastcgi is now a module on PyPi
>>
>> after installing it, the scripts directory has wfastcgi.exe and an enable 
>> executable:  wfastcgi-enable.exe
>> There is no wfastcgi.py
>>
>> However, running wfastcgi-enable.exe from an Admininistrator command 
>> prompt makes a change to IIS configuration.
>> It adds a handler for fastcgi which points to  site-packages/wfastcgi.py 
>>
>> But from IIS I get: 
>>
>>
>> HTTP Error 500.0 - Internal Server Error 
>>  scriptProcessor could not be found in  application 
>> configuration
>>
>>
>>
> OK. So I updated web.config like so:
>
>
>  
>  
>path="*"
>verb="*"
>modules="FastCgiModule"
>scriptProcessor=
> "e:\python27_32\python2.7.exe|e:\python27_32\lib\site-packages\wfastcgi.pyc"
>resourceType="Unspecified"
>requireAccess="Script" />
>  
>
> and allowed the text file to update handlers (Server node->Feature 
> Delegation -> Handler Mappings to Read/Write).
> This means that IIS will read the text file and store the configuration it 
> finds, so that I now see under the site which I call web2py 
> handlers -> Handler Mappings
>
> there is a value under Executable (optional) matching the scriptProcessor 
> value above. 
>
> Now I get 
>
> HTTP Error 500.0 - Internal Server Error  scriptProcessor could 
> not be found in  application configuration 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/7f6a2a7b-e0a7-4bcf-9b39-584f039a6139%40googlegroups.com.


[web2py] Re: wfastcgi on IIS ... no more wfastcgi.py script?

2018-02-14 Thread Pbop
For what it is worth, I have web2py deployed under IIS using the ISAPI 
recipe and web2py screams in speed. The only requirement is the code has to 
be thread safe and have not yet run into thread safe problems in how we 
deploy web2py. If it is, you will get much faster performance over fastcgi. 

On Wednesday, February 14, 2018 at 2:07:15 PM UTC-5, Marcelo Huerta wrote:
>
>
> El viernes, 18 de diciembre de 2015, 5:01:02 (UTC-3), Massimo Di Pierro 
> escribió:
>>
>> Could you put this in the book? Thanks Tim.
>>
>>
>>
> I think that in spite of your request this has not yet been updated in the 
> book. I still see a mention of a script called "wfasctgi.py" (sic), and 
> nothing about this new methodology. 
>

-- 
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.


[web2py] Re: wfastcgi on IIS ... no more wfastcgi.py script?

2018-02-14 Thread Marcelo Huerta

El viernes, 18 de diciembre de 2015, 5:01:02 (UTC-3), Massimo Di Pierro 
escribió:
>
> Could you put this in the book? Thanks Tim.
>
>
>
I think that in spite of your request this has not yet been updated in the 
book. I still see a mention of a script called "wfasctgi.py" (sic), and 
nothing about this new methodology. 

-- 
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.


[web2py] Re: wfastcgi on IIS ... no more wfastcgi.py script?

2017-04-04 Thread Johann du Preez
This helped me a lot. Thanks. Do you know if the 'scriptProcessor' can be 
set relatively?

On Monday, December 14, 2015 at 6:45:21 AM UTC+2, Tim Richardson wrote:
>
>
>
> On Monday, 14 December 2015 13:36:05 UTC+11, Tim Richardson wrote:
>>
>> wfastcgi is now a module on PyPi
>>
>> after installing it, the scripts directory has wfastcgi.exe and an enable 
>> executable:  wfastcgi-enable.exe
>> There is no wfastcgi.py
>>
>> However, running wfastcgi-enable.exe from an Admininistrator command 
>> prompt makes a change to IIS configuration.
>> It adds a handler for fastcgi which points to  site-packages/wfastcgi.py 
>>
>> But from IIS I get: 
>>
>>
>> HTTP Error 500.0 - Internal Server Error 
>>  scriptProcessor could not be found in  application 
>> configuration
>>
>>
>>
> OK. So I updated web.config like so:
>
>
>  
>  
>path="*"
>verb="*"
>modules="FastCgiModule"
>scriptProcessor=
> "e:\python27_32\python2.7.exe|e:\python27_32\lib\site-packages\wfastcgi.pyc"
>resourceType="Unspecified"
>requireAccess="Script" />
>  
>
> and allowed the text file to update handlers (Server node->Feature 
> Delegation -> Handler Mappings to Read/Write).
> This means that IIS will read the text file and store the configuration it 
> finds, so that I now see under the site which I call web2py 
> handlers -> Handler Mappings
>
> there is a value under Executable (optional) matching the scriptProcessor 
> value above. 
>
> Now I get 
>
> HTTP Error 500.0 - Internal Server Error  scriptProcessor could 
> not be found in  application configuration 
>

-- 
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.


[web2py] Re: wfastcgi on IIS ... no more wfastcgi.py script?

2015-12-18 Thread Massimo Di Pierro
Could you put this in the book? Thanks Tim.

On Sunday, 13 December 2015 23:21:47 UTC-6, Tim Richardson wrote:
>
> Ok. Some tips to a future me if I have to do this again.
>
> wfastcgi is now a module. So currently the deployment instructions in the 
> web2py book give a download link. It's not necessary any longer. But some 
> paths have changed, and the configuration process is more automated.
>  
> https://pypi.python.org/pypi/wfastcgi
>
> 1) install it with pip
>
> 2) as administrator command prompt, run the executable 
> PYTHON_ROOT/Scripts/wfastcgi-enable.exe 
> This will update your IIS config. It seems to change the FastCGI setting 
> at the server level of the config
>
> It also sends some output to standard output, as described in the readme 
> at the pypi page above.
>
> If you follow the deployment instructions in the web2py book, you will 
> have a web.config file at the root of your web2py folder. 
>
> To finish updating the IIS configuration, you could copy the settings from 
> https://pypi.python.org/pypi/wfastcgi into the web.config page. 
> This meant, for me, adding a section like this:
>
> 
>  
>path="*"
>verb="*"
>modules="FastCgiModule"
>scriptProcessor=
> "e:\python27_32\python2.7.exe|e:\python27_32\lib\site-packages\wfastcgi.pyc"
>resourceType="Unspecified"
>requireAccess="Script" />
> 
>
> I didn't have the handlers section in the existing file. The 
> scriptProcessor value involves a pipe. You can copy that value from the 
> output of step (2). 
> When IIS starts, it will read from the file and update its configuration. 
> But it can only do that if you change Feature Delegation -> Handler 
> Mappings to Read/Write. It defaults to Read, which means the server gives 
> errors at start up which look like this: "The requested page cannot be 
> accessed because the related configuration data for the page is invalid"
>
> Get that sorted, and IIS will copy into its configuration the correct 
> setting. You can observe by going to the site setting for your web2py app 
> in IIS configuration, and views Handler Mappings. There you will see a 
> handler Python FastCGI configured according to the path above. You could 
> bypass the text file and set this up in IIS settings directly, per screen 
> shot. If you have existing IIS setup, you could probably just change the 
> path. I didn't know what I was doing so I didn't take this shortcut. 
>
>
> 
>
>
>
>
>
>
>  
>

-- 
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.


[web2py] Re: wfastcgi on IIS ... no more wfastcgi.py script?

2015-12-13 Thread Tim Richardson
Ok. Some tips to a future me if I have to do this again.

wfastcgi is now a module. So currently the deployment instructions in the 
web2py book give a download link. It's not necessary any longer. But some 
paths have changed, and the configuration process is more automated.
 
https://pypi.python.org/pypi/wfastcgi

1) install it with pip

2) as administrator command prompt, run the executable 
PYTHON_ROOT/Scripts/wfastcgi-enable.exe 
This will update your IIS config. It seems to change the FastCGI setting at 
the server level of the config

It also sends some output to standard output, as described in the readme at 
the pypi page above.

If you follow the deployment instructions in the web2py book, you will have 
a web.config file at the root of your web2py folder. 

To finish updating the IIS configuration, you could copy the settings from 
https://pypi.python.org/pypi/wfastcgi into the web.config page. 
This meant, for me, adding a section like this:


 
   


I didn't have the handlers section in the existing file. The 
scriptProcessor value involves a pipe. You can copy that value from the 
output of step (2). 
When IIS starts, it will read from the file and update its configuration. 
But it can only do that if you change Feature Delegation -> Handler 
Mappings to Read/Write. It defaults to Read, which means the server gives 
errors at start up which look like this: "The requested page cannot be 
accessed because the related configuration data for the page is invalid"

Get that sorted, and IIS will copy into its configuration the correct 
setting. You can observe by going to the site setting for your web2py app 
in IIS configuration, and views Handler Mappings. There you will see a 
handler Python FastCGI configured according to the path above. You could 
bypass the text file and set this up in IIS settings directly, per screen 
shot. If you have existing IIS setup, you could probably just change the 
path. I didn't know what I was doing so I didn't take this shortcut. 








 

-- 
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.


[web2py] Re: wfastcgi on IIS ... no more wfastcgi.py script?

2015-12-13 Thread Tim Richardson


On Monday, 14 December 2015 13:36:05 UTC+11, Tim Richardson wrote:
>
> wfastcgi is now a module on PyPi
>
> after installing it, the scripts directory has wfastcgi.exe and an enable 
> executable:  wfastcgi-enable.exe
> There is no wfastcgi.py
>
> However, running wfastcgi-enable.exe from an Admininistrator command 
> prompt makes a change to IIS configuration.
> It adds a handler for fastcgi which points to  site-packages/wfastcgi.py 
>
> But from IIS I get: 
>
>
> HTTP Error 500.0 - Internal Server Error 
>  scriptProcessor could not be found in  application 
> configuration
>
>
>
OK. So I updated web.config like so:


 
 
   
 

and allowed the text file to update handlers (Server node->Feature 
Delegation -> Handler Mappings to Read/Write).
This means that IIS will read the text file and store the configuration it 
finds, so that I now see under the site which I call web2py 
handlers -> Handler Mappings

there is a value under Executable (optional) matching the scriptProcessor 
value above. 

Now I get 

HTTP Error 500.0 - Internal Server Error  scriptProcessor could 
not be found in  application configuration 

-- 
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.


[web2py] Re: wfastcgi on IIS ... no more wfastcgi.py script?

2015-12-13 Thread Tim Richardson


On Monday, 14 December 2015 13:36:05 UTC+11, Tim Richardson wrote:
>
> wfastcgi is now a module on PyPi
>
> after installing it, the scripts directory has wfastcgi.exe and an enable 
> executable:  wfastcgi-enable.exe
> There is no wfastcgi.py
>
> However, running wfastcgi-enable.exe from an Admininistrator command 
> prompt makes a change to IIS configuration.
> It adds a handler for fastcgi which points to  site-packages/wfastcgi.py 
>
> But from IIS I get: 
>
>
> HTTP Error 500.0 - Internal Server Error 
>  scriptProcessor could not be found in  application 
> configuration
>
>
And then web.config, a file in the root of the relevent web2py 
installation, needs to be changed as well.

 

-- 
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.