Resolution
If you wish to recreate vhost.conf for webspace with id <webspace_id>, you should do following:1. On the management make query in database to find <ds_id> for webspace.
[root@core root]# psql -Uplesk -c "select ds_id from domain_services ds ,services s where
ds.service_id=s.service_id and
s.name='Apache' and
ds.hd_id=<webspace_id> ; "
ds_id
-------
<ds_id>
(1 row)2. Create file named dumpVhostConfig with following content:
admin
<admin's password to PCP>
r
apache
0
0
getDomainService
<ds_id>
n
n
apache/DomainService
m
1
dumpVhostConfig
q
q3. Execute commands:
[root@core root]# export JAVA_HOME=/usr/java/j2sdk1.4.2_08/
[root@core root]# pem-test < dumpVhostConfig