Jul
2009
Getting Ruby to work on a Plesk server
I was always wanting to get Ruby scripts to run on my Plesk server, so after a bit of researching, I was able to do this through the use of mod_ruby, a slight modification to Apache’s httpd.conf file and adding some changes to the domain’s vhost.conf file.
Installation of mod_ruby can be found here: http://wiki.modruby.net/en/?InstallGuide
The section where it tells you to add the IfModule stuff needs to go into the domain’s vhost.conf file. The LoadModule line needs to get added to the area where all of your modules are defined in your server’s httpd.conf file.
*EDIT – I forgot to mention that when editing your vhost.conf file, you will need to run Plesk’s reconfigurator tool and restart Apache in order for the changes to take effect. The reconfigurator tool is located at /usr/local/psa/admin/sbin/websrvmng. You can either pass the -a and -v flags to reconfigure all sites or you can specify the specific site itself.