How do I recreate vhost.conf for a webspace?

Article ID: 1870 
Last Review: Oct,6 2008
Author: Nedorezov Alexey APPLIES TO:
  • Parallels Automation (PEM)

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
q


3. Execute commands:
[root@core root]# export JAVA_HOME=/usr/java/j2sdk1.4.2_08/
[root@core root]# pem-test < dumpVhostConfig


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields