PDA

View Full Version : CGI open of tmpfile: Permission denied


mediakreativ
05-02-2007, 05:36 PM
Hello there,
I installed the trialversion of mfhs-1.1-ioncube and everything except one seems to be fine:

When i try to upload a file the upload starts, finishes at 100% but then the statusbar stays there fully red and nothing else happens.

I have changed the includes/inc.php to $debug = 1 to receive error messages and after a download is finished there appears: "CGI open of tmpfile: Permission denied".

All cgi files and the directory cgi-bin are chmod 755 and transfered via ASCII.

I tried to change the .htaccess, because i have installed the script in a subdirectory - but still the same error.

Maybe its about the path to the tmp-directory - but i dont want to change the cgi-files without asking here...


Hope that someone can help me...



Greetz,

Christian

yabsoft
05-02-2007, 06:06 PM
Open cgi-bin/header.cgi, find
$tmp_dir="../temp";
after that, add
# set custom temporary for CGI.pm
$CGITempFile::TMPDIRECTORY = $TempFile::TMPDIRECTORY = $tmp_dir;

mediakreativ
05-02-2007, 06:27 PM
Thanks, now the upload is working perfectly!


Greetz,

Christian