Deploy source code famework Yii lên CentOS6

Mình có một VPS dùng VestaCP Apache và Nginx và 1 thư mục web fame work YII

Nhưng khi mình deploy lên thì báo (mặc dù mình đã làm mọi cách trên mạng chỉ nhưng không được)
=> Nhờ cao nhân giúp đỡ…^^ team view thì càng tốt

Forbidden
You don’t have permission to access / on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.15 (CentOS) Server at camnangmuasam.ga Port 80

Show cấu hình hiện tại của bạn đi: server apache hay nginx? nội dung file .htaccess? cấu trúc thư mục?

Mình dùng VestaCP: Apache, Nginx (Proxy), php 5.6.30.
Đây là file cấu trúc thư mục của mình

Mình dùng file index.php trong frontend/web/index.php để chạy./

#camnangmuasam
server {
listen 80;
listen [::]:80;

root /home/ntbao/www/camnangmuasam;
index index.php index.html;

server_name camnangmuasam.ga;

location / {
       try_files $uri $uri /index.php?$args;
    }

location /admin { try_files $uri $uri/ /admin/index.php?$args; }

location /assets {
            alias /home/ntbao/www/camnangmuasam/assets;
    }

location ~* \.(?:ico|css|js|gif|jpe?g|png|woff|woff2|svg|ttf|eot)$ {
	expires max;
	add_header Pragma public;
	add_header Cache_Control "public, must-revalidate, proxy-revalidate";
}

location ~ \.php$ {
	include snippets/fastcgi-php.conf;
	fastcgi_pass unix:/var/run/php5-fpm.sock;
	root /home/admin/web/camnangmuasam.ga/public_html/frontend/web;
}

location ~ /\.ht {
	deny all;
}

}

file asset của mình.

Đường dẫn của root bị sai kìa bạn :grinning:

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?