N
N
NeuroPastor2020-03-18 19:15:15
linux
NeuroPastor, 2020-03-18 19:15:15

How to make sshfs and bitrix friends?

Colleagues, good evening!
So, given:
70 sites on (some very old, I won’t tell you the exact version now) Bitrix in multisite mode on one server on CentOS. Sites fall with enviable regularity - users can "eat" 10-15GB of space per day in the style of "I didn't press anything, it's on its own."
Task:
Distribute to different servers, maintaining multisite (budgetary organization - not ready to buy 70 licenses), in groups of 10 pieces. Vestacp is installed on each server + these servers are proxied through two parallel reverse proxy servers.
Problem:
I mount with one sshfs folder (in advance, on the file-cleaning server, I neatly folded them into one folder, assigned rights, because there is one username on child servers) /bitrix and /upload to a folder using sshfs, I make a symlink to the directory, and Apache ( in this case, httpd) complains that the symlink is not available:

Symbolic link not allowed or link target not accessible:


At the same time, FollowSymLinks is in the httpd config, I tried other variations.

Where to dig? Does anyone have any ideas?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexey Dmitriev, 2020-03-18
@SignFinder

1. The standard system for mounting network resources for linux is NFS.
Why mess with sshfs?
2. You can set quotas, then all sites will not fall, but only the one where the file quota is exceeded.

R
Ronald McDonald, 2020-03-18
@Zoominger

Sorry, why sshfs? Mounted via cifs-utils.

V
Victor Taran, 2020-03-19
@shambler81

such a scheme will not work ; a
backup of such an upload will be done for several days.
You need to move to Yandex cloud and not e.. brains;)

A
Alexey Blyshko, 2020-03-21
@nekt

It has already been said above that this should not be done.
But if you really want to - you can try to run sshfs from the user of the web server, as far as I remember, by default there is a restriction on the user that opened access. The rest do not see anything in the connection.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question