Questions tagged [open-basedir]

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

148 questions
2
votes
0 answers

PHP Warning: Phar::mapPhar(): open_basedir restriction in effect - Drush

I install Drush on my cloudlinux and cagefs shared Hosting server.I am admin of server. I use this article for install drush on my server: How to install Drush in cPanel with CloudLinux and CageFS Commands that I running: cd wget…
omiti
  • 55
  • 1
  • 10
2
votes
1 answer

PhpMyAdmin Error 500 PHP-GETTEXT

I updated my server today and actually when i'm going to mywebsite.com/phpmyadmin/ => I got an error 500 Error.log: PHP Warning: require_once(): open_basedir restriction in effect. File(/usr/share/php/php-php-gettext/gettext.inc) is not within the…
pomme
  • 23
  • 1
  • 4
2
votes
1 answer

Is there any way I can bypass symlinks from php open_basedir?

I have configured open_basedir in Apache virtual host in Linux which is working fine. php_admin_value open_basedir "/var/www/abc/public_html" I am required to allow a single symlink which is…
Saqib Iqbal
  • 339
  • 5
  • 13
2
votes
2 answers

Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s)

EDIT: This is not a duplicate of open_basedir restriction in effect. File(/) is not within the allowed path(s):. This issue has nothing to do with the PHP settings, as I have several websites working under the same map structure and the same PHP…
Tijmen
  • 542
  • 1
  • 6
  • 29
2
votes
1 answer

Laravel Open_basedir being spammed in logs, but open_basedir is disabled

Recently after I restarted my server I started receiving a php open_basedir restriction being spammed in my Laravel.log every minute. I disabled open_basedir following this error to try to debug it but it is still being spammed. It appears to be…
Kyle Goodale
  • 131
  • 1
  • 8
2
votes
1 answer

Using symlink and php includes outside user's directory with cPanel

I have a dedicated server with cPanel, hosting our custom backend system and multiple websites. The backend is hosted on a separate domain and contains a folder ("shared") which has a lot of php-classes and images that are used by all websites that…
klaaskox
  • 329
  • 4
  • 15
2
votes
0 answers

Set open_basedir() for subdirectories as that subdirectory

I want to be able to set a open_basedir() in my .htaccess of /home, and say a user creates /home/username, I want the to be able to restrain that subdirectory /home/username to /home/username without creating any files inside of /home/username. Is…
kzhao14
  • 2,470
  • 14
  • 21
2
votes
1 answer

How do I set open_basedir in .htaccess? (shared hosting)

I have this function on my website where users can create files/edit/delete them, etc. When they make a file, it goes to "www.example.com/site/(their username)/file.php". But, with php they can potentially access files outside of their directory,…
kzhao14
  • 2,470
  • 14
  • 21
2
votes
1 answer

Codeigniter - image upload - open_basedir restriction in effect

I have a simple cms which is written in Codeigniter framework. It has worked just fine in many projects and it still works ok on my local machine. But when i put my recent web site online (server php version 5.5.17) and i try to upload an image, i…
Krone
  • 78
  • 11
2
votes
1 answer

Wordpress migration, CCTM and basepath error

I migrated my site over and not get a problem Warning: require_once(): open_basedir restriction in effect. File(/home/httpd/mytestserver.co.uk/mysite/httpdocs/wp-content/plugins/custom-content-type-manager/fields/text.php) is not within the allowed…
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192
2
votes
0 answers

nginx and php5-fpm open_basedir restriction in effect am I under attack?

I'm running an application on a VPS under Ubuntu 13.10 nginx and php5-fpm, The webserver has been set up very carefully following the best security practices. The app was written and tested to avoid any kind of injection, users input data is…
Adriano Rosa
  • 8,303
  • 1
  • 25
  • 25
2
votes
1 answer

Why use open_basedir with PHP as FastCGI on IIS?

I've seen several tutorials explaining PHP installation under IIS as FastCGI recommending to set open_basedir to point to the folder or network path where the content of the Web site(s) is located. When I set open_basedir on my application server,…
fcaserio
  • 726
  • 1
  • 9
  • 18
2
votes
1 answer

Wordpress error open_basedir restriction in effect. File is not within the allowed path(s):

After trying a migration from another domain back to: http://fabiolagreco.web1007.kinghost.net/ I probably mistyped the command line in PHP My Admin, to search and overwrite the domain addresses and now the wordpress will not load. It keeps…
Jovenildo
  • 21
  • 1
  • 2
2
votes
2 answers

php: open_basedir and /dev/urandom

Calling the Pear Mail class in some instances automatically attempts to read /dev/urandom, however access is restricted due to an open_basedir setting. Is it safe to add /dev to open_basedir? Or is there a better way around this?
Jay
  • 2,123
  • 1
  • 22
  • 29
2
votes
2 answers

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/bin/apachectl)

First of all, sorry for the long title, I never expected this error, so I don't know how to describe it. I'm getting this error: Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/apache/bin/apachectl)…
user1096494
1 2
3
9 10