 |
| How to use tdbengine on a virtual server managed with PLESK? |  |
 |
 |
This
tutorial was tested on Plesk 7.5.4 but it mighd work on other versions, too. Anything described here only applies for virtual servers on Linux base.
Generally you have to use SuExec to run CGI application. It has to be activated.
There is a file on the server /usr/sbin/suexec2.saved_by_psa. Copy it to suexec and set the suid-Flag.
cd /usr/sbin/
cp suexec2.saved_by_psa suexec
chmod +s suexec
Let us assume that there is a domain on the server which tdbengine
programs should be enabled for. In our example we call it simple "domain.de".
Put the tdbengine (the Linux binary) into /var/www/vhosts/domain.de/cgi-bin/ (Rights 755).
The configuration can be set in the file /var/www/vhosts/domain.de/conf/vhost.confIf it does not yet exist create a new one. Insert the following lines:
ScriptAlias /engine/ /var/www/vhosts/domain.de/cgi-bin/
AddHandler prg .prg
Action prg /engine/tdbengine
That' s all. Apache has to be restarted to activate the changes.
If the file
vhost.conf has not existed yet Plesk will have to insert it. It will be done automatically if there was made a change to the configurations on the surface of Plesk. Deactivate for example Python or Prel for the domain and immediately reactivate it again. Plesk will rewrite the configuration file and automatically insert vhost.conf. Apache will be restarted, too.
|