Access denied with code 403 (phase 4)

Posted May 29, 2020 73 views
ApacheUbuntu 18.04

Hello, I Installed a moodle platform in my subdomain with no problem at all, when i was configuring the appearence, it show me the error 403, and since that i cant accces. Using plesk i saw this error in the log of the subdomain:

ModSecurity: Access denied with code 403 (phase 4). Match of "rx (?:\\\\b(?:gif|(?:cws|f(?:lv|ws)|i(?:d3|hdr|nterplay)|m(?:ovi|thd)|r(?:ar\\\\!|iff)|varg|(?:ex|jf)if)\\\\b)|B(?:%pdf|\\\\.ra)\\\\b)" against "RESPONSE_BODY" required. [file "/etc/apache2/modsecurity.d/rules/comodo_free/16_Outgoing_FilterPHP.conf"] [line "20"] [id "214630"] [rev "1"] [msg "COMODO WAF: PHP source code leakage|||F|3"] [data "Matched Data: <? found within RESPONSE_BODY: <!DOCTYPE html>\\x0a<html dir=\\x22ltr\\x22 lang=\\x22es\\x22 xml:lang=\\x22es\\x22>\\x0d\\x0a<head>\\x0d\\x0a <title>New Oxford Preschool</title>\\x0d\\x0a <link rel=\\x22shortcut icon\\x22 href=\\x22\\x22 />\\x0d\\x0a <meta http-equiv=\\x22Content-Type\\x22 content=\\x22text/html; charset=utf-8\\x22 />\\x0a<meta name=\\x22keywords\\x22 content=\\x22moodle, New Oxford Preschool\\x22 />\\x0a<link rel=\\x22..."] [severity "ERROR"] [tag "CWAF"] [tag "FilterPHP"] [hostname ""] [uri "/index.php"] [unique_id "Xs@4o55QHcKW7RJ7kLofVwAAAEM"].

I suppose it is an error on permissions, i´ve already give -R 0770 to my moodledata directory and i proved with -R 777 to all my subdomain directory but with the same result, error 403. I appreciate a lot your help!!

edited by MattIPv4
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!