• 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

Resolved Wordpress new pages return 403 error - served with nginx

ido

New Pleskian
Hey, Just finished setting up my server.
But when I create new website with wordpress and create a new page when I view it it returns
Server Error
403
Forbidden
what am I missing?
The permalink setting is set to post name
and even when I use the default unlimited service plan I still get this error
in the security check
* Forbid execution of PHP scripts in the wp-includes directory
(can be reverted)
* Forbid execution of PHP scripts in the wp-content/uploads directory
(can be reverted)

are disabled. (tried also to enable and still nothing..)
What could it be?
thanks in advance!
 
Could you please check the owner and group of the document root directory of the website, it should be
Code:
<ftp username>:psaserv
If the directory is
Code:
<ftp username>:psacln
it can lead to the error described. In that case, simply change the group of the document root directory of the website, e.g.
Code:
# chown <ftp username>:psaserv <document root directory name>
 
Solved it, It wasn't permission problem.
I needed to add
location / {
try_files $uri $uri/ /index.php?$args;
}
had some problems also with that but solved that also.
Thanks anyway!
 
Back
Top