• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue 403 error: Unable to access blog posts

DigitalSplendid

Regular Pleskian
Server operating system version
Plesk Hosting Stack on Ubuntu
Plesk version and microupdate number
18.0.44

Attachments

  • 1653549519440.png
    1653549519440.png
    251.7 KB · Views: 6
"Hello, DigitalSplendid,

Your web server has a permission issue to access a particular file.
I would like to suggest you one command that you can perform.
- find /var/www/vhosts/test.com/httpdocs/ -type d -exec chmod 755 {} \;
And please make sure that the path of the directory should be as per your website's."
 
On Lightsail terminal (SSH), used the following command:

/var/www/vhosts/webcosec.com/httpdocs

Here is the output (screenshot). It may be that I am not using SSH properly.
 

Attachments

  • Untitled design (8).png
    Untitled design (8).png
    472.7 KB · Views: 7
Please try the following commands on the command line.
(the '#' is to indicate you're logged in as root, you don't have to type that)

Code:
$ sudo su
<type your password>

# find /var/www/vhosts/webcosec.com/httpdocs/* -type d -exec chmod 0755 {} \; 
# find /var/www/vhosts/webcosec.com/httpdocs/$* -type f -exec chmod 0644 {} \;
 
Hello Digitalsplendid,

I am sorry but. I would still recommend you execute the command I suggested to you. as you have gone up to.

/var/www/vhosts/webcosec.com/httpdocs

Please, execute the full command.

find /var/www/vhosts/test.com/httpdocs/ -type d -exec chmod 755 {} \;
 
You gained root access after the first execution of the command:

$ sudo su

This is indicated by the # symbol at the beginning of the command line.
 
Please try the following commands on the command line.
(the '#' is to indicate you're logged in as root, you don't have to type that)

Code:
$ sudo su
<type your password>

# find /var/www/vhosts/webcosec.com/httpdocs/* -type d -exec chmod 0755 {} \;
# find /var/www/vhosts/webcosec.com/httpdocs/$* -type f -exec chmod 0644 {} \;

Here is the screenshot: https://www.canva.com/design/DAFCP5...share&utm_medium=link2&utm_source=sharebutton

Still getting 403 error https://webcosec.com/index.php/2022...iness-going-online-as-you-start-from-scratch/
 
Hi,

Can you please show the contents of the error_log after you've opened the blog posts?

Subscription -> Logs -> error_log
 
Back
Top