***DISCLAIMER***
The author of this site makes no warranties, express or implied, and assumes no responsibility for the use of the materials presented here. Any use of these materials is strictly at the risk of the user.
The author of this site makes no warranties, express or implied, and assumes no responsibility for the use of the materials presented here. Any use of these materials is strictly at the risk of the user.
Error uploading files to Movable Type
(Article ID: 000916)
SummaryWhen hosting Movable Type 2.661 on an NT-based server and a user attempts to upload a file using Movable Type's upload features, one of the following error messages is returned:
Got an error: CGI open of tmpfile: Permission Denied
Got an error: CGI open of tmpfile: No such file or directory
Step-by-step instructions
To fix this error, do the following:
- Navigate to the directory where Movable Type is installed.
- Open the directory
extlib
.
- Open the file
CGI.pm
in a text editor (WordPad...not Notepad).
- Click Edit>Find.
- Type
TMPDIRECTORY
and press ENTER.
NOTE: The line of interest is:
# $CGITempFile::TMPDIRECTORY = '/usr/tmp';
- Remove the
#
from the beginning of the string.
- Change the directory path between the single quotes to point to the temporary directory you wish to use.
NOTE: At the time of this writing, the/usr
part of the directory was taken away and a directory calledtmp
was created in the root of the system drive.
- Save the changes to the file and close the text editor.
NOTE: If WordPad is used, a notice saying "You are about to save the document in a Text-Only format, which will remove all formatting. Are you sure you want to do this?" Click Yes.
- Navigate to the location where you want the new temporary directory to reside and create it.
- Right click on the new directory and select Properties.
- Click on the Security tab.
- Click on Add.
- Select the Internet Guest Account and click Add.
NOTE: The Internet Guest Account starts withIUSR_
and ends with the NetBIOS name of the computer or domain.
- Click OK.
- Grant the user Modify permissions and click OK.
***DISCLAIMER***
The author of this site makes no warranties, express or implied, and assumes no responsibility for the use of the materials presented here. Any use of these materials is strictly at the risk of the user.
The author of this site makes no warranties, express or implied, and assumes no responsibility for the use of the materials presented here. Any use of these materials is strictly at the risk of the user.