General developer forum

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

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

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: -
Picture of amy smith
Re: You don't have permission to access /user/profile.php on this server.
 

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

 
Average of ratings: -
Picture of Abrar Abeer
Re: You don't have permission to access /user/profile.php on this server.
 

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

 
Average of ratings: -
Matt Bury
Re: You don't have permission to access /user/profile.php on this server.
Particularly helpful MoodlersPlugin 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...


 
Average of ratings: -
Picture of Abrar Abeer
Re: You don't have permission to access /user/profile.php on this server.
 

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.

 
Average of ratings: -