open-basedir

PHP Warning: include_once(): open_basedir restriction in effect

萝らか妹 提交于 2019-12-12 02:07:13
问题 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 it. They said they fixed it and now it shows me the following PHP Warning: include_once(): open_basedir restriction in effect. File(/var/www/vhosts/mysite.com/httpdocs/crm/includes/adodbtime/adodb-time.inc.php) is not within the allowed path(s): (G

Open_basedir restriction oddness

大憨熊 提交于 2019-12-11 07:15:55
问题 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 (and is clearly displayed on the error message). Has anyone come across this before? Edit: Sorry, the error message might help!: Unhandled Error (/var/www/vhosts/(myhost)/libs/imanager.php, 226): 2, '...move_uploaded_file() [function.move-uploaded

PMA 4.5.2.0 file_exists(): open_basedir restriction in effect

荒凉一梦 提交于 2019-12-11 01:52:31
问题 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 effect. File(doc/html/index.html) is not within the allowed path(s): (/tmp/:/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/) Backtrace ./libraries/Util.class.php#521:

Zend -> Warning: is_readable() [function.is-readable]: open_basedir restriction in effect

♀尐吖头ヾ 提交于 2019-12-09 18:32:06
问题 I am getting the following warning in my code: Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/php/./views/helpers/Doctype.php) is not within the allowed path(s): (/var/www/virtual/example.com/:/usr/share/pear/) in /var/www/virtual/example.com/htdocs/rockhopper-v2/library/Zend/Loader.php on line 198 or Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/usr/share/php//var/www/virtual/example.com/htdocs

PHP error: open_basedir restriction in effect

▼魔方 西西 提交于 2019-12-08 04:05:26
I using this Yubico authentication PHP class: https://github.com/Yubico/php-yubico . I create php file test.php with this code: <?php require_once 'Auth/Yubico.php'; $otp = "ccbbddeertkrctjkkcglfndnlihhnvekchkcctif"; # Generate a new id+key from https://api.yubico.com/get-api-key/ $yubi = new Auth_Yubico('42', 'FOOBAR='); $auth = $yubi->verify($otp); if (PEAR::isError($auth)) { print "<p>Authentication failed: " . $auth->getMessage(); print "<p>Debug output from server: " . $yubi->getLastResponse(); } else { print "<p>You are authenticated!"; } ?> And do all instructions in this github library

PHP: open_basedir allowed path

时光怂恿深爱的人放手 提交于 2019-12-07 04:47:07
问题 I have a few calls to is_dir on a page. They have always worked no problems. A few days ago, the hosting company upgraded PHP from 5.2 to 5.3. Since then, all my calls to is_dir have resulted in the following error (message): Warning: is_dir(): open_basedir restriction in effect. File(/home/virtual/domain.com/public_html/galleries/img/002.JPG/) is not within the allowed path(s): (/home/virtual/domain.com:/home/virtual/_tmp) in /home/virtual/domain.com/public_html/index.php on line 201 This

phpmyadmin, neginx error.log - Check group www-data has read access and open_basedir

空扰寡人 提交于 2019-12-06 03:26:04
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 error are: 2014/06/27 15:08:15 [error] 4922#0: *886 FastCGI sent in stderr: "PHP message: phpmyadmin: Failed to load /var/lib/phpmyadmin/blowfish_secret.inc.php Check group www-data has read access and open_basedir restrictions. PHP message: phpmyadmin: Failed to load /var/lib/phpmyadmin/config.inc.php Check group www-data has read access and open

PHP: open_basedir allowed path

≡放荡痞女 提交于 2019-12-05 10:37:43
I have a few calls to is_dir on a page. They have always worked no problems. A few days ago, the hosting company upgraded PHP from 5.2 to 5.3. Since then, all my calls to is_dir have resulted in the following error (message): Warning: is_dir(): open_basedir restriction in effect. File(/home/virtual/domain.com/public_html/galleries/img/002.JPG/) is not within the allowed path(s): (/home/virtual/domain.com:/home/virtual/_tmp) in /home/virtual/domain.com/public_html/index.php on line 201 This puzzles me. Clearly, according to the error message (and php_info as well), the directory /home/virtual

PHP - a different open_basedir per each virtual host

给你一囗甜甜゛ 提交于 2019-11-27 04:33:41
问题 I've came across on this problem, I have a sever running apache and php. We have many virtual hosts but we've noticed that a potentially malicious user could use his web space to browse other user's files(via a simple php script) and even system files, this could happens due to the php permissions. A way to avoid it is to set the open_basedir var in php.ini, yhis is very simple in a single host system, but in case of virtual hosts there would be a basebir per each host. Ho can I set dis