1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Subdomain vhost.conf

Discussion in 'Plesk for Linux - 8.x and Older' started by phibster, Apr 19, 2005.

  1. phibster

    phibster Guest

    I have been trying to change the open_basedir restriction on a single subdomain to allow a 3rd directory. I have followed the example given here (this is for adding www.subdomain.domain.com but same principle). I created the vhost.conf file in the right folder and placed the following line:

    php_admin_value open_basedir "/home/httpd/vhosts/domain/subdomains/subdomain/httpdocs:/home/httpd/vhosts/domain/subdomains/secondsubdomain/httpdocs:/tmp"
    I then executed /usr/local/psa/admin/sbin/websrvmng -v -a to update the server. I then tested the basedir restriction and it hadn't changed. I restarted the httpd service. Still no go. What am i doing wrong? Is it a case of not being able to reassign that value once it has been set? If so how else can I get around this?
  2. worker

    worker Guest

    You should try something more like this:

    <Directory "/home/httpd/vhost/domain.com/httpdocs">
    <IfModule sapi_apache2.c>
    php_admin_flag engine on
    php_admin_value open_basedir "paths_here"
  3. phibster

    phibster Guest

    Cheers worker. Worked like a charm. Put that code in, executed the websvrmng command and bing it works.