Changes between Version 20 and Version 21 of Csle2022/Agenda/databaseandweb


Ignore:
Timestamp:
Nov 30, 2022, 6:08:14 AM (2 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/databaseandweb

    v20 v21  
    8686}}}
    8787
    88 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Csle2022/Agenda/databaseandweb/web2a.png)]]
    89 [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/Csle2022/Agenda/databaseandweb/web2b.png)]]
     88{{{
     89
     90
     91NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
     92      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
     93
     94In order to log into MariaDB to secure it, we'll need the current
     95password for the root user. If you've just installed MariaDB, and
     96haven't set the root password yet, you should just press enter here.
     97
     98Enter current password for root (enter for none):
     99OK, successfully used password, moving on...
     100
     101Setting the root password or using the unix_socket ensures that nobody
     102can log into the MariaDB root user without the proper authorisation.
     103
     104You already have your root account protected, so you can safely answer 'n'.
     105
     106Switch to unix_socket authentication [Y/n] n
     107 ... skipping.
     108
     109You already have your root account protected, so you can safely answer 'n'.
     110
     111Change the root password? [Y/n] y
     112New password:
     113Re-enter new password:
     114Password updated successfully!
     115Reloading privilege tables..
     116 ... Success!
     117
     118
     119By default, a MariaDB installation has an anonymous user, allowing anyone
     120to log into MariaDB without having to have a user account created for
     121them.  This is intended only for testing, and to make the installation
     122go a bit smoother.  You should remove them before moving into a
     123production environment.
     124
     125Remove anonymous users? [Y/n] y
     126 ... Success!
     127
     128Normally, root should only be allowed to connect from 'localhost'.  This
     129ensures that someone cannot guess at the root password from the network.
     130
     131Disallow root login remotely? [Y/n] y
     132 ... Success!
     133
     134By default, MariaDB comes with a database named 'test' that anyone can
     135access.  This is also intended only for testing, and should be removed
     136before moving into a production environment.
     137
     138Remove test database and access to it? [Y/n] y
     139 - Dropping test database...
     140 ... Success!
     141 - Removing privileges on test database...
     142 ... Success!
     143
     144Reloading the privilege tables will ensure that all changes made so far
     145will take effect immediately.
     146
     147Reload privilege tables now? [Y/n] y
     148 ... Success!
     149
     150Cleaning up...
     151
     152All done!  If you've completed all of the above steps, your MariaDB
     153installation should now be secure.
     154
     155Thanks for using MariaDB!
     156}}}
    90157
    91158To login MariaDB enter below command and use the password entered above.
     
    242309== Add domains to the hosts file in Linux ==
    243310
    244 To add domains to the hosts file edit the hosts file as below.
     311To add domains to the hosts file edit the hosts file as below. Once done save it.
    245312
    246313{{{