Game Over!
Verified User
- Joined
- Jan 19, 2018
- Messages
- 13
I read this article about PHP handlers.
I use "suPHP" for my sharing hosting always but my friend has a website and bought a VPS for that. I installed PHP 7.3 with mod_php . His website has been hacked recently and I cleaned that but I couldn't find the vulnerability and I think it's still vulnerable. Of course I installed CSF+WAF+CXS and other security staffs.
Now recently I figured out many of files don't work fine and they face error:
So I changed the folder permission and set it to 757 or 777 and now scripts work fine but I just wanna know what is best practice for it?
Because I know 444, 666, 777 are so dangerous and I really don't wanna they hack again.
So what should I do know? is there anything to fix permissions like "SuPHP" ? Should I change handler to "suPHP" ? Is mod_php my best choice?
I use "suPHP" for my sharing hosting always but my friend has a website and bought a VPS for that. I installed PHP 7.3 with mod_php . His website has been hacked recently and I cleaned that but I couldn't find the vulnerability and I think it's still vulnerable. Of course I installed CSF+WAF+CXS and other security staffs.
Now recently I figured out many of files don't work fine and they face error:
Meanwhile the file permission is 644 and folder permission is 755Warning : failed to open stream. permission denied in path/to/file.php line X
So I changed the folder permission and set it to 757 or 777 and now scripts work fine but I just wanna know what is best practice for it?
Because I know 444, 666, 777 are so dangerous and I really don't wanna they hack again.
So what should I do know? is there anything to fix permissions like "SuPHP" ? Should I change handler to "suPHP" ? Is mod_php my best choice?
Thanks in advance
- Centos 7x64
- Latest DA
- Opencart as main website
- Wordpress as blog
- PHP 7.3
- mod_php
- CSF
- CXS
- ComodoWAF
- Mod_Security
- secure_php : Yes
- htscanner : No
- suhosin : Yes
- mod_ruid2 : No