Since migrating my site to another server, I was able to successfully move all my nodes and configurations over, but not unusually, several problems sprang up that did not occur on the old server. They are:

An inability to upload files, rendering this message after each attempt:

* warning: move_uploaded_file(/tmp/OutCentral-2009-08-07T14-47-58.sql) [function.move-uploaded-file]: failed to open stream: No such file or directory in D:\Hosting\4636339\html\includes\file.inc on line 572.
* warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'D:\Temp\php\phpA48F.tmp' to '/tmp/OutCentral-2009-08-07T14-47-58.sql' in D:\Hosting\4636339\html\includes\file.inc on line 572.
* File upload error. Could not move uploaded file.

Configuration security warnings at the status report screen:

Configuration file Not protected
The directory sites/default is not protected from modifications and poses a security risk. You must change the directory's permissions to be non-writable. The file sites/default/settings.php is not protected from modifications and poses a security risk. You must change the file's permissions to be non-writable.

The ImageCache directory not being detected:

ImageCache Temp Directory /tmp is not writeable by the webserver.

Clean URLs won't enable, and the server doesn't appear to recognize any .htaccess or php.ini files in the root folder.

My best guess is that I need to somehow configure my access permissions for certain file directories. I know how to do that in an FTP client, but those changes have not worked and are only temporary.

Comments

dman’s picture

See this migration checklist
The fix for your /tmp problem is there at least.

g10tto’s picture

Thank you for the article. I'll take a look at this tonight.

Last night, I was able to create a tmp folder in the root folder, and create a php.ini file inside that with some code that was provided in one of the error messages. Then, since I later learned it was an ImageCache module problem, I created an imagecache folder inside the sites/default/files directory. I also tried changing the permissions for my sites/default/files folder using the command line, but that didn't work for some reason. So I logged in to my GoDaddy File Manager and did it there. For some reason THAT wouldn't let me change the permissions on my settings.php file, which I believe would have fixed the Config file error.

That appeared to solve both the upload issue and the tmp folder issue, but I'm still unable to use a php.ini file or .htaccess file in the root folder to affect anything, and I still get the annoying configuration file error and am without Clean URL's, which some modules require.

GDHosting’s picture

g10tto,

According to the path, D:\Temp\php\phpA48F.tmp, you're on a Windows server. Unfortunately our Windows servers don't let you update permissions on single files, essentially they're set through the parent directory. If you need to use .htaccess you're probably better off switching to Linux. More on that here: http://help.godaddy.com/article/1285

gregoiresan’s picture

Did this solved the uplaod and tmp issues ? Sorry, it isn't very clear to me ?

mikeshanklin’s picture

I'm Having This Exact Problem! ALL OF IT, to a tee! Any help would be DEEPLY appreciated! Every single problem I am having is listed in this post! Every single thing!

gregoiresan’s picture

Hi,

I got the same trouble. A little explaination on what to do to clear this up would be great and save us some time on solving this issue :)

cheers !

gregoiresan’s picture

Hi,

I fixed it with help found there : http://drupal.org/node/449292