I need some packages installed on the server to deploy my webapp for the 'Package statistics' project for GSoC'11. Please do the needful. Reproducible: Always The packages required are : dev-db/mysql =dev-lang/python-2.* (These are already installed) dev-python/mysql-python dev-python/webpy (These need to be installed) I also need a mysql user account and a database with all permissions granted for the user (the sql code is in server/sql/setup.sql). create database gentoostats; grant all on gentoostats.* to 'gentoo'@'localhost' identified by 'gentoo';
Database is created. Packages will be installed by cfengine at the next pass. Auth details for MySQL are in vulture:/home/vikraman/mysql-password
Created attachment 276403 [details] /etc/apache2/modules.d/70_mod_wsgi.conf I need to deploy the webapp. It's written using webpy and can be deployed using mod_wsgi on apache. I have attached the wsgi config from my computer, the app being deployed on /var/www/gentoostats
I have a better idea: put the code in your homedir and only the wsgi in /var/www/gentoostats. That way you'll be able to update it whenever you want (eg with git pull)
Created attachment 278685 [details] main.py Here's the wsgi handler to be put into /var/www/gentoostats
(In reply to comment #4) > Created attachment 278685 [details] > main.py > > Here's the wsgi handler to be put into /var/www/gentoostats That's not the actual path you get. But your app is now configured to be served at http://soc.dev.gentoo.org/gentoostats However it seems your app doesn't work? 1. OperationalError: (1045, "Access denied for user 'gentoo'@'localhost' (using password: YES)"). That's NOT the user+password I gave you. 2. Your app seems to be dependant on adding a trailing slash to that URL. Please fix that.
> However it seems your app doesn't work? > 1. OperationalError: (1045, "Access denied for user 'gentoo'@'localhost' (using > password: YES)"). That's NOT the user+password I gave you. > 2. Your app seems to be dependant on adding a trailing slash to that URL. > Please fix that. I have fixed teh issues. However, apache needs to be restarted to reload the wsgi script.
Okay, I now need dev-python/matplotlib for my plots.
Configured for deploy via cfengine, check the box in 30-60 minutes and it will be there.
Also apache isn't reloading properly, just by touching the wsgi, the webapp displays random stuff at different times.
restart should be fixed, and your python package is there
Please reopen the bug if you need something else since GSoC 2011 is long over.