• 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.

yet another open_basedir question...

M

mrdan

Guest
I have searched for help on this and tried everything I found, but it still won't work.

I use the folder /httpdocs/common/ for all my php include files. I have one main include file, and within that file, I include about 4 others. Each time I setup a domain, open_basedir restrictions are in effect, and the way I do things doesn't work. I've tried everything I found regarding creating a vhost.conf file, and nothing works except directly editing the httpd.include file to comment out the open_basedir lines. I hate messing around inside that file, but it's all I can get to work. Plus, every time plesk rewrites the config file, I lose my edits.

I've entered this in the vhost.conf file:
<Directory /var/www/vhosts/mydomain.com/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/mydomain.com/httpdocs:/tmp:/var/www/vhosts/mydomain.com/httpdocs/common"
</Directory>

I've tried with and without quotes, with and without the path in the first Directory tag... nothing works. When I run the websrvmng utility, it drops this line into httpd.include: Include /var/www/vhosts/mydomain.com/conf/vhost.conf. Then I restart apache... no go. I checked that the user and group for vhost.conf are both root. I tried anything I could think of, as I know plesk is particular with permissions. Is there some way for me to tell plesk to just not put the open_basedir lines in the httpd.include config files?

I'm feeling like it's just a syntax problem, but I have copied the advice online exactly, and I still can't get it to work.

Any suggestions? I'm using a GoDaddy dedicated with Linux 2.6.17-1.2142_FC4 and psa v8.0.0.

Thanks!
Dan
 
Back
Top