A simple PHP script to check and display various web server statuses

How can I make the ‘Server information’ appear on my website? Right now, it doesn’t appear, possibly due to permissions.

My website:


You need to remove exec function from disable_functions directive inside php.ini conf file.

If you are using PHP 8.2 then you should remove it like this:

sed -i -E 's/(^disable_functions.*),exec(.*$)/\1\2/' /etc/php/8.2/fpm/php.ini

And after that, restart php service:

systemctl restart php8.2-fpm

Keep in mind that allowing exec function could be a security risk so remove it at your own risk.

Thanks for the response. Can I turn it off just for a specific website? So I don’t mess up the security for everything else.

No… Only server overall…