• Resolved sahuaro007

    (@sahuaro007)


    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!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable Code Execution for Uploads directory Not Working’ is closed to new replies.