# 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
# Change this password SJ6G*WyaV7PvvEts@vxjm used below!
# Change this password SJ6G*WyaV7PvvEts@vxjm used below in a couple of places!
# 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';
@ -26,11 +39,16 @@ $ mysql -u root -p
```
```
## Import the tables.sql file:
## Import the tables.sql file:
```
```
$ pushd protected/src
$ pwd
# You should be in /var/www/cms/protected/src
# Do not use the root user for cms app!
$ mysql -u cms -p cms < tables.sql
$ mysql -u cms -p cms < tables.sql
enter this password when prompted: SJ6G*WyaV7PvvEts@vxjm
enter this password when prompted: SJ6G*WyaV7PvvEts@vxjm
$ popd
```
```
The config.php file is in the protected/src folder.
You may want to edit the config.php file which is in the protected/src folder.
```
```
define( "BLOG_NAME", "Widgetz Newz" ); // Display Name for Titles
define( "BLOG_NAME", "Widgetz Newz" ); // Display Name for Titles
```
```
@ -39,6 +57,7 @@ define( "BLOG_NAME", "Widgetz Newz" ); // Display Name for Titles