main
Robert 2 years ago
parent 6eb8e9369c
commit 3cb39ca65b
  1. 7
      protected/README.MD

@ -27,7 +27,7 @@ $ sudo usermod -aG www-data newuser
$ sudo usermod -aG sudo newuser $ sudo usermod -aG sudo newuser
``` ```
## Pull Git repo ## Git clone repo to pull it
``` ```
$ sudo mkdir -p /var/www $ sudo mkdir -p /var/www
$ sudo chgrp www-data /var/www $ sudo chgrp www-data /var/www
@ -50,13 +50,16 @@ $ sudo systemctl enable mysql
# The following script will prompt you to perform various security-related actions. Follow the prompts to set a root password, remove anonymous users, disallow root login remotely, remove the test database, and reload the privilege tables. # The following script will prompt you to perform various security-related actions. Follow the prompts to set a root password, remove anonymous users, disallow root login remotely, remove the test database, and reload the privilege tables.
$ sudo mysql_secure_installation $ sudo mysql_secure_installation
# Change this password SJ6G*WyaV7PvvEts@vxjm used below in a couple of places! # Change this password SJ6G*WyaV7PvvEts@vxjm used below in a couple of places throughout this tutorial!
# Keep it as secure as that one was, run this command to make a new password
$ openssl rand -base64 18
# Enter your password assigned during setup, create a new user for the app to use. # Enter your password assigned during setup, create a new user for the app to use.
$ mysql -u root -p $ mysql -u root -p
> CREATE USER 'zoombox'@'localhost' IDENTIFIED BY 'SJ6G*WyaV7PvvEts@vxjm'; > CREATE USER 'zoombox'@'localhost' IDENTIFIED BY 'SJ6G*WyaV7PvvEts@vxjm';
> GRANT ALL ON cms.* TO 'zoombox'@'localhost'; > GRANT ALL ON cms.* TO 'zoombox'@'localhost';
> create database cms; > create database cms;
> exit
``` ```
## Import the tables.sql file: ## Import the tables.sql file:
``` ```

Loading…
Cancel
Save