Tuesday, March 1, 2016

Security hardening : suPHP

Use suPHP
PHP files are run under the user of the website instead of the Apache user and globally reset all files (user,group,file and directory):
$ sudo chown -R user:group *
$ sudo find . -type f -exec chmod 644 {} \;
$ sudo find . -type d -exec chmod 755 {} \;

No comments:

Post a Comment