Answer the question
In order to leave comments, you need to log in
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:
Answer the question
In order to leave comments, you need to log in
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.
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;)
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 questionAsk a Question
731 491 924 answers to any question