We migrated from plesk 7 for linux to a new server with plesk 8.3.0 for linux. One of our customers had the following domain set up:
normal website: http://www.<domain>
admin website: https://beheer.<domain>
The normal website doesn't use ssl, just plain http. To change their dynamical website they go to a subdomain that uses ssl en log in there with a username and password. This worked on the old server but on the new server they get an error stating the open_base_dir problem: they upload pictures from the ssl subdomain to a folder (/httpdocs/images/logos/) on the non-sll normal website and that folder isn't in the base_dir configuration.
I've tried 100 thing to change the open_base_dir for the ssl_subdomain but it simply does not work. I tried creating a vhost.conf in the /conf dir with the following directives:
<Directory /var/www/vhosts/<domain>/subdomains/beheer/httpsdocs>
<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:/var/www/vhosts/<domain>/subdomains/beheer/httpsdocs:/tmp"
</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:/var/www/vhosts/<domain>/subdomains/beheer/httpsdocs:/tmp"
</IfModule>
</Directory>
Then I ran "/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain> -r" to apply the changes. That didn't work. I made a document with the phpinfo() command and that still displayed the old value. I could have know because if I look at /conf/http.include I can see the vhost.conf is included in the configuration for the <ip>:80 section. I renamed it to vhost_ssl.conf and ran the reconfigure command again. Still no luck. I suppose the configuration files only work for the main website and not the subdomains.
I read somewhere I had to create a vhost.conf in the /subdomains/beheer/conf folder but that didn't exist. I created it and made a vhost.conf there. Again reran the reconfigure command again. No luck. I renamed it to vhost_ssl.conf (I really knew it was going to work now!!! ) but........ no changed open_base_dir.
As a last resort I tried creating a file called zzzz_custom_http.conf in the /etc/httpd/conf.d folder. All .conf files in here are being parsed and because of zzzz_custom it will be parsed as the last file. I entered the statements below:
<VirtualHost <ip>:443>
ServerName beheer.<domain>:443
<Directory /var/www/vhosts/<domain>/subdomains/beheer/httpsdocs>
<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:/var/www/vhosts/<domain>/subdomains/beheer/httpsdocs:/tmp"
</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:/var/www/vhosts/<domain>/subdomains/beheer/httpsdocs:/tmp"
</IfModule>
</Directory>
</Virtualhost>
Deleted the vhost_ssl.conf and the conf dir from the subdomain and reran the reconfigure command again. And stil...... no luck? What am I doing wrong????
normal website: http://www.<domain>
admin website: https://beheer.<domain>
The normal website doesn't use ssl, just plain http. To change their dynamical website they go to a subdomain that uses ssl en log in there with a username and password. This worked on the old server but on the new server they get an error stating the open_base_dir problem: they upload pictures from the ssl subdomain to a folder (/httpdocs/images/logos/) on the non-sll normal website and that folder isn't in the base_dir configuration.
I've tried 100 thing to change the open_base_dir for the ssl_subdomain but it simply does not work. I tried creating a vhost.conf in the /conf dir with the following directives:
<Directory /var/www/vhosts/<domain>/subdomains/beheer/httpsdocs>
<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:/var/www/vhosts/<domain>/subdomains/beheer/httpsdocs:/tmp"
</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:/var/www/vhosts/<domain>/subdomains/beheer/httpsdocs:/tmp"
</IfModule>
</Directory>
Then I ran "/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain> -r" to apply the changes. That didn't work. I made a document with the phpinfo() command and that still displayed the old value. I could have know because if I look at /conf/http.include I can see the vhost.conf is included in the configuration for the <ip>:80 section. I renamed it to vhost_ssl.conf and ran the reconfigure command again. Still no luck. I suppose the configuration files only work for the main website and not the subdomains.
I read somewhere I had to create a vhost.conf in the /subdomains/beheer/conf folder but that didn't exist. I created it and made a vhost.conf there. Again reran the reconfigure command again. No luck. I renamed it to vhost_ssl.conf (I really knew it was going to work now!!! ) but........ no changed open_base_dir.
As a last resort I tried creating a file called zzzz_custom_http.conf in the /etc/httpd/conf.d folder. All .conf files in here are being parsed and because of zzzz_custom it will be parsed as the last file. I entered the statements below:
<VirtualHost <ip>:443>
ServerName beheer.<domain>:443
<Directory /var/www/vhosts/<domain>/subdomains/beheer/httpsdocs>
<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:/var/www/vhosts/<domain>/subdomains/beheer/httpsdocs:/tmp"
</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:/var/www/vhosts/<domain>/subdomains/beheer/httpsdocs:/tmp"
</IfModule>
</Directory>
</Virtualhost>
Deleted the vhost_ssl.conf and the conf dir from the subdomain and reran the reconfigure command again. And stil...... no luck? What am I doing wrong????