-
Rename
ansible/hosts.sample
toansible/hosts
-
Update the server config in the
hosts
file. -
Run the Ansible Playbook
cd ansible ansible-playbook -i ./hosts main.yml
-
Run
mysql_secure_installation
-
Create
opencfp
databaseCREATE DATABASE opencfp; CREATE USER 'opencfp'@'localhost' IDENTIFIED BY '$uperSecureP@ssw0rd'; GRANT ALL PRIVILEGES ON opencfp.* TO 'opencfp'@'localhost'; FLUSH PRIVILEGES;
-
Prepare folders
CFP_ENV=production script/setup chmod -R 777 cache chmod -R 777 log chmod -R 777 web/uploads chown -R www-data:www-data cache
-
Prepare Letsencrypt (https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04):
certbot certonly --webroot --agree-tos --no-eff-email --email [email protected] -w /var/www/letsencrypt -d cfp.phpconf.asia
-
Promote user
bin/console user:promote --env=production [email protected] admin