G
G
giggigi2011-08-26 12:50:40
Nginx
giggigi, 2011-08-26 12:50:40

Site files are deleted when configuring nginx (CentOS)

Hello. Due to high loads, we decided to switch from Apache to nginx + Apache.
The server is running CentOS.
I have little experience in setting up such a bundle, but the fact is that during setup, files in the directory with the site that I set up periodically rub against (all .php, .htaccess, a bunch of others and several files deeper than the root, the directories are not touched) .
Regularities at what time and why they are removed could not be identified.

We decided that everyone should mind their own business and asked the admin from the hoster to set up the same for us.
The admin did not believe in such a poltergeist and began to accuse us of sitting and rubbing files :)
As a result, he could not do anything and returned everything as it was - the files were no longer deleted.

Hence the questions:
1. Has anyone encountered such a problem?
2. What could be the matter?
3. Is it possible to track which process is rubbing files?

I will be very grateful for your help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nitalaut, 2011-08-26
@nitalaut

1) Check all the crowns, maybe something is written there.
2) Change the password for ftp access to the site.
3) chown -R www-data.www-data /var/www where www-data is the user under which nginx is running and /var/www is the site root.
If the deletion continues after that, then either root does it or there is a vulnerability in the site code.
Njinx probably has nothing to do with it if the latest version is installed.

V
VBart, 2011-08-26
@VBart

Nginx has nothing to do with it, it does not know how to do this. Look for the problem somewhere else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question