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*

Then simply add your vhost directives:

*ServerAdmin "y...@yourdomain.com"
> DocumentRoot /var/www/vhosts/yourdomain.com/httpdocs/web2py
> SetHandler python-program
> PythonHandler modpythonhandler
> PythonPath \"['/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
/etc/init.d/httpd graceful*




On Sat, Jan 21, 2012 at 8:32 PM, Ben Tammetta <b...@clubelite.com> 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]

Reply via email to