FTP settings to run back up website on different server

Ok i found where to enter the FTP settings to upload files to my second server but i’m getting this in the ftplog.

A permissions issue by the looks of it but how do i open access to store the files on my server??

Connected.
220 (vsFTPd 3.0.3)
USER=****
331 Please specify the password.
PASSWORD=****
230 Login successful.
TYPE I
200 Switching to Binary mode.
CWD /
250 Directory successfully changed.
no
PORT 192,168,0,157,249,76
200 PORT command successful. Consider using PASV.
STOR clientraw.txt
550 Permission denied.
141: 550 Permission denied.
PORT 192,168,0,157,249,77
200 PORT command successful. Consider using PASV.
STOR plaintext.txt
550 Permission denied.
141: 550 Permission denied.
PORT 192,168,0,157,249,78
200 PORT command successful. Consider using PASV.
STOR testtags.php
550 Permission denied.
141: 550 Permission denied.
PORT 192,168,0,157,249,79
200 PORT command successful. Consider using PASV.
STOR testtags.txt
550 Permission denied.
141: 550 Permission denied.
PORT 192,168,0,157,249,80
200 PORT command successful. Consider using PASV.
STOR webcam000.jpg
550 Permission denied.
141: 550 Permission denied.
Logging off from 2nd server grouped
QUIT
221 Goodbye.

probably the problem is with the remote directory you have in use
also it does say to use passive mode (not likely related to permission problem), so I would do that too

Passive mode is being used Brian but i agree the directory is the problem. In linux the default web directory is /var/www/html but as a root user the files wont send to that location. So after reading many guides i set up a var/www/web folder as User Weather so this should get me access but i can only ftp in sftp.
To Linux/Apache experts i’m sure this is basic stuff but i just need the information what i need to do so the WD files will go to /web folder and update the website.

normally its like
/public_html/

What webserver software are you running on the linux box?

Do you have an FTP client like Filezilla on the PC? If you connect with that you should see where you land on the server and the directory structure to work out the path to your webfiles. it will also show you the permissions on the directories.

I’m using Apache2 software to run the webserver in Ubuntu.
I have Filezilla and can get into the server but i’m getting 550 permission denied errors when trying to do anything with the files in the var/www/html folder.
I feel i’m close to getting this thing working but sometimes the last step is the hardest to work out.

Making some progress but files still not updating. This is what i’m getting in the FTP Log. It logs in and says directory has changed but none of the files update on the server. Getting closer to the goal but still not there yet.

Connected.
220 (vsFTPd 3.0.3)
USER=****
331 Please specify the password.
PASSWORD=****
230 Login successful.
TYPE I
200 Switching to Binary mode.
CWD /
250 Directory successfully changed.
TYPE A
200 Switching to ASCII mode.

Logging off from 2nd server grouped
QUIT
221 Goodbye.

looks like you might not have set any files to actually upload

You were right Brian i didn’t have the files ticked but now i have this

PASV
227 Entering Passive Mode (edited ip).
STOR plaintext.txt
553 Could not create file.
141: 553 Could not create file.
PASV
227 Entering Passive Mode (edited ip).
STOR testtags.php
553 Could not create file.
141: 553 Could not create file.
PASV
227 Entering Passive Mode (edited ip).
STOR testtags.txt
553 Could not create file.
141: 553 Could not create file.
PASV
227 Entering Passive Mode (edited ip).
STOR clientraw.txt
553 Could not create file.
141: 553 Could not create file.
PASV
227 Entering Passive Mode (edited ip).
STOR latest.csv
553 Could not create file.
141: 553 Could not create file.
Logging off from 2nd server grouped

Edited out my ip address

that looks like a permissions problem

Yes Brian i would thought so too. Just trying to figure how.
I’m the root user “mike” and i have set up another user “Weather” As mike root i have 775 permissions set up for the var/www/html folder. I’m thinking i need to change the owner to Weather as i read someplace the root/mike cannot edit or change anything in the www/html.
Another issue is i can’t FTP using the user Weather, i can only use SFTP using filezilla.

WD can be set to use SFTP

Can it be used when sending files to a second server Brian??

not for 2nd server grouped
but I could add that
I would need to know your ftp settings to add support (i.e to test)

I will PM you the FTP details Brian

As user Weather and using FTP i have access to the var/www/html folder. Now it seems the files are being created but they are not updating in the /html folder.

230 Login successful.
TYPE I
200 Switching to Binary mode.
CWD /html/
550 Failed to change directory.
141: 550 Failed to change directory.
TYPE I
200 Switching to Binary mode.

PASV
227 Entering Passive Mode (117,65,66,100).
STOR plaintext.txt
150 Ok to send data.
226 Transfer complete.
PASV
227 Entering Passive Mode (109,255,117,65,29,41).
STOR testtags.php
150 Ok to send data.
226 Transfer complete.
PASV
227 Entering Passive Mode (,117,65,43,225).
STOR testtags.txt
150 Ok to send data.
226 Transfer complete.
PASV
227 Entering Passive Mode (1,65,164,145).
STOR clientraw.txt
150 Ok to send data.
226 Transfer complete.
PASV
227 Entering Passive Mode (,117,65,203,94).
STOR latest.csv
150 Ok to send data.
226 Transfer complete.
Logging off from 2nd server grouped
QUIT
221 Goodbye.

This error:

CWD /html/
550 Failed to change directory.
141: 550 Failed to change directory.

so you aren’t in the /html directory when the files are uploaded

I think he has it working now from what I can tell via his last PM

That’s good :smiley:

Yes its working now. I changed the destination folder to var/www/html and files began to upload.
Back up of my website running from my own server here. So happy tonight

http://waterfordcam.ddns.net/index.php