• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

open_basedir restriction in effect on Cron Jobs on VPS 123-reg

GigaBlast

New Pleskian
Hello, I'd really like to get this problem fixed. Its been dragging on....


Something is stopping me overriding php.ini and apache open_basedir.

I have tried all routes, over the past weeks but my crons and php ssh commands can't open files in parent folders. The problem was fixed on the main site to allow it to work, but there's something else preventing file access.

If you run php command you get "open_basedir restriction in effect" even though the site root and below is open. After 123-reg wouldn't assist i asked here earlier...


http://plesk.uservoice.com/forums/1...racking_code=01104d66ce804232e9ba1852dba40b23

Any idea, anyone ???
 
Hello Parallels, I have Panel version 11.5.30
Which part is applicable to my issue? Please be clear. I have already done the Resolution and run the reconfigure apache command. neither has worked.

The last part has: Example.... But I don't have a /conf/ folder or vhost.conf file in webroot

i've created a /conf/vhost.conf file in webroot
added this in the file
-------------------------------------------
<Directory /var/www/vhosts/domain/httpdocs>

php_admin_value open_basedir /

</Directory>

------------------------

in etc/psa/psa.conf file i have edited by adding my domain path to
------------------------
HTTPD_VHOSTS_D /var/www/vhosts/domain/conf/vhost.conf:
php_admin_value open_basedir /var/www/vhosts/domain
------------------------

I don't have a httpdocs folder? Still same error permission denied after restarting apache
 
Last edited:
You need this: http://kb.parallels.com/en/113861 for Plesk 10.x and later (i.e. 11.x)
You should not bother with vhosts.conf or anything like that. You need to make changes in the PHP tab (website scripting and security) in the panel, or by editing the domain's php.ini

Nothing you do will help if you do not correctly specify the open_basedir paths you want, however, so be very careful there.

But umm....do not edit /etc/psa/psa.conf! I'm not sure why you did that? You must not touch that file. Here be dragons. :) :)

You do have an httpdocs directory is the domain is the primary domain for a subscription. That's where all the website files go.
If it is a secondary domain then you may have chosen to name the directory where the website files go to match the domain name or maybe just "site1", "site2" etc.

Plesk 11.5 makes changes to the location of various things compared to 10.x. Look in /var/www/vhosts/system/domain.tld for anything you can't find in /var/www/vhosts/domain.tld -- e.g. configuration files and log files. However, like I say, you shouldn't bother with vhosts.conf and whatnot - those things are a bit old-school and no longer needed for php settings overrides.

Errr...that is, as long as you are running php in php_fcgi mode rather than mod_php mode, which I hope you are :)
 
Hello Faris, thank you for your answer...I have deleted the strings added to vhosts.conf. Overnight plesk did an update - not sure what bug fixes but my problem still persists.
As for running php, it was set as run php as Apache Module, i changed to FastCGI application, but still no joy on unlocking open base directory. I have named the httpdocs location public_html since day one.
I have noticed when I change the website Scripting and Security options i get an email error saying

"Unable to generate the web server configuration file on host <....123-reg) because the following errors
Template_Exception: Mkdir cannot create directory
/var/www/vhosts/domain/conf/vhost.conf:/system/img.domain/conf no such file or directory
the report continues with
mktemp: failed to create file via template `/var/www/vhosts/domain/conf/vhost.conf:/system/img.domain/conf/13863319920.69822300_httpd.conf.XXXXXX': No such file or directory
Can not create temporary file

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0"


BUT on my server plesk screen i see a message from plesk: The settings were successfully updated. ?????

------------
(I have never had to fix apache in the 7 years of web hosting. i wish i choose :( )

-----------------
Open_basedir set to
{WEBSPACEROOT}{/}{:}{TMP}{/}

My folder structure looks like this

classes (index.php can include the files listed in here. Cron jobs are blocked open base directory in effect)
configs (same as above)
img (subdomain of images) img.domain/pic.png ... can be accessed by ../img/pic.png
public_html ( where index.php all the php scripts live)
 
Last edited:
Back
Top