[ERROR 0 /index.php] Access to the script

I installed the script that I played a few times before, but I’m running it now. It’s a mistake
22/Nov/2018:05:23:02 +0000 [ERROR 0 /index.php] Access to the script ‘/home/bot/api’ has been denied (see security.limit_extensions)

Is server only using Caddy or it uses NGinx also?

What version of Caddy are you using?

What is your caddyfile?

What version of PHP are you using?

These may be helpful:

1 Like

No ngnix
caddy server ubuntu 16
caddyfile is script pwrtelegram
Php 7.0
Caddy 0.11.1

Help me. Plaes

I’m not familiar with this software. What does it use for a Caddyfile?

http://api.filebelink.tk, http://deepapi.filebelink.tk {
root api/
errors api.log
tls admin@ma-mitavanim.ir {
protocols tls1.0 tls1.2
rewrite {
to {path} /index.php
fastcgi / unix:/run/php/php7.0-fpm.sock {
index index.php


It looks like a security issue.

I would suggest following this tutorial for Ubuntu or a similar one:

Looks like an issue with this command or something related:

sudo chown www-data:www-data /home/bot/api
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.