Is there anyone who can succeed to install craftcms?


#1

Hello

Is there anyone who can succeed to install craftcms? I am curious about craftcms, but I couldn’t succeed for installing that.

Here is my configuration file

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

server_name XXX.co.kr   www.XXX.co.kr;

access_log /var/log/nginx/XXX.co.kr.access.log rt_cache;
error_log /var/log/nginx/XXX.co.kr.error.log;


root /var/www/XXX/htdocs;



index index.php index.html index.htm;


include common/php7.conf;


include common/locations-php7.conf;
include /var/www/XXX.co.kr/conf/nginx/*.conf;

location ~* / {
  try_files $uri $uri/ @rewrites;
}

location @rewrites {
  rewrite ^(.*) /index.php?p=$1 last;
}

location ~ \.php$ {
  try_files $uri =404;
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  fastcgi_index index.php;
  include fastcgi_params;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

expires off;
error_page 404 /index.php;
client_max_body_size 300M;

}


#2

Simple command under root:

sudo ee site create example.com --mysql

then, upload files to webfolder under www-data, and from website folder under www-data user:

rm -rf htdocs
ln -s public htdocs

Next change db-data in craft/config/db.php and install it: http://example.com/admin Its working: http://craft.zorcastudio.org


#3