Disable Code Execution for Uploads directory Not Working
-
I’ve enabled this option and I see the htaccess file is in the uploads folder. Also, I just manually put a Hola.PHP file in there and it works when viewing it in a browser. How do I get this to work properly? I’m running PHP Version 7.2 on a VPS with cPanel.
************ .htacces code: **************
# BEGIN Wordfence code execution protection
<IfModule mod_php5.c>
php_flag engine 0
</IfModule>
<IfModule mod_php7.c>
php_flag engine 0
</IfModule>AddHandler cgi-script .php .phtml .php3 .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI
# END Wordfence code execution protection
************************************************************* Hola.php code ********************
<?php
echo “The time is ” . date(“h:i:sa”);
?>
**********************************************Thanks for your help!
- The topic ‘Disable Code Execution for Uploads directory Not Working’ is closed to new replies.