Setting in PHP.INI limiting whether PHP can access files outside of the specified directory tree.
Questions tagged [open-basedir]
148 questions
0
votes
1 answer
CURLOPT_FOLLOWLOCATION and open_basedir problems with mediatemple grid
I have a WordPress site hosted on the mediatemple grid and I am receiving and error regarding open_basedir when trying to submit a form. On submission, the form creates a new client in freshbooks. Safe mode is turned off so I am quite positive the…

user715564
- 1,650
- 2
- 25
- 60
0
votes
1 answer
php composer open_basedir restriction, how do I set the home paths?
I have installed php and composer on a Windows Vista 64 machine. I am having a devil of a time getting Composer to accept a directive to use a specified directory other than the default C:\Users\\AppData\Roaming\Composer.
I tried to set up a…

user3230847
- 11
- 2
- 4
0
votes
1 answer
Open_basedir in wordpress images are not uploading
I install wordpress 3.8 on cpanel linux server.but enable to uplaod images due error open_basedir in effect.how to fix this problem

Dhananjay Maurya
- 3
- 2
0
votes
0 answers
unexplainable open_basedir restriction
I have a very weird problem with a normal php include when I execute my script in a browser. In the shell everything works fine. So I assumed that either it is a permissions issue or a php configuration issue but as it turned out this is not the…

Markus Kottländer
- 8,228
- 4
- 37
- 61
0
votes
1 answer
Does Node.js have an equivalent to `open_basedir`?
I'm pretty familiar with security in Apache/Nginx + PHP setups.
In Apache I can set DocumentRoot and in PHP I can use open_basedir to restrict access parts of the file system that shouldn't be accessible to the web server and/or PHP.
However, now…

Lasse
- 1,414
- 11
- 19
0
votes
1 answer
PHP open_basedir
I'm getting the following PHP warning:
PHP Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/pear//home/domain.nl/application/views/helpers/HeadLink.php) is not within the allowed path(s):…

Martijn
- 5,491
- 4
- 33
- 41
0
votes
1 answer
Open_basedir restricting HTTPS requests only?
I've tried everything and I can't remove open_basedir for HTTPS requests. It's working for HTTP requests though. Plesk 10 is my control panel.
Here are the steps I've taken:
I created a vhost.conf file that has the restriction removed.
I created a…

Andrew
- 2,691
- 6
- 31
- 47
0
votes
1 answer
Wordpress creates bad path and is blocked by open_basedir
I'm trying to migrate some of my clients' sites to my new server and I get the following error on 2 sites that have the same setup.
PHP Warning: is_readable(): open_basedir restriction in effect.
…

Charles Verrette
- 1
- 1
0
votes
1 answer
open_basedir error preventing avatar uploads
I'm getting this error when avatars are being uploaded on my site. I've changed "open_basedir = /home/" to "open_basedir =" in my php.ini on my server. It's a dedicated server and I rebooted it after making the adjustment.
Warning: is_writable()…

Ben
- 60,438
- 111
- 314
- 488
0
votes
1 answer
PHP’s open_basedir value giving a binary value in Apache logs
Reviewing logfiles to figure out why my site was down a few days ago, I found hundreds of lines like these (partially redacted with "x"):
[Fri Nov 27 23:14:36 2009] [error]
[client xxx.xxx.xxx.xxx] PHP Warning:
require_once(): open_basedir
…

scotts
- 4,027
- 3
- 29
- 26
0
votes
0 answers
Issue with include_path and open_basedir
I have a subdomain called ticket.domain.com, and this is located at C:\Inetpub\vhosts\domain.com\subdomains\ticket\httpdocs...
In my Plesk settings, for the subdomain, I have specified the following settings:
include_path:…

Ben Carey
- 16,540
- 19
- 87
- 169
0
votes
1 answer
Set PHP's open_basedir for all users' public_html via mod_userdir
I have an Apache 2 web server that allows access to the public_html directory for each user via mod_userdir, like this:
UserDir public_html
UserDir disabled root
# [*]…

oliphaunt
- 137
- 5
0
votes
1 answer
How to include paths to PHAR archives in the open-basedir directive?
I'm trying to use composer on my local development machine, and it always fails when trying to copy something from the PHAR archive:
[ErrorException]
copy(): open_basedir restriction in effect.…

ndm
- 59,784
- 9
- 71
- 110
0
votes
1 answer
open_basedir restriction cant set to none, plesk cpanel
I got Plesk on a dedicated server. I had open_basedir restriction in effect error in my PHP website, so i have edited the php.ini files in server root and also created one within each domain.
In php.ini file the open_basedir is set to none.
safe…

TheDeveloper
- 890
- 1
- 15
- 37
0
votes
1 answer
open_basedir restriction in effect
I have been having trouble using a file upload script on my server - came to the conclusion that this was because PHP was being run on Apache Module so reconfigured PHP to run as FastCGI.
Unfortunately now when I try to upload a file via uploadify I…

Sideshow
- 1,321
- 6
- 28
- 50