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

How to setup open_basedir in PHP for Joomla

I am trying to setup open_basedir on the php.ini file on the server however I'm not really sure how. Do I create a directory somewhere on the server?
Callum
  • 197
  • 2
  • 8
  • 17
0
votes
1 answer

Jira API Issue - CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set limited options on shared hosting

Im running some code on Atlassian Jira bug system API, here is the code im using $username = 'xxx'; $password = 'xxx'; $url = 'https://xxx.atlassian.net/rest/api/2/issues/?filter=12202'; //$url =…
user1547410
  • 863
  • 7
  • 27
  • 58
0
votes
2 answers

open_basedir() warning with Symfony1.4

Often browsing my site I can see this php warning: Warning: is_readable(): open_basedir restriction in effect. File(/var/www/vhosts//httpdocs/apps/frontend/modules/.sf/config/config_handlers.yml) is not within the allowed path(s):…
ilSavo
  • 854
  • 1
  • 8
  • 28
0
votes
1 answer

Saving files to another DocumentRoot using PHP

I have a site that generates some image files. Instead of saving to within the site's DocumentRoot like \home\mysite\public_html\photos, I want to save to another user's directory like \home\anothersite\public_html\photos. The reason for doing this…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
0
votes
1 answer

How to install iF.SVNAdmin on ubuntu

According to http://en.wikipedia.org/wiki/Comparison_of_Subversion_clients the web interface iF.SVNAdmin can be installed on a linux OS. I want to use it as web interface for subversion repositories on a ubuntu vserver with running apache and php…
Stefan Neubert
  • 1,053
  • 8
  • 22
0
votes
2 answers

Open_basedir Restriciton while hosting subdomain outside root folder

Ok my home directory is /home/tubzandm My root folder for the live site is /home/tubzandm/public_html Our development site is /home/tubzandm/develop/public_html Domain dev.tubzandmore.com points to /home/tubzandm/develop/public_html Domain…
swg1cor14
  • 1,682
  • 6
  • 25
  • 46
0
votes
1 answer

Open Base Directory Cross Domain

Changing the open_basedir directive to work with subdomains works absolutely fine on my server by simply setting the directive to: C:\Inetpub\vhosts\domain.net\subdomains\beta\httpdocs\;C:\Inetpub\vhosts\domain.net\httpdocs\ However, when I try to…
Ben Carey
  • 16,540
  • 19
  • 87
  • 169
0
votes
2 answers

basedir issue, am I reading this right?

Warning: touch() [function.touch]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/vhosts/site.com/httpdocs/) in /var/www/vhosts/site.com/httpdocs/Manuals/updater.php on line 5 There was an error…
NRGdallas
  • 395
  • 1
  • 8
  • 20
0
votes
2 answers

realpath() open_basedir restriction in effect.

I'm trying to get my Zend Framework application up and running on my VPS. I'm receiving this error: Error Warning: realpath() [function.realpath]: open_basedir restriction in effect. Apparently this is quite common with Plesk's default restrictions…
user1065700
  • 91
  • 1
  • 2
  • 7
-1
votes
1 answer

curl triggering open_basedir

I have a php (php-fpm) script script1.php running in /var/www/html/folder1/script1.php, protected with open_basedir "/var/www/html/folder1". From that script, I call a 2nd script script2.php located in /var/www/html/folder2/script2.php through…
Sebas
  • 21,192
  • 9
  • 55
  • 109
-1
votes
2 answers

open_basedir restriction is not working as expected

I am performing a pen test on a web server as one of the tasks in an exam, and after exploiting a unrestricted file upload vulnerability (https://www.owasp.org/index.php/Unrestricted_File_Upload), I am trying to access a certain folder on the web…
-2
votes
1 answer

open_basedir restriction Error with CodeIgniter App in Subdirectory

I have a CodeIgniter Application for Administration purposes, put in a Subdirectory of the domain. I get the following error when I update a record and try to clear the cached copy of the page, which resides in the Cache folder in domain root. My…
-4
votes
1 answer

Should I enable open_basedir?

I read that open_basedir should be 'On' for better security. Is that true? Should I enable it?
Jordy
  • 4,719
  • 11
  • 47
  • 81
1 2 3
9
10