Hello everyone,
I’ve just joined this forum, but I’ve been using DirectAdmin for more than 7-8 years. Unfortunately, my server has been hacked recently, and a large number of PHP files have been created in the /home/admin directory. Deleting them doesn’t resolve the issue, as the files keep getting recreated.
I’m not sure how to solve this problem, but one idea that came to mind is to prevent the execution of files in the /home/admin directory. I’m using nginx and my website’s backend is written in NodeJS, so I don’t need PHP at all. I’ve only kept PHP on the server for managing firewall and CSF settings within Direct Admin panel.
My question to you experts is: how can I completely prevent the execution of PHP scripts in the /home directory? Which configuration files and directories should I modify to apply this restriction?
Thank you.
I’ve just joined this forum, but I’ve been using DirectAdmin for more than 7-8 years. Unfortunately, my server has been hacked recently, and a large number of PHP files have been created in the /home/admin directory. Deleting them doesn’t resolve the issue, as the files keep getting recreated.
I’m not sure how to solve this problem, but one idea that came to mind is to prevent the execution of files in the /home/admin directory. I’m using nginx and my website’s backend is written in NodeJS, so I don’t need PHP at all. I’ve only kept PHP on the server for managing firewall and CSF settings within Direct Admin panel.
My question to you experts is: how can I completely prevent the execution of PHP scripts in the /home directory? Which configuration files and directories should I modify to apply this restriction?
Thank you.