fopen fails on /tmp

The place for "I can't figure out how to..." questions.
Post Reply
gb5256
User
Posts: 1
Joined: Fri Oct 27, 2006 11:14 am

fopen fails on /tmp

Post by gb5256 » Fri Oct 27, 2006 2:09 pm

Hi there,

I'm using the content management system drupal 4.7.4 with the getid3.
I get the following error:

Code: Select all


    * warning: fopen(): open_basedir restriction in effect. File(/tmp/getID3EBtDYE) is not within the allowed path(s): (/home/www/web548/:/usr/bin) in /home/www/web548/html/cms2/modules/audio/getid3/getid3/write.id3v2.php on line 87.
    * warning: fopen(/tmp/getID3EBtDYE): failed to open stream: Operation not permitted in /home/www/web548/html/cms2/modules/audio/getid3/getid3/write.id3v2.php on line 87.
    * The following errors were encountered, preventing the ID3 tags from being saved:
          o WriteID3v2() failed with message(s):

                + Could not open /tmp/getID3EBtDYE mode "wb" -

Looks like my /tmp folder is not usable.
Can I change this to another folder (actually i would like to use a folder in my html-folder where i store my website.

is this possible?

thanks to everybody in advance.

gb5256

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Nov 01, 2006 8:35 pm

PHP is running in safe mode with a restriction on open_basedir.

Either remove that restriction or move the file from /tmp to your working folder before modifying tags.

MsTiFtS
User
Posts: 14
Joined: Tue Oct 03, 2006 2:31 pm
Location: Germany, BW

Post by MsTiFtS » Thu Nov 02, 2006 1:03 pm

It seems to me like he wants to open a remote file and now asks where he can change the path where getid3 stores its temporary copy...

Post Reply