1

I am new in moodle administration! I am using moodlem 3.2. logged in with administrator, if i open my own profile it redirects me to this page:

http://moodle_site.com/ExamOnline/user/profile.php?id=2

And it show this error message:

"Forbidden

You don't have permission to access /ExamOnline/user/profile.php on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."

same error message shows if i try to uninstall any moodle plugin

Rajeet
  • 37
  • 1
  • 8
  • URL NOT WORKING – Hacker Apr 20 '17 at 06:08
  • this is just the example to understand the directory and the file it is redirecting to! i.e. "user/profile.php" @Hacker – Rajeet Apr 20 '17 at 06:14
  • mode_security might be an issue. its happen for me like this problem after i enabled mode_security. i turned off mode_security. and all its ok my question, turn off mode_security its good solution? – Rachid Jun 30 '20 at 19:14

2 Answers2

2

There could be 2 possibilities:

  • profile.php file permission might not be correct or mode_security might be an issue.
  • The permission might not be enabled like user:editownprofile
Skatox
  • 4,237
  • 12
  • 42
  • 47
Bishwanath Jha
  • 399
  • 3
  • 10
  • yeah, mod_security was the issue, I have disabled it from the cpanel panel and it worked. Thank you for your help! – Rajeet Jun 07 '17 at 04:50
1

I had encountered similar issue in Namecheap hosting. Tried with this

<IfModule mod_security.c>
  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule>

inside .htaccess - but no luck.

Contacted tech support team and they disabled "mod_security" Web Application Firewall of Apache to fix it.