Is anyone else getting a "open_basedir restriction in effect" when they are uploading a video, in my case a FLV video? The video uploads fine, but the error is always shown. The filename that is causing the error is my domain name, not an actual file and it errors saying that the file is not within the allowed path(s).

I've already double checked my paths in File System and File Manager - everything looks correct. Anybody got any other ideas?

Comments

fax8’s picture

Status: Active » Postponed (maintainer needs more info)

are you using php in safe_mode ?

vm’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

closing for lack of follow up

Anonymous’s picture

Version: 5.x-1.x-dev » 6.x-5.1
Status: Closed (fixed) » Active

since I upgraded from 6.x.4.x I have following error when I try to save new Transcoders parameters in /admin/settings/video/transcoders.

warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/usr/bin/ffmpeg) is not within the allowed path(s): (/var/www/vhosts/snowpedia.it/httpdocs:/tmp) in /var/www/vhosts/snowpedia.it/httpdocs/sites/all/modules/video/transcoders/video_localcommand.inc on line 554.
The file /usr/bin/ffmpeg does not exist.
warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/usr/bin/qt-faststart) is not within the allowed path(s): (/var/www/vhosts/snowpedia.it/httpdocs:/tmp) in /var/www/vhosts/snowpedia.it/httpdocs/sites/all/modules/video/transcoders/video_localcommand.inc on line 563.
The file /usr/bin/qt-faststart does not exist.
warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/usr/bin/flvtool2) is not within the allowed path(s): (/var/www/vhosts/snowpedia.it/httpdocs:/tmp) in /var/www/vhosts/snowpedia.it/httpdocs/sites/all/modules/video/transcoders/video_localcommand.inc on line 569.
The file /usr/bin/flvtool2 does not exist.

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

Please do not reuse very old issues. The chances that your issue has any relation to an issue of three years old in another version are very slim.

What version did you use before you upgraded? What version did you upgrade to? Do you have any control over the PHP settings on your host?

Anonymous’s picture

Status: Active » Postponed (maintainer needs more info)
Anonymous’s picture

Status: Postponed (maintainer needs more info) » Active

ciao Jorrit, sorry for reopening.
I upgraded from 6.x-4.11 to Video 6.x-5.1. Regarding PHP settings I can just put data into .htacces file.
thanks in advance

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Active

Did you use FlvTool and/or qt-faststart before you upgraded?

Only if you use PHP 5.3 or newer, you can add /usr/bin to the open_basedir variable in .htaccess.

Anonymous’s picture

I was using qt-faststart before upgrading. I'm actually using PHP Version 5.3.6.

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

Have you tried overriding the open_basedir variable?

Anonymous’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

problem solved, the issue magically disappeared. thanks for your support

Jorrit’s picture

OK, great.