Overview
This project demonstrates the deployment of a LEMP (Linux, Nginx, MySQL, PHP) stack on an
Ubuntu server. The provided setup-script.sh script automates the installation and
configuration of Nginx, MySQL, and PHP. Additionally, it sets up a basic PHP application to
test the stack's functionality.
Script Breakdown
The setup-script.sh script performs the following actions:
- System Update: Updates and upgrades the system packages.
- Nginx Installation: Installs Nginx and starts the service. Configures
Nginx to serve a PHP application.
- MySQL Installation: Installs MySQL server and runs a secure
installation process. Sets up a database and user for the PHP application.
- PHP Installation: Installs PHP and necessary extensions.
- Nginx Configuration: Updates and upgrades the system packages.
- PHP Test Files: Creates a basic index.php file to display PHP
configuration information and a test_db.php file to test MySQL connectivity.
- Database Setup: Creates a MySQL database and user with the appropriate
privileges.
Technology