Lightty config:

server.modules += ("mod_fastcgi")
fastcgi.debug = 1
$HTTP["url"] !~ "^/static" {
fastcgi.server = ( "" => ((

        "bin-path" => "/srv/web2py/fcgihandler.py",

        "check-local" => "disable",

        "socket" => "/tmp/web2py.sock",
        "max-procs" => 4
)))
}



The source of fcgihandler.py and gluon/contrib/gateways/fcgi.py is what it 
is from https://mdipierro.pythonanywhere.com/examples/static/web2py_src.zip 
link.
version when I downloaded it is: Version 
2.17.2-stable+timestamp.2018.10.06.18.54.02

I did remove the bindAddress='/tmp/fcgi.sock' from the fcgi.WSGIServer 
line.  But as I mention it works flawlessly when run against python 2.7

I don't have the errors handy but a quick glance through gateways/fcgi.py 
will quickly reveal a great many problems.  0L is no longer valid syntax in 
Python3 and is in several places.  Several of the imports are also not 
valid.
The errors that occur first are the invalid syntax with both the Long 
designation on numeric values and then in many exception lines.  I can 
setup the Python3 stuff and get the stack but I think it's not necessary.

Please advise.

On Tuesday, November 20, 2018 at 6:15:57 PM UTC-6, 黄祥 wrote:
>
> perhaps you can show the error logs and the configuration
>
> best regards,
> stifan
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to