Hide ServerSignature / ServerTokens / PHP X-Powered-By in Apache

Hide ServerSignature / ServerTokens in Apache

Edit apache config file (apache.conf or httpd.conf)

#Disable ServerSignature
ServerSignature Off
#Disable ServerTokens
ServerTokens Prod

Hide PHP X-Powered-By in Apache

Edit php config file (php.ini)

#Hide PHP X-Powered-By
expose_php = Off