• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

error 13 Permission denied (nginx and apache)

ankn99

New Pleskian
Hi,

I have a Unbuntu 14.04.3 LTS with Plesk 12.5 (latest Patch)

There seems to be a Problem when I create a subdomain.

I have Domain abc.com turned on processing by nginx plus 5.6.x php per fpm-nginx.
It is running, with joomla. To get a good listing in Google I activate in joomla URL rewriting and add the following to "additional NGINX Commands"

if ($args ~ "base64_encode[^(]*\([^)]*\)"){
set $rule_0 1;
return 403;
break;
}
if ($args ~* "(<|%3C)([^s]*s)+cript.*(>|%3E)"){
set $rule_0 1;
return 403;
break;
}
if ($args ~ "GLOBALS(=|\[|\%[0-9A-Z]{0,2})"){
set $rule_0 1;
return 403;
break;
}
if ($args ~ "_REQUEST(=|\[|\%[0-9A-Z]{0,2})"){
set $rule_0 1;
return 403;
break;
}

#ignored: "-" thing used or unknown variable in regex/rew
if ($uri !~ "^/index\.php"){
set $rule_2 1$rule_2;
}
if (!-f $request_filename){
set $rule_2 2$rule_2;
}
if (!-d $request_filename){
set $rule_2 3$rule_2;
}
if ($rule_2 = "321"){
rewrite /.* /index.php last;
}
It runs perfectly.

I add a subdomain with nginx and fpm-php per nginx turned on also.
I add the same lines like above and right after this Moment I send this to the Server, all pages from this Domain aint working anymore.

I can read in the logfile error 13 permission denied, stat() Errors but only for this Domain, I was working at.

So I deinstalled PHP Versions, took a look at the file permissions. I even compared the diffenrent config files for Apache and NGINX (I still had another side with a different domainname still working)

I was looking für 2 Days for Solutions in the Internet, no luck at all ...

Today I thought about the errormessages and I saw, there must be a PRoblem with the permissions right after I installed the subdomain ....

So I goo... for the Words "permission plesk restore"

I found a side that described a totaly other Problem but at the end, there was a permission Problem too.

The Comman that helped was:

/usr/local/psa/bin/repair --restore-vhosts-permissions

This one solved the Problem ....

I did everything again, by deleting the subdomain and configuring everything again.
Error showed up, bothe sides ... the one at the main Domain and the subdomain stoped working ... but only for the .html and .gif .svg etc. Parts ...
The .php Files where proccessed without any problems, only the static files have had the permission problem.

So I think, Plesk should add the Command right after the changes where done at the php configuration by the Interface ..

I hope, that helps other peoples ;-)

sincerly ankn99 and greets from Berlin
Please excuse my english, Im from Germany ......
 
Back
Top