Digital ocean

  Digital ocean

Tworzenie bazy danych

CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE nazwa_bazy;
GRANT ALL PRIVILEGES ON nazwa_bazy. * TO 'user'@'localhost';

mod_rewrite

w /etc/nginx/sites_available/default trzeba dodać nowy podkatalog i zezwolic na php $args

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

i zrestartować nginxa o tak

sudo service nginx restart