June 2025
Beginner to intermediate
473 pages
13h 30m
English
The starting point for this example is a web server for customer accounts. When placing an order, customers receive their own database and can access the web application via their own address:
https://example.com/name
The following Bash script takes care of the initialization work required when a new account gets set up:
Creating and initializing a new MySQL database
Creating a new MySQL user and enabling it to access the database
Setting up the /var/www/html/name directory
Creating a configuration file in that directory
Sending an email to the customer with the login data
On a server I maintain, I actually use a script that works in this way. For didactic reasons, I have greatly simplified ...
Read now
Unlock full access