Answer the question
In order to leave comments, you need to log in
How to set up a bunch of ubuntu 14 + ispmanager5lite + bitrix?
Hello colleagues!
Help, please, to understand. I decided to switch to VDS from regular hosting and ran into some problems, the situation is as follows:
The server is running Ubuntu14, ISPmanager 5 lite was installed by the support team, since it was purchased as a bundle. Initially, the server, apparently, has one user named root, from under it, as I understand it, all packages, apache php, etc. were installed.
The ISP panel itself creates its own www-root user, which serves as the default owner of everything that is created in this panel - ftp-users, etc.
Accordingly, I added a domain, uploaded a site on Bitrix, which already exists, to the domain folder, everything seems to be no error norms ... then I connect via FTP and try to fix the file and op .. does not allow uploading ... It turned out that the site folder was created from the user root, and ftp comes from the www-root user, and all folders and files have permissions of 755 or 644, and it turns out that www-root does not have write permissions.
Ok, let's go to the ISP file manager and change the owner of the folder with the site to www-root, after which ftp starts working properly, but another problem appears...
When testing the system, Bitrix finds errors File uploads, etc.,
at first I thought that php is configured incorrectly, but the reconfiguration did not help. The trouble turned out to be all in the same rights ...
Apache is owned by the root user... it turns out that when you try to do something from the Bitrix admin panel, you log in on his behalf, and at the same time, for some reason, root does not have write access to folders whose owner is www-root.
I hope it's not too confusing, since my head is already spinning from all these rights ...
Help, pliz, deal with these rights, how to set it up so that everything works without errors?
Answer the question
In order to leave comments, you need to log in
Everything was decided, I changed the APACHE_RUN_USER and APACHE_RUN_GROUP variables in the Apache settings to the same ones that FTP restarted Apache, the flight is normal now everything works from one user. I changed the variables in the envvars file, which is located in etc / apache2, it’s difficult to say how correct the solution is, but I didn’t find another one))
And well, by itself, I set the folder with the same owner and group for the folder with the site, the rights to folders 755 to files 644
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question