Article ID: 966, created on Oct 6, 2008, last review on Apr 16, 2012

  • Applies to:
  • Plesk for Linux/Unix


To make Sun ASP available for every new domain you need to login as root via ssh into the server and create a new file, for ex., in /usr/local/psa/bin/ folder with your favorite text editor such as vi or nano.Add the following lines there:#!/bin/bashcat > /home/httpd/vhosts/$1/conf/vhost.conf <<EOFASPUser $2ASPGroup psaclnEOFSave the file and exit the text editor. You may need to change the permissions on this file to run it (make sure root has execute permissions) with:# chmod +x /usr/local/psa/bin/addvhostperm.shNow, login to the plesk admin console and go to the server section. Locate Event Manager and click on Add New Event.Select "Physical hosting created" from the drop down menu, "normal" in the priority list and "root" as the user and paste the following line into the Command text box:/usr/local/psa/bin/ <new_domain_name> <new_system_user>Click OK to save the event.Done - this event will create a file called vhost.conf in the conf directory of all  the domains you setup with physical hosting under the Plesk control Panel allowing each domain permissions to access the ASP server.

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF