apache user www-data hack my websites and my vps
my vps's environment is debian6+apache+mysql+php.
there are some websites built by wordpress, zen-cart,magento,prestashop,dedecms
now I found a problem that the user "www-data" occupies almost all CPU and Memory to uploads a lot of virus files into dedecms's website and send out large amounts of malicious traffic.
could you tell me how to solve the problem?
now ,I am trying to delete all the virus files and limit writing permission of the user "www-data"
could you show me how to limit the user "www-data" without affecting website's running ,because it seems the wordpress is using the user "www-data" to do some functions.
thanks
4 Replies
However, it does not necessarily need to have write access. See this Linode guide
You will find it impossible to completely clean up your existing system. You need to start with a new install. The problem is whatever service that was compromised, probably one of your web services. With your new install, make sure you are using web services that have the latest security patches. Otherwise it will just be compromised again.