Setting in PHP.INI limiting whether PHP can access files outside of the specified directory tree.
Questions tagged [open-basedir]
148 questions
1
vote
1 answer
open_basedir restriction in effect, but the directory *is specified* in php.ini
I'm running php 5.5.12 on Windows Server 2008 with IIS7 and FastCGI.
Here's one of the log errors I'm getting:
file_put_contents(): open_basedir restriction in effect. File(C:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine…

acbaldwin
- 15
- 6
1
vote
1 answer
What should my open_basedir path be set as?
I have a website, built using a multisite WordPress set-up.
I've come across the following advice online:
It is better to enforce a base directory (eg: "/var/www/") to prevent
PHP from accessing other directories in the filesystem.
What should I…

Clarus Dignus
- 3,847
- 3
- 31
- 57
1
vote
2 answers
phpmyadmin complains about permissions and open_basedir - but they all appear correct
phpmyadmin has been installed and working fine for months, installed via this repo:
deb http://ppa.launchpad.net/tuxpoldo/phpmyadmin/ubuntu utopic main
Suddenly, I couldn't login; no in-page errors but the logs showed:
PHP message: phpmyadmin:…

digitaltoast
- 659
- 7
- 23
1
vote
1 answer
Prevent access to files of other users
In my server (cpanel) I see now that with a simple DIR script (PHP) I can list files of all users over public_html
/home/[user]/public_html/
How can I prevent users from accessing the files of other users?

Leo
- 1,753
- 3
- 20
- 23
1
vote
2 answers
How can i write open_basedir like this -> open_basedir = 'var/home/*/'
As you know. You have to write open_basedir = '/var/home' etc
I want to write like this: open_basedir = '/var/home/*/'
Which i want is php should restrict every directory which is in home directory, for every different directories.
Short question:…

ONSC
- 43
- 8
1
vote
3 answers
open_basedir restriction in effect in Plesk for Windows
I'm developing a CMS in PHP as a learning exercise but have hit a brickwall called "open_basedir restriction" - I am trying to upload a small JPG file. I've tried to give as much info as concisely as possible but let me know if I forgot anything!
I…

Mr Fett
- 7,979
- 5
- 20
- 21
1
vote
1 answer
open_basedir not being set correctly
This might be a little to server focused, but I hope someone can help.
I have a PHP CodeIgniter application that I am trying to set up to have the configuration files (like application/config/database.php) set on the server (or local computer) so…

Phil
- 410
- 3
- 12
1
vote
2 answers
PHP error: open_basedir restriction in effect
I using this Yubico authentication PHP class: https://github.com/Yubico/php-yubico. I create php file test.php with this code:

Anton
- 921
- 3
- 12
- 26
1
vote
0 answers
open_basedir restriction when parsing LESS files
I got a warning when parsing my "Twitter BootStrap" files and saving them on disk in my less-cache folder.
Warning: is_file(): open_basedir restriction in effect. File(/../../lib/bootstrap/less/reset.less.less) is not within the allowed path(s):…

kaiser
- 21,817
- 17
- 90
- 110
0
votes
1 answer
What is this Magento open_basedir issue all about?
Running Magento with multiple stores. The base store works perfectly. On the secondary store when reaching checkout and the switch to https this set of warnings is generated:
Warning: require_once() [function.require-once]: open_basedir restriction…

Daniel Fris
- 15
- 3
0
votes
1 answer
How can open I unconditionally to open the open_basedir?
It's PHP question.
I set open_basedir, and it is not more possible for access for the folder in the hierarchy of the bottom even if I make it accessible for a specific directory.
For example, when it was the directory of the hierarchy that said…

freddiefujiwara
- 57,041
- 28
- 76
- 106
0
votes
1 answer
PHP open_basedir with FastCGI
Will I run into problems using open_basedir to move files from one domain to another on my server if I am running fastCGI?
I will want to move uploaded files…

Ben Carey
- 16,540
- 19
- 87
- 169
0
votes
1 answer
Two interfering cakePHP-Installations on nginx/php-fpm server
I needed to setup two completely separated cakePHP-Environments on my nginx-server (nginx 1.0.5, php5-fpm via fastcgi).
I created the following folder-structure:
/var/www
/**virtual1**/
/app
/lib/Cake/..
/**virtual2**/
/app
…

Micronax
- 660
- 13
- 25
0
votes
1 answer
Warning: is_readable(): open_basedir restriction
I had to do a Wordpress installation on a customer's Windows server.
That was only possible via FTP because he doesn't have a Plesk. The installation worked, but if I want to install plugins like "WP Duplicate Page" I can't install it via Wordpress,…

kollin
- 11
- 2
0
votes
0 answers
Can a URL be added to PHP's open_basedir?
I'm facing an issue with PHP's open_basedir directive with relation to a composer package that I don't have control over, and use of a Google Font.
The package I'm using is matthiasmullie/minify, which uses is_file() during it's execution. One of…

oucil
- 4,211
- 2
- 37
- 53