可从PHP配置、Linux系统设置及安全工具使用三方面加固,具体措施如下:
php.ini
mysqli
display_errors
open_basedir
eval
exec
session_regenerate_id
ufw
firewalld
www-data
root