1. Open the following file:-
/pub/static/.htaccess
2. Comment out the following by adding a "#" in front of it:-
<IfModule mod_php5.c>
php_flag engine 0
</IfModule&dt;
<IfModule mod_php7.c>
php_flag engine 0
</IfModule&dt;
3. So they will look like this:-
<IfModule mod_php5.c>
#php_flag engine 0
</IfModule&dt;
<IfModule mod_php7.c>
#php_flag engine 0
</IfModule&dt;
You may also need to set the correct file permissions for Magento.