Hi. First of all, sorry for not posting back, I had some unplanned issues.
Anyway, I tried the Ngnix approach (
http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh)
 
and long story short it didn't work either; same result as it did with 
cherokee on web browser:

*uWSGI Error*Python application not found 

So this is beyond the web server, something is wrong with uwsgi 
configuration but no error is displayed at uwsgi log:

# cat /var/log/uwsgi/app/web2py.log
Thu Jun 28 09:47:44 2012 - *** Starting uWSGI 1.2.3 (32bit) on [Thu Jun 28 
09:47:44 2012] ***
Thu Jun 28 09:47:44 2012 - compiled with version: 4.6.3 on 07 June 2012 
09:24:31
Thu Jun 28 09:47:44 2012 - detected number of CPU cores: 1
Thu Jun 28 09:47:44 2012 - current working directory: /
Thu Jun 28 09:47:44 2012 - writing pidfile to /run/uwsgi/app/web2py/pid
Thu Jun 28 09:47:44 2012 - detected binary path: /usr/bin/uwsgi
Thu Jun 28 09:47:44 2012 - setgid() to 33
Thu Jun 28 09:47:44 2012 - setuid() to 33
Thu Jun 28 09:47:44 2012 - your memory page size is 4096 bytes
Thu Jun 28 09:47:44 2012 - detected max file descriptor number: 1024
Thu Jun 28 09:47:44 2012 - lock engine: pthread robust mutexes
Thu Jun 28 09:47:44 2012 - uwsgi socket 0 bound to UNIX address 
/run/uwsgi/app/web2py/socket fd 3
Thu Jun 28 09:47:44 2012 - uwsgi socket 1 bound to TCP address 
127.0.0.1:9001 fd 5
Thu Jun 28 09:47:44 2012 - Python version: 2.7.3 (default, Apr 20 2012, 
23:06:40)  [GCC 4.6.3]
Thu Jun 28 09:47:44 2012 - *** Python threads support is disabled. You can 
enable it with --enable-threads ***
Thu Jun 28 09:47:44 2012 - Python main interpreter initialized at 0x8899410
Thu Jun 28 09:47:44 2012 - your server socket listen backlog is limited to 
100 connections
Thu Jun 28 09:47:44 2012 - *** Operational MODE: preforking ***
Thu Jun 28 09:47:44 2012 - added /home/www-data/web2py/ to pythonpath.
Thu Jun 28 09:47:44 2012 - mounting wsgihandler on /
Thu Jun 28 09:47:44 2012 - *** no app loaded. going in full dynamic mode ***
Thu Jun 28 09:47:44 2012 - *** uWSGI is running in multiple interpreter 
mode ***
Thu Jun 28 09:47:44 2012 - spawned uWSGI master process (pid: 6429)
Thu Jun 28 09:47:44 2012 - spawned uWSGI worker 1 (pid: 6437, cores: 1)
Thu Jun 28 09:47:44 2012 - spawned uWSGI worker 2 (pid: 6438, cores: 1)


This is what happens when I try to restart uwsgi:

# /etc/init.d/uwsgi restart
 * Restarting app server(s) uwsgi
[uWSGI] getting INI configuration from /usr/share/uwsgi/conf/default.ini
[uWSGI] parsing config file /etc/uwsgi/apps-enabled/web2py.xml
*./python_plugin.so: cannot open shared object file: No such file or 
directory*
Thu Jun 28 10:07:33 2012 - [WARNING] option "app" is deprecated: use the 
more advanced "mount" option


when in fact python_plugin.so does exist:
# list /usr/lib/uwsgi/plugins
total 128K
lrwxrwxrwx 1 root root   37 Jun 28 09:22 python_plugin.so -> 
/etc/alternatives/uwsgi-plugin-python
-rw-r--r-- 1 root root 127K Feb 20 02:08 python27_plugin.so

Any ideas?
Thanks for your time

Reply via email to