Site icon Hip-Hop Website Design and Development

The way to disable PHP features in WordPress?

I’ve a WordPress website operating on my native community. I need to disable harmful features like system and exec as a security precaution. This website is run with a easy PHP server as an alternative of apache2 or nginx.

php -S 127.0.0.1:8001 -f /var/www/html/wordpress/

Since, disabling features within the /and so on/php/7.x/apache2/php.ini will not matter. I may disable these features within the /and so on/php/7.x/cli/php.ini, however I simply need them to be disabled to the WordPress website.Is there a method that I can go round this. My remaining objective is to stop execution of these features by the WordPress website.