Can't copy site to server, permissions errors

Permalink
Hi, I hope someone can help. I'm trying to ftp a site from my local drive to the server and am getting permissions errors. I'm new to concrete5 and am starting to panic a bit.

Using the ftp program Fetch on the mac I get this error "Fetch couldn't put "site-name" because you do not have the required permissions for the local file or folder". I have six 550 errors which say "can't create directory: File exists". See screenshot attached.

This is my second c5 site and to test I'm uploading to the same server as worked fine on my first.

I think I'm doing this correctly. From what I remember on my first c5 site you copy your entire concrete installation folder from the htdocs directory onto the new server (around 30MB). I'm getting the errors when it has copied 98% of the data. At the start I did make sure that 'everyone' could Read & Write files.

Any help very welcome.
Thanks,
John

1 Attachment

 
TheRealSean replied on at Permalink Reply
TheRealSean
I am not to up with how the mac does it? so afraid I can not help to much with the errors, also the image is a little to small to read any legible text on my monitor

But a few general tips, if you are installing C5 to your server first check you have permissions to add to the actual folder,

755 Should be ok but I often use 775
ie httpdocs/c5/

Then are you uploading to a new section on the server? ie
yoursite.com/c5/ and yoursite.com/new_c5/

I would get these errors if I where to try and upload outside of my root folder, which is normally httpdocs/public_html/www so check to make sure you are within them.

I don't know if this will help but permission problems are usually due to trying put something where you are not allowed, like outside of the root folder
DanK replied on at Permalink Reply
Thanks Sean.

Let me get this right, should I do this?

mysite.com/c5 (the c5 folder should be set to 775)

I then copy my entire concrete5 installation from the htdocs directory of my hard disk into the new c5 folder that I just made on the server?

I've been reading about "chmod to 777 recursively" and starting to panic a bit as I haven't a clue what all of that means and am terrified that I wreck the site by doing something stupid with permissions.
TheRealSean replied on at Permalink Reply
TheRealSean
Yes, I do think 755 should work,

I tend to use 775 so members of the ftp group can also access the files
but the extra install should go into a separate folder, then to install you would just go to yoursite.com/c5

The recursive is normally something you do if you have installed it and need to change the owner of a set of folders/files but for concrete you only need to change the permissions of the
install directory to allow the addition of files
The packages folder the files folder and config folder,

and 775 for the htmldiff.py found in "concrete/libraries/3rdparties/"
DanK replied on at Permalink Reply
Sorry Sean just to confirm before I upload (which takes about half an hour...). I make a folder, called say c5 in the root of the site. I chmod that folder to 775. I then copy into that all of the contents from the htdocs volume of my HD (not the directory name, just the items inside starting with blocks and ending with updates).

Thanks again, your help is much appreciated.
TheRealSean replied on at Permalink Reply
TheRealSean
If you have access to the shell you can copy the concrete folder from your existing site,

cp /home/public_html/concrete /home/public_html/c5/concrete

That saves time, or zip the entire directory then unzip it inplace, A command I love to see run, (often taking less time to run then to type the command)

If you dont have access then yes just reupload the files, you could give 777 on the folder just to add the files, then drop the permissions after but you wont need to do this recursively
TheRealSean replied on at Permalink Reply
TheRealSean
To your question yes everything in your folder from blocks to updates (including the robots and .htaccess files) into a directory which you call c5(or whatever you would like to call it)