I have drupal 6.9 installed on a local server for testing purposes and on a shared hosting account for my production site. When I'm ready to move my site updates from my local server to the production site, I backup my sites folder on the remote site and the remote database from phpmyadmin. I then ftp my sites/all/ folder from my local site to the remote site. Finally, I import my local database into the remote database with phpmyadmin.
The problem I'm running into is in trying to ftp my sites/default/files folder from my local server to the remote server. Here's an example of the type of error I get when trying to upload a file:
/public_html/drupal-6.9/sites/default/files/slideshowcs/ - error occurred - Unable to create remote folder /public_html/drupal-6.9/sites/default/files/slideshowcs/. Access denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured.
sites:default:files:slideshowcs:slide1.jpg - user cancelledFile activity incomplete. 1 file(s) or folder(s) were not completed.
Files with errors: 1
/public_html/drupal-6.9/sites/default/files/slideshowcs/
Naturally, I've tried changing the folder permissions for /default, and /sites to 777 but this had no effect. When I try to change the permissions of the /files folder itself, (which is currently set at 775) it just fails. I've been making these permission changes with my ftp program, and through the file manager in cpanel. I do not have command line access.
My ultimate goal is to upload a series of JPG files into the files directory so that I can use the slideshowcs module to display a slideshow. Is this not the type of use that the files folder is intended for?
I've been just hitting a wall with this for 2 days, and would appreciate any advice.
Thanks in advance.
Comments
Try creating a directory
Try creating a directory (empty) /public_html/drupal-6.9/sites/default/files/slideshowcs/ on your remote site first... before trying to upload.
www.ZuNOB.com
Thanks for the tip, but I
Thanks for the tip, but I finally solved the problem by completely deleting my files folder on the remote server, and then uploaded my local copy. Still wish I knew the reason behind the problem though.
I try your solution but
I try your solution but does not work. I can't change the permission, because the owner is apache. I can't use FTP on this folder. No download, no upload.