You don't have permission to access /user/profile.php on this server.

You don't have permission to access /user/profile.php on this server.

by Abrar Abeer -
Number of replies: 4

Hello, I am using moodle 3.4.2

Suddenly I am facing a problem with my moodle site. When I click on profile, it turns into an error. 

403 error

How to recover this error?


N.B: I am using a shared hosting.

Average of ratings: -
In reply to Abrar Abeer

Re: You don't have permission to access /user/profile.php on this server.

by amy smith -

They are doing an upgrade. It may be interfering. I can not access my Moodle Cloud site.

In reply to amy smith

Re: You don't have permission to access /user/profile.php on this server.

by Abrar Abeer -

Are you sure this issue is happening because of the upgrade?? 

In reply to Abrar Abeer

Re: You don't have permission to access /user/profile.php on this server.

by Matt Bury -
Picture of Plugin developers

Hi Abrar,

It may be that file permissions in one or more directories and/or files have been changed. Has anyone been working on the server, e.g. via command line or FTP?

Find out who the owner of /user/profile.php is:

$ ls -l /path/to/moodle/user/profile.php

On a commonly configured server, it should be something like:

 -rw-r--r-- www-data www-data etc...


In reply to Matt Bury

Re: You don't have permission to access /user/profile.php on this server.

by Abrar Abeer -

Well still I couldn't figure it out how to fix this. Does anyone know why this error is happening specifically? 

I am using a shared hosting.