I have a WordPress site running on my local network. I want to disable dangerous functions like system and exec as a safety precaution. This site is run with a simple PHP server instead of apache2 or nginx.
php -S 127.0.0.1:8001 -f /var/www/html/wordpress/
Since, disabling functions in the /etc/php/7.x/apache2/php.ini won’t matter. I could disable these functions in the /etc/php/7.x/cli/php.ini, but I just want them to be disabled to the WordPress site.Is there a way that I can go around this. My final goal is to prevent execution of those functions through the WordPress site.