Plesk 10 - creating and using vhost.conf
Posted
by
MrFidge
on Server Fault
See other posts from Server Fault
or by MrFidge
Published on 2011-02-22T11:36:41Z
Indexed on
2012/09/15
3:40 UTC
Read the original article
Hit count: 517
I'm having some issues setting up and using a vhost.conf for one of my domains. So far none of the domains have required any extra configuration but now I need to use a PEAR module, so I'm looking to include /usr/share/pear in the PHP settings for the domain.
vhost file created in /var/www/vhosts/domain.com/conf/vhost.conf
<Directory /var/www/vhosts/domain.com/httpdocs>
php_admin_value include_path ".:/usr/share/pear"
</Directory>
I then restart Plesk using:
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.com
Or as plesk says that command is obsolete in Plesk 10 I've tried using
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain domain.com
And for good luck I've restarted apache too each time. Net result - none of the PEAR includes work unless I edit the include_path in /etc/php.ini!
Any tips on how to get this MOFO working? I've had a look through the documentation but TBH I just don't have time to read 40 pages of Plesk manual for one line of code, this can't be that hard, surely!
Thanks for any pointers, H
© Server Fault or respective owner