cloudy cloudy

Author Topic: FTP settings to run back up website on different server  (Read 354 times)

0 Members and 1 Guest are viewing this topic.

Offline mickopla

  • Posts: 242
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 68.0.3440.106
    • Waterford City Weather, Ireland
FTP settings to run back up website on different server
« on: August 12, 2018, 08:17:14 PM »
Recently i was having issues with my website due to remote server problems. I eventually got the issues fixed but it made me think about running a second version of my site on my own Linux server.

Where do i need to enter the FTP settings to achieve this?? There are quiet a lot of different sections where you can enter FTP details so wondering exactly whats needed to achieve my goal

Regards

Offline mickopla

  • Posts: 242
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 68.0.3440.106
    • Waterford City Weather, Ireland
Re: FTP settings to run back up website on different server
« Reply #1 on: August 14, 2018, 09:28:07 PM »
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.

Offline Weather Display

  • Posts: 84,709
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 67.0.3396.99
    • Weather Display
Re: FTP settings to run back up website on different server
« Reply #2 on: August 14, 2018, 10:47:40 PM »
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

Offline mickopla

  • Posts: 242
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 68.0.3440.106
    • Waterford City Weather, Ireland
Re: FTP settings to run back up website on different server
« Reply #3 on: August 14, 2018, 11:14:39 PM »
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.

Offline Weather Display

  • Posts: 84,709
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 68.0.3440.106
    • Weather Display
Re: FTP settings to run back up website on different server
« Reply #4 on: August 15, 2018, 11:10:41 PM »
normally its like
/public_html/

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,428
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 68.0.3440.106
Re: FTP settings to run back up website on different server
« Reply #5 on: August 15, 2018, 11:24:50 PM »
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.

Offline mickopla

  • Posts: 242
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 68.0.3440.106
    • Waterford City Weather, Ireland
Re: FTP settings to run back up website on different server
« Reply #6 on: August 18, 2018, 08:47:17 AM »
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.

Offline mickopla

  • Posts: 242
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 68.0.3440.106
    • Waterford City Weather, Ireland
Re: FTP settings to run back up website on different server
« Reply #7 on: August 18, 2018, 08:30:30 PM »
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.

Offline Weather Display

  • Posts: 84,709
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 68.0.3440.106
    • Weather Display
Re: FTP settings to run back up website on different server
« Reply #8 on: August 18, 2018, 09:09:23 PM »
looks like you might not have set any files to actually upload

Offline mickopla

  • Posts: 242
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 68.0.3440.106
    • Waterford City Weather, Ireland
Re: FTP settings to run back up website on different server
« Reply #9 on: August 18, 2018, 09:24:26 PM »
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
« Last Edit: August 19, 2018, 09:31:58 AM by mickopla »

Offline Weather Display

  • Posts: 84,709
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 68.0.3440.106
    • Weather Display
Re: FTP settings to run back up website on different server
« Reply #10 on: August 19, 2018, 03:47:19 AM »
that looks like a permissions problem

Offline mickopla

  • Posts: 242
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 68.0.3440.106
    • Waterford City Weather, Ireland
Re: FTP settings to run back up website on different server
« Reply #11 on: August 19, 2018, 09:53:59 AM »
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.

Offline Weather Display

  • Posts: 84,709
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 68.0.3440.106
    • Weather Display
Re: FTP settings to run back up website on different server
« Reply #12 on: August 19, 2018, 07:00:54 PM »
WD  can be set to use SFTP

Offline mickopla

  • Posts: 242
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 68.0.3440.106
    • Waterford City Weather, Ireland
Re: FTP settings to run back up website on different server
« Reply #13 on: August 19, 2018, 08:28:29 PM »
WD  can be set to use SFTP

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

Offline Weather Display

  • Posts: 84,709
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 68.0.3440.106
    • Weather Display
Re: FTP settings to run back up website on different server
« Reply #14 on: August 19, 2018, 08:56:21 PM »
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)