• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

vhost.conf is not included in .include - Files

B

Beneter

Guest
[Solved] vhost.conf is not included in .include - Files

Hello,

I'm running 10.2.0 on Linux 2.6.18-028stab091.2 (= Ubuntu-Server 10.04 LTS).
I'm trying to host "moodle" (a CMS) via https on my Domain. Everything works great so far, but during the "install.php" the following error shows up:
Warning: file_exists(): open_basedir restriction in effect. File(/var/www/vhosts/my-domain.de/moodledata) is not within the allowed path(s): (/var/www/vhosts/my-domain.de/httpdocs:/tmp://var/www/vhosts/my-domain.de/moodledata) in /var/www/vhosts/my-domain.de/httpdocs/install.php on line 314 Warning: is_writable(): open_basedir restriction in effect. File(/var/www/vhosts/my-domain) is not within the allowed path(s): (/var/www/vhosts/my-domain.de/httpdocs:/tmp://var/www/vhosts/my-domain.de/moodledata) in /var/www/vhosts/my-domain.de/httpdocs/install.php on line 318
I was searching for a solution and found http://kb.parallels.com/en/432, http://download1.swsoft.com/Plesk/Plesk8.1/Doc/plesk-8.1-unix-administrators-guide/17359.htm and http://www.gadberry.com/aaron/2006/02/09/plesk_vhost/.
So I created a /var/www/vhosts/my-domain.de/conf/vhost.conf with the following content:
<Directory /var/www/vhosts/my-domain.de/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/xplore-dna.net/httpdocs:/tmp:/var/www/vhosts/my-domain.de/moodledata"
</Directory>
I also copyed it, for being sure, to /var/www/vhosts/my-domain.de/conf/vhost_ssl.conf .
Now, to read the vhost.conf I start the following commands in the shell:
[email protected]:~# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
[email protected]:~# apache2ctl configtest
Syntax OK
[email protected]:~# /etc/init.d/apache2 restart
* Restarting web server apache2 ... waiting
[email protected]:~# [OK]
But when launching the install.php again it still shows the same Error!
At /var/www/vhosts/my-domain.de/conf/ there are always two new .include-Files, i.e.:
13233365070.95216700_httpd.include
# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
#/var/www/vhosts/xplore-dna.net/conf/vhost.conf
#/var/www/vhosts/xplore-dna.net/conf/vhost_ssl.conf

13233365070.95216700_httpd_ip_default.include
(see Attachement)
As you can see, open_basedir is still set to "php_admin_value open_basedir /var/www/vhosts/my-doamin.de/httpdocs/:/tmp/"


What am I doing wrong?

Kind Regards,
Beneter

P.S. The sensitive information is censored.
 

Attachments

  • 13233365070.95216700_httpd_ip_default.include.txt
    6.2 KB · Views: 3
Last edited by a moderator:
I just found the solution!

The content in /var/www/vhosts/my-domain.de/conf/vhost.conf should be:
<Directory /var/www/vhosts/my-domain.de/httpdocs>
php_admin_value open_basedir /var/www/vhosts/xplore-dna.net/httpdocs:/tmp:/var/www/vhosts/my-domain.de/moodledata
</Directory>
So the "" are wrong.

Kind Regards,
Beneter
 
Back
Top