S
S
Sergey Beloventsev2018-02-02 09:45:27
Yii
Sergey Beloventsev, 2018-02-02 09:45:27

How to fix 403 Forbidden You don't have permission to access / on this server error?

I use heroku to deploy yii2, but I got an error 403 Forbidden You don't have permission to access / on this server found that this error is solved by Procfile.txt, but I didn’t understand where to put this file and what settings to specify in it.
here is
heroku logs
[Fri Feb 02 06:57:35.114423 2018] [autoindex:error] [pid 119:tid 140078179964672] [client 10.141.244.173:24243] AH01276: Cannot serve directory /app/: No matching DirectoryIndex (index.php ,index.html,index.htm) found, and server-generated directory index forbidden by Options directive, referer: https://dashboard.heroku.com/
2018-02-02T06:57:35.116929+00:00 app[web .1]: 10.141.244.173 - - [02/Feb/2018:06:57:35 +0000] "GET / HTTP/1.1" 403 209 " https://dashboard.heroku.com/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
[email protected]:/var/www/yii2phone.loc#

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alyosha, 2018-02-02
@digna

this is not a bug not of the framework, but of your settings for connecting to the database

S
SagePtr, 2018-02-02
@SagePtr

Or the server does not have permission to read your files that you have uploaded. In any case, look at the server logs.

B
Boris Syomov, 2018-02-02
@kotomyava

Put in the root.
All the necessary settings are in the mass of step by step manuals that are googled on 'yii2 heroku'. I don't think you're the only one with a problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question