I'm not sure this is possible out of the box, because as I can tell cgi-bin support isn't there for subdomains. here is what I have done for awstats which will be loaded com /stats
I finally figured out how to roll out awstats on each domain I deploy now. I used the skeleton structure that is part of plesk. What they don't tell you is that the entire skelton structure is parsed and any time it comes across the @domain_name@ tag it just replaces it with the domain name being installed.
Basically I just created a domain in plesk and installed awstats, once that was installed I just tared up the dirs and uploaded it to plesk, now all domains have awstats enabled by default. The only thing left to do is manually add a cron job that will parse the files for you, and update the stats. This I believe could be automated with the help of the event manager, but I haven't got there yet.
Here is a rundown of what I did.
1.) download awstats
2.) tar zxf awstats
3.) mkdir /home/httpd/vhosts/domain/httpdocs/stats
4.) cp awstats/wwwroot/* /home/httpd/vhosts/domain/httpdocs/stats/
5.) mv /home/httpd/vhosts/domain/httpdocs/stats/cgi-bin/* /home/httpd/vhosts/domain/cgi-bin/
6.) rm /home/httpd/vhosts/domain/httpdocs/stats/cgi-bin/ -rf
7.) cd /home/httpd/vhosts/domain/cgi-bin
8.) edit awstats.model.conf place your domain name in the correct places, tell it where to find the access_log etc. Update the location of icon css, and js to /stats/js/ or where ever you put them. Save it as awstats.conf
9.) chown user.psacln * -R where user is the domain user
10.) create an /stats/index.html that will redirect to cgi-bin/awstats.pl this was your users have an easy way to get to their stats.
11.) Test your install make sure that awstats works, then edit your index.html and awstats.conf file replace any instance of your domain name with @domain_name@ this will fix all the paths etc.
12.) cd /home/httpd/vhosts/domain/
13.) tar xcz skel.tgz cgi-bin httpdocs
14.) upload the new skel.tgz to plesk,
15.) create a domain
16.) add /home/httpd/vhosts/domain/cgi-bin/awstats.pl -config=/home/httpd/vhosts/domain/cgi-bin/awstats.conf -update >/dev/null 2>&1 to your cron have it run 55 * * * * for every hour and 55 to catch it before plesk does it’s nightly hiding of logs.
hope that helps you out all. I will post a generic skel file confirmed all the bugs are worked out.
exothermic
PS if anyone figures the eventmanager script to add a cron please post it. then this process will be fully automated.