K
K
konellemhs2019-12-28 04:51:07
Yii
konellemhs, 2019-12-28 04:51:07

How to run yii2 advanced on apache server?

I'm trying to run a yii2 advanced project on an apache 2.4.10 server.
The project was installed via composer.phar, it installed, executed php init (everything went without errors), in theory, I should see the site by going to /mysite.com/frontend/web, but it gives error
Forbidden
You don't have permission to access / on this server.
If I substitute .htaccess files (as on a local server, where everything works well), it gives a server error, could not complete the request. I, in my opinion, tried everything that is googled.
How to be?
What to do?
PS
I use test hosting beget,
apache 2.4.10,
php 5.6.40,
composer 1.8.6

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
konellemhs, 2020-12-30
@konellemhs

Found a solution! I did it according to this instruction, only the application was installed by advanced
https://bender-blog.ru/en/post/1/

B
BATPYIIIKOB, 2019-12-28
@BATPYIIIKOB

You don't have permission to access / on this server.
You don't have OS level access. Perhaps after deploying the files to the server, the root user was set as the owner of the files (directories.) Try to create index.html in the root and compare its owner and the owner of the files transferred to the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question