B
bsterzenbach
Guest
Greetings All.
Long time Ensim user making the jump to Plesk
I'm running psa v8.6.0_build86080930.03 os_RedHat el5
So far it's been a pretty easy switch, but I have one issue with setting up new domains:
I use some PEAR modules, so I need to add the PEAR path to my open_basedir directives. The only way I see to do this is by adding a vhost.conf for the domain and running the update command. Is there any way to do this dynamically during the domain setup?
Here is what I add with each domain:
(/var/www/vhosts/<domain>/conf/vhost.conf)
<Directory /var/www/vhosts/<domain>/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/<domain>/httpdocs:/tmp:/usr/share/psa-pear/:/usr/share/psa-pear/DB"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/<domain>/httpdocs:/tmp:/usr/share/psa-pear/:/usr/share/psa-pear/DB"
</IfModule>
</Directory>
I then run:
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain>
Is there perhaps some template where I can make this change and avoid the vhost.conf procedure?
Thanks for any help
Bill
Long time Ensim user making the jump to Plesk
I'm running psa v8.6.0_build86080930.03 os_RedHat el5
So far it's been a pretty easy switch, but I have one issue with setting up new domains:
I use some PEAR modules, so I need to add the PEAR path to my open_basedir directives. The only way I see to do this is by adding a vhost.conf for the domain and running the update command. Is there any way to do this dynamically during the domain setup?
Here is what I add with each domain:
(/var/www/vhosts/<domain>/conf/vhost.conf)
<Directory /var/www/vhosts/<domain>/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/<domain>/httpdocs:/tmp:/usr/share/psa-pear/:/usr/share/psa-pear/DB"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/<domain>/httpdocs:/tmp:/usr/share/psa-pear/:/usr/share/psa-pear/DB"
</IfModule>
</Directory>
I then run:
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain>
Is there perhaps some template where I can make this change and avoid the vhost.conf procedure?
Thanks for any help
Bill