Hi Bruno, i'm trying to implement your solution. The problem is the pythonpath, what exactly do mean with path to web2py? Sames as the document root?
thanks Marcel On Sunday, January 22, 2012 6:06:28 AM UTC+1, rochacbruno wrote: > > Plesk does allow overriding vhost directives and also Plesk has mod python > (verify if it is installed) > > So you can try to create or edit a vhost.conf file in the right directory; > > *sudo vim /home/www/vhosts/yourdomain.com/conf/vhost.conf > <http://yourdomain.com/conf/vhost.conf>* > > Then simply add your vhost directives: > > >> >> >> >> >> *ServerAdmin "y...@yourdomain.com <javascript:>" DocumentRoot >> /var/www/vhosts/yourdomain.com/httpdocs/web2py >> <http://yourdomain.com/httpdocs/web2py>SetHandler >> python-programPythonHandler modpythonhandlerPythonPath >> \"['/path/to/web2py/'] + sys.path\" PythonOption SCRIPT_NAME /yourappname* >> ... >> > > Then you just have to refresh Plesk's config and restart apache: > > > */usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost > --vhost-name=yourdomain.com <http://yourdomain.com> /etc/init.d/httpd > graceful* > > > > > On Sat, Jan 21, 2012 at 8:32 PM, Ben Tammetta <b...@clubelite.com<javascript:> > > wrote: > >> Hello, >> >> I have a VPS running on CentOS that comes with Plesk. It seems there >> are instructions to setup web2py with apache in the online book, but I >> am afraid making config file changes could mess up the Plesk >> management system. >> >> So can anyone provide any guidance or links to instructions to setup >> web2py to integrate smoothly with the Plesk control panel? >> >> It is great that web2py can be downloaded and running in just a couple >> of minutes.. but we need an easily to deploy solution that plays well >> with 90% of the most common hosting environments hosting providers >> provide. >> Namely Cpanel and Plesk. If this were easier to deploy in such >> environments I think we would see a whole lot more web2py >> deployments. At least in my world as I could slowly transition >> current and new client websites to a web2py setup. >> >> > > > -- > > Bruno Rocha > [http://rochacbruno.com.br] > > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.