cd /home/hmkcreative
virtualenv --no-site-packages envy
./bin/pcreate -s starter myapp
cd myapp
../bin/python setup.py install
made pyramid.wsgi file under envp
with the following
from pyramid.paster import get_app
application = get_app(
'/home/hmkcreative/envp/myapp/production.ini', 'main')
Changed the permission on pyramid.wsgi file.
I copied the config file
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mysite
sudo a2dissite default && sudo a2ensite mysite
sudo /etc/init.d/apache2 restart
Now the problem.
I get 500 internal server error when I access http://<ip address>/myapp
Right now, I don't know how to fix it or where to turn to.
The following is more detailed information.
If you can help me, I would really appreciate it.
Thank you for your input.
Edward
Here's the error log
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] mod_wsgi (pid=1823, process='pyramid', application=''): Failed to parse WSGI script file '/home/hmkcreative/envp/pyramid.wsgi'.
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] mod_wsgi (pid=1823): Exception occurred processing WSGI script '/home/hmkcreative/envp/pyramid.wsgi'.
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] File "/home/hmkcreative/envp/pyramid.wsgi", line 1
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] fromm pyramid.paster import get_app
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] ^
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] SyntaxError: invalid syntax
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] File does not exist: /home/hiro/envp/favicon.ico
The following is my mysite config file
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] File "/home/hmkcreative/envp/pyramid.wsgi", line 1
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] fromm pyramid.paster import get_app
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] ^
[Wed Feb 29 22:36:37 2012] [error] [client 192.168.0.5] SyntaxError: invalid syntax
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.