• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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