• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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