• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

login, register and add new listing wont work on website get forbiddon error

arnieA380

New Pleskian
Hi all

iv recently created myself a website and its hosted on my step brothers server ( he uses this plesk thing) now its been working fine but i carnt think what iv done if iv done anybody but basically now on the website
when i click login, register or add new listing i just get the following error message:

Error:
Forbidden
You do not have permission to access this document.

now when i check the plesk log file it says this:

[Tue Mar 22 23:20:59 2016] [error] [client 2.123.65.128] client denied by server configuration: /var/www/vhosts/sunnysidecaravanhire.co.uk/httpdocs/wp-content/themes/pointfinder/admin/core/pfajaxhandler.php, referer: http://sunnysidecaravanhire.co.uk/

please can somebody help me, its a new website and i need to get it back up and running ASAP as i have peopel waiting to signup

any help would be great

thank you
 
seems like permission issue

make sure all folders are 755 and files are 644,

CLI,

#cd /var/www/vhosts/sunnysidecaravanhire.co.uk/httpdocs/

# find * -type d -print0 | xargs -0 chmod 0755 # for directories

# find . -type f -print0 | xargs -0 chmod 0644 # for files
 
seems like permission issue

make sure all folders are 755 and files are 644,

CLI,

#cd /var/www/vhosts/sunnysidecaravanhire.co.uk/httpdocs/

# find * -type d -print0 | xargs -0 chmod 0755 # for directories

# find . -type f -print0 | xargs -0 chmod 0644 # for files


what does CLI mean, i dont get what all those command things are?

is their a way to make every folder set to 755 rather then doing each oen indivudually
 
im using the plesk web host edition tho as thats just what iv always used since my step brother allowed me use his server, their isnt a CLI in that is their
 
well, then your step brother who owns the server should be able to login to CLI and change the permission on your website.

or you can should be able to do it manually via plesk web host edition interface
 
ok i just dont know what this 755 and 644 is, all i see in file permissions next to each file/folder is letters such as cxw
 
Refer the image below for folder 755 and file 644 Permission
 

Attachments

  • Permission.jpg
    Permission.jpg
    11.2 KB · Views: 3
Hi arnieA380,

it might be, that your webserver version could have been upgraded to version 2.4, which leads to some necessary configuration file changes. Please see https://httpd.apache.org/docs/2.4/upgrading.html for detailed informations.

In short, I think that your configuration files ( located at: /var/www/vhosts/system/sunnysidecaravanhire.co.uk/conf ) have to be recreated/modified, because since apache 2.4, you will now have to use

Require all granted
instead of
Order allow,deny
Allow from all


and

Require all denied
instead of
Order allow,deny
Deny from all

Plesk has a very nice free extension, called "Plesk Webserver Configuration Checker" ( please see => Plesk Webserver Configuration Checker <= for additional informations to this extension ), which will help you to rebuild configuration files and check possible configuration failures.
 
ok as i only have acces to the plesk web host edition i can only see certain things so i cannot install the extention thing.
 
Back
Top