Jump to content

Cannot Configure Sftp Backup On Https


Alk

Recommended Posts

My Blesta install is v3.4.3 with PHP 5.4 & 10.0.18-MariaDB. Importantly, I am using Blesta on https. I am using Windows 7.

 

I am unable to configure my SFTP backup settings (Settings -> System -> Backup -> Secure FTP) on the page https://mydomain.com/admin/settings/system/backup/ftp/. I enter all of the details and click on the Update Settings button. In Google Chrome, I am then redirected back to the root address of the client portal (ie. https://mydomain.com/) and my settings are not saved. Additionally, in Google Chrome, I am unable to press "test these settings" because Google Chrome is blocking a script from an unauthenticated source (see screenshot).

If I use Internet Explorer, and press to "test these settings", nothing happens. If I enter the backup details and then click on the Update Settings button, I am also redirected back to the root address of the client portal and the settings are not saved.

I have a development install of Blesta on non-https (admittedly it is also on a different server) and I can test and save the connection details without issue using Google Chrome.

You will see from the attached screenshot that there appears to be a bug in that the script regarding the "test these settings" is trying to load from the non-https address of my Blesta install.

 

Consequently, I am unable to take an automated Backup of my Blesta install, which is quite an issue for me at present.

 

Thank you for your help.

Edited by alankru
Link to comment
Share on other sites

Do you have PHPIDS installed? Settings > Company > Plugins 

 

PHPIDS can do redirects if the impact rating is high enough to trigger it. If PHPIDS is enabled, I suggest disabling it or adjusting the impact rating accordingly, at least until after you do what you need to do.

Link to comment
Share on other sites

You misssed what OS your server is using and are you using a control panel, are you using CloudFlare or Nginx?

 

Sorry, it's CloudLinux/cPanel/Apache. No Cloudflare.

 

Do you have PHPIDS installed? Settings > Company > Plugins 

 

PHPIDS can do redirects if the impact rating is high enough to trigger it. If PHPIDS is enabled, I suggest disabling it or adjusting the impact rating accordingly, at least until after you do what you need to do.

 

Thanks Paul but I don't have this installed.

Edited by alankru
Link to comment
Share on other sites

Sorry, it's CloudLinux/cPanel/Apache. No Cloudflare.

 

 

Thanks Paul but I don't have this installed.

 

Are you using CageFS with CloudLinux? If so, the mysqldump binary may not be available.

 

If PHPIDS is not installed, I don't know why it would redirect to the index, I would be interested in seeing what your access_log looks like for those requests.

Link to comment
Share on other sites

Hi Paul,

 

Thank you very much for your help. Due to an unrelated issue, my webhost has moved my account to another server. Consequently, the SFTP backup settings are now saving correctly and I have successfully sent a backup offsite. So it must have been something about the server that my account was previously on (both servers appear to be setup very similarly with CageFS). Really odd, but I am relived that it is now working.

 

Thanks for everyone's help and sorry to have wasted your time as this is not a bug.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...