Setting in PHP.INI limiting whether PHP can access files outside of the specified directory tree.
Questions tagged [open-basedir]
148 questions
3
votes
1 answer
PMA 4.5.2.0 file_exists(): open_basedir restriction in effect
After installing phpMyAdmin on my Ubuntu server from PPA
https://launchpad.net/~nijel/+archive/ubuntu/phpmyadmin
I get a series of warnings. Thanks in advance!
Warning in ./libraries/Util.class.php#521 file_exists(): open_basedir
restriction in…

razor7
- 2,165
- 2
- 19
- 32
3
votes
1 answer
phpmyadmin, neginx error.log - Check group www-data has read access and open_basedir
I have this message on phpmyadmin website
The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click here.
On the 'click here' page I have this:
Page printscreen
My nginx…

Francisc
- 393
- 7
- 16
3
votes
1 answer
how to test open_basedir setting and make sure it is working correctly
I have a VPS using FastCGI (WHM/cPanel). As I understand it, open_basedir must be set using a php.ini file in each user's /home/ directory (E.g.: setting it globally in apache config file will not work).
I want to use open_basedir for improved…

user3369330
- 31
- 2
3
votes
2 answers
Will Setting open_basedir in an .htaccess file completely limit a PHP scripts directory access?
My PHP script uses $_POST['fileUrl']; to retrieve a file for the user, which I believe poses a security threat because anyone could append "../../" etc to the fileUrl to gain access to other files on my server.
I need to find the best (most secure)…

Matthew Lundstrom
- 117
- 1
- 9
3
votes
2 answers
PHP: Can CURLOPT_FOLLOWLOCATION and open_basedir be used together?
I'm confused why these two things are, or appear to be, mutually exclusive, and wonder if there is a way around being able to use both on PHP-5.4. Trying to set this option, I get the following error:
curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be…

Jason
- 4,411
- 7
- 40
- 53
3
votes
3 answers
PHP is_readable trouble with open_basedir
I've recently gotten an error when I deployed an application. It used "is_readable" on a path within the include path, but one that was restricted by "open_basedir". This gave me a fatal error.
Is there another function that I could use to see if a…

Bart van Heukelom
- 43,244
- 59
- 186
- 301
3
votes
1 answer
Getting warning when syncing appointment on google calendar?
Am getting warning when am trying to sync appointment on my Google Calendar via my online server.
Here is code Lines
public function addEvent($params) {
$url = "http://www.google.com/calendar/feeds/{$this->getFeedEmail()}/private/full";
…

Frank
- 2,285
- 7
- 43
- 68
3
votes
1 answer
open_basedir restriction in effect error in php code
Im beginner in php language. in my web project i created a filepath.config.ini file which stores all file path in the website directories. for eg.
CLASS1 = bin/myclass1.php
CLASS2 = bin/myclass2.php
and im accessing those path by using:
require…

Ashish Panwar
- 1,118
- 3
- 11
- 18
3
votes
3 answers
Check if a path will fail due to open_basedir
Is it possible to check this before failing ?
if (is_in_open_basedir($path)) {
}

Maël Nison
- 7,055
- 7
- 46
- 77
2
votes
1 answer
PHP Open_basedir restrictions on URL
i want to ask some question.
I have a webserver (apache2/php/debian), and PHP configured with open_basedir option for some security reasons.
I need to acces to a url using file_get_contents(), but i get the error Warning: file_get_contents():…

EsteveBlanch
- 125
- 3
- 12
2
votes
2 answers
ISPConfig 3, a ninja sets my open_basedir
I have a PHP library that I'd like to share to several vhosts on my server, but the open_basedir directive is causing troubles.
I use ISPConfig 3 to manage the sites.
PHP Warning: include(): open_basedir restriction in effect.
…

Roman
- 5,888
- 26
- 47
2
votes
3 answers
Open_basedir restriction oddness
I'm having a problem with move_uploaded_file in PHP, with the returned error message telling me that the open_basedir restriction is in place (which I've set) and that on the path I'm attempting to write to is not within the allowed paths, but it is…

Mogstar
- 33
- 5
2
votes
1 answer
php open_basedir File() <- empty brackets
I have a server with ISPConfig3 installed, and I have a user with multiple websites and shared files.
I have a strange open_basedir problem:
Trying to include: /var/www/clients/client2/web4/web/core/defs.php
Warning: require(): open_basedir…

galchen
- 5,252
- 3
- 29
- 43
2
votes
1 answer
Apache: open_basedir with variable
I now have this:
php_flag open_basedir "/home/$1"
But that doesn't work. How can I refer to that .*?

www.data-blogger.com
- 4,076
- 7
- 43
- 65
2
votes
1 answer
How to fix open_basedir restriction error in shared server?
I'm setting up laravel-snappy to create pdf.
My snappy config is as below
array(
'enabled' => true,
'binary' => base_path('vendor/h4cc/wkhtmltopdf/bin/wkhtmltopdf'),
...
By running config('snappy')…

Selvin
- 58
- 1
- 8