An error occurred while starting the web application: it did not write a startup response in time. Please read this article for more information about this problem.
Raw process output:
!> Ready
!> socket: main;unix:/tmp/passenger.1.0.22131/generation-1/backends/wsgi.17327;session;1
!>
#!/usr/bin/env python# -*- coding: utf-8 -*-
"""This file is part of the web2py Web FrameworkCopyrighted by Massimo Di Pierro <mdip...@cs.depaul.edu>License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
This is a WSGI handler for ApacheRequires apache+mod_wsgi.
In httpd.conf put something like:
LoadModule wsgi_module modules/mod_wsgi.so WSGIScriptAlias / /path/to/wsgihandler.py
"""
# change these parameters as requiredLOGGING = FalseSOFTCRON = False
import sysimport osINTERP = '/home/myusername/env/web2py-env/bin/python2.7'if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv)os.chdir(path)
if not os.path.isdir('applications'): raise RuntimeError('Running from the wrong folder')
sys.path = [path] + [p for p in sys.path if not p == path]
sys.stdout = sys.stderr
import gluon.main
if LOGGING: application = gluon.main.appfactory(wsgiapp=gluon.main.wsgibase, logfilename='httpserver.log', profiler_dir=None)else: application = gluon.main.wsgibase
if SOFTCRON: from gluon.settings import global_settings global_settings.web2py_crontype = 'soft'Raw process output:
!> Ready
!> socket: main;unix:/tmp/passenger.1.0.26057/generation-0/backends/wsgi.26544;session;1
!>
#!/usr/bin/env python# -*- coding: utf-8 -*-
"""This file is part of the web2py Web FrameworkCopyrighted by Massimo Di Pierro <mdip...@cs.depaul.edu>License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
This is a WSGI handler for ApacheRequires apache+mod_wsgi.
In httpd.conf put something like:
LoadModule wsgi_module modules/mod_wsgi.so WSGIScriptAlias / /path/to/wsgihandler.py
"""
# change these parameters as requiredLOGGING = FalseSOFTCRON = False
import sysimport os
path = '/home/myusername/official-notebook.com/web2py/'os.chdir(path)
if not os.path.isdir('applications'): raise RuntimeError('Running from the wrong folder')
sys.path = [path] + [p for p in sys.path if not p == path]
sys.stdout = sys.stderr
import gluon.main
if LOGGING: application = gluon.main.appfactory(wsgiapp=gluon.main.wsgibase, logfilename='httpserver.log', profiler_dir=None)else: application = gluon.main.wsgibase
if SOFTCRON: from gluon.settings import global_settings global_settings.web2py_crontype = 'soft'<IfModule mod_passenger.c>
PassengerEnabled OffPassengerRoot /dh/passengerPassengerMaxPoolSize 4PassengerPoolIdleTime 1200PassengerMaxPreloaderIdleTime 3600PassengerMaxInstancesPerApp 2PassengerMaxRequests 400PassengerRuby /usr/bin/ruby1.8PassengerPython python
</IfModule>
!> Ready
!> socket: main;unix:/tmp/passenger.1.0.29231/generation-0/backends/wsgi.5541;session;1
!>
Not 'PassengerPython python'. In your old code with the INTERP command, you were specifically trying to use /home/myusername/env/web2py-env/bin/python2.7 as Python interpreter. So you need to specify 'PassengerPython /home/myusername/env/web2py-env/bin/python2.7'.
Sent from my Android phone.
I removed the passenger_wsgi.pyc file, edited the PassengerPython in my httpd.conf file to "PassengerPython python"<IfModule mod_passenger.c>PassengerEnabled OffPassengerRoot /dh/passengerPassengerMaxPoolSize 4PassengerPoolIdleTime 1200PassengerMaxPreloaderIdleTime 3600PassengerMaxInstancesPerApp 2PassengerMaxRequests 400PassengerRuby /usr/bin/ruby1.8PassengerPython python</IfModule>same result
!> Ready !> socket: main;unix:/tmp/passenger.1.0.29231/generation-0/backends/wsgi.5541;session;1 !>
is there another way.
On Saturday, 23 August 2014 19:04:34 UTC, Hongli Lai wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/c846b243-b6ee-41cf-9dc9-df199b016c9b%40googlegroups.com.