Questions tagged [open-basedir]

Setting in PHP.INI limiting whether PHP can access files outside of the specified directory tree.

148 questions
0
votes
1 answer

open_basedir restriction File(/usr/data/Horde_Imap_Client/locale) on Plesk

I am using Horde_Imap_Client for a custom PHP Webmail and generally it is working fine but some very rare times it throws this error: file_exists(): open_basedir restriction in effect. File(/usr/data/Horde_Imap_Client/locale) is not within the…
0
votes
1 answer

open_basedir restriction - php.ini against Plesk CentOS 6

Does anyone know if it is possible to include a parent directory of a {WEBSPACEROOT} PHP 5.5.22? This is the given structure which does work with {WEBSPACEROOT}: var/www/vhosts/mydomain-a/website var/www/vhosts/mydomain-a/includepath …
leopold
  • 1,971
  • 1
  • 19
  • 22
0
votes
1 answer

PHP & CodeIgniter Error: open_basedir restriction in effect

open_basedir restriction in effect. File(/var/www/vhosts/domain.com) is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs:/tmp) How do I securely fix this? This is preventing me from listing and creating directories outside of…
Raphael Caixeta
  • 7,808
  • 9
  • 51
  • 76
0
votes
2 answers

php required_once Fatal error base_dir bug

Yay all ! I've got a weird error : Warning: require_once(): open_basedir restriction in effect. File(/usr/lib/php/api/api.conf.php) is not within the allowed path(s):…
Eat Salad
  • 99
  • 1
  • 1
  • 6
0
votes
1 answer

Path issue on Laravel Google Analytics package

I'm starting a Laravel site and decided to include the Google Analytics package here https://github.com/thujohn/analytics-l4 After configuring it properly with my credentials and placing the .p12 file, I tried this:
hdwebpros
  • 528
  • 3
  • 7
  • 20
0
votes
1 answer

remove open_basedir restriction

I am running a script and i am getting the following error: WARNING: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/php/Am/View/Helper/HeadScript.php) is not within the allowed path(s):…
Cain Nuke
  • 2,843
  • 5
  • 42
  • 65
0
votes
0 answers

No input file specified when set open_basedir in php

Directory structure of my server /home/server/public_html/maindata /home/server/public_html/files when I set open_basedir= "/home/server/public_html/files" ,out put of www.domain.com/maindata is "No input file specified." how to resolved this…
0
votes
0 answers

Humhub registration error

I've installed humhub on a shared webhoster. When I try to register as a new user the following error appears: PHP Warning: is_writable(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s):…
benni
  • 37
  • 8
0
votes
1 answer

open_basedir, File() is not within the allowed path

I'm having an issue with Laravel, installed on a Media Temple DV: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/vhosts/mywebsite.com/:/tmp/) This is the code that is giving this issue: if…
dcolumbus
  • 9,596
  • 26
  • 100
  • 165
0
votes
1 answer

open_basedir how much you can trust it?

I have a VPS from godaddy and 3 sites on it. 1 of it is my main subject which i have taken every precaution in the code (100% hand made) to secure it (PHP/Mysql/Javascript) and to have it run smoothly. Now for the 1st time we giving one of the…
mike kypriotis
  • 105
  • 1
  • 8
0
votes
1 answer

Quick question about open_basedir

On my server, I have following setting: open_basedir /home/ :/usr/lib/php :/usr/local/lib/php :/tmp/ :/usr/local/ :/usr/bin Now, I am little bit confused about ending / in the / home / setting, does that mean that all…
Gio
  • 93
  • 1
  • 2
  • 7
0
votes
1 answer

WordPress - File(/) is not within the allowed path(s)

I have something really strange after moving an WordPress to my Server: Wed Aug 27 18:10:43 2014] [warn] [client 77.21.106.179] mod_fcgid: stderr: PHP Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s):…
lippoliv
  • 727
  • 2
  • 11
  • 28
0
votes
1 answer

PHP Warning: include_once(): open_basedir restriction in effect

I have migrated a site from one host to another, on this site there is a crm working or at least used to work. Since the migration was done the link to the crm responded with error500-internal server error and I contacted the host in order to check…
user3907917
  • 1
  • 1
  • 1
0
votes
2 answers

Facebook api: "open_basedir restriction in effect"

I've uploaded my script for facebook login, based on facebook php api 4.0,on a web hosting which supports php 5.4, but I'm getting Warning: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed…
user3456807
0
votes
1 answer

open_basedir allow including "trusted" code

I am writing an application where I want to allow some users to write / run / test their code on my server, with some preloaded code from my application. I want these users to be able to work only in their directory and this task can be done with…
John
  • 7,500
  • 16
  • 62
  • 95