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

(Rusian Nitro) #1

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)

(Magikstm) #2

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:

(Rusian Nitro) #3

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

(Rusian Nitro) #4

Help me. Plaes

(Matthew Fay) #5

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

(Rusian Nitro) #6

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


(Magikstm) #7

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