
Course Description
Become an Expert in LAMP - Installation & Configuration
As Wikipedia states, "LAMP is an acronym for a set of free software used to build web servers."
The original acronym refers to the following software:
"Linux," the operating system (GNU/Linux);
"Apache," the web server;
"MySQL or MariaDB," the database server;
Originally, "PHP," "Perl," or "Python," the scripting languages.
Even though the authors of each of these programs did not coordinate to build LAMP platforms, this software combination became popular due to its low overall cost and the presence of all these components in most GNU/Linux distributions.
I have been using this technology for years, and its open-source nature is a major factor in my enthusiasm for it, as well as its continued success within a large part of the profession for decades.
Training Objectives
My goal is to cover this vast subject as comprehensively as possible, ensuring that I provide you with clear, concise, and insightful answers to each question.
Prerequisites
Linux operating system (virtual machine, server + RDP, SSH access, or desktop environment)
Hardware: 64-bit CPU recommended
Target Audience
This course is designed for individuals who already have a general understanding of computer science, tangible programming experience, and a basic understanding of web application and/or website architecture.
# Project Overview
Implementation of a Complete, Ready-to-Use LAMP Environment
Chapter 1
Description of the Environment - The LAMP environment is a commonly used open-source software stack for web application development.
Chapter 2
Complete Installation - This is a detailed guide to installing and configuring a complete LAMP server on a Linux distribution.
Chapter 3
Fine Tuning - To fine-tune and secure your LAMP stack, there are several additional steps you can follow.
Chapter 4
Usage Examples - Here are some examples of using the LAMP stack with instructions on how to get started with each type of application.
Chapter 5
Log Files - Here are the main log files you might encounter in each component of the LAMP stack.
Chapter 6
Wireshark Remote SSH Server - Run The Wireshark graphical interface on a remote server and display it locally on your machine
Chapter 7
Fail2Ban - Fail2ban is an essential security tool in a LAMP environment
Chapter 8
Protocols - Here are the main protocols used in each component of the LAMP stack
Chapter 9
Update - Here is a step-by-step guide to updating each component
Chapter 10
PHPUnit - Here is a guide to installing, configuring, and using PHPUnit in a LAMP stack
Introduction
The LAMP stack is an open-source software stack commonly used for web application development. LAMP is an acronym representing the four main components of this stack:
Linux: The operating system. Linux is chosen for its robustness, security, and flexibility. Many Linux distributions exist, each suited to different needs (Ubuntu, CentOS, Debian, etc.).
Apache: The web server. Apache HTTP Server is one of the most widely used web servers in the world. It is known for its reliability, performance, and flexibility thanks to its modules that allow for the addition of extra features.
MySQL: The relational database management system. MySQL is used to store and manage the web application's data. It is valued for its speed, efficiency, and compatibility with many systems.
PHP: The programming language. PHP is a server-side scripting language embedded in HTML, widely used for web development. It is appreciated for its simplicity and its ability to easily integrate with MySQL.
How the LAMP Environment Works
Linux: This is the foundation of the LAMP environment. It provides the platform on which the other components run. The web application files, the Apache web server, and the MySQL database are all installed on Linux.
Apache: Apache receives requests from clients (web browsers) and serves the appropriate web pages in response. Apache can process both static and dynamic pages. When a PHP page is requested, Apache forwards the request to PHP for processing.
How the LAMP Environment Works
MySQL: MySQL stores the web application's data. When information is needed (for example, to retrieve information about a user), PHP sends an SQL query to MySQL, which then returns the requested data.
PHP: PHP processes requests on the server side. When a PHP page is requested by Apache, PHP executes the code, interacts with the MySQL database if necessary, and generates the HTML to send to the client's browser.
Advantages of LAMP
Open Source and Free: All LAMP components are open source, reducing costs for developers and businesses.
Flexibility and Customization: Each component can be customized and configured to meet specific project needs.
Community and Support: A large developer community uses and supports LAMP, facilitating troubleshooting and access to learning resources.
Compatibility and Integration: LAMP components are designed to work together seamlessly, simplifying the development and deployment of web applications.
Disadvantages of LAMP
Performance: For very large applications or those requiring high performance, LAMP may have limitations compared to more specialized solutions.
Maintenance: While each component is powerful, managing and maintaining the entire stack can require significant technical expertise.
Conclusion
In summary, the LAMP environment is a proven solution for web development, offering a solid and flexible foundation for creating robust and scalable web applications.
Introduction
LAMP is an acronym for a set of free software commonly used together to run web servers: Linux, Apache, MySQL/MariaDB, and PHP. This is a detailed guide to installing and configuring a complete LAMP server on a Linux distribution (we will use Linux Mint as an example).
Step 1: System Update
Before starting, make sure your system is up to date by running the following commands:
sudo apt update
sudo apt upgrade -y
Step 2: Installing Apache
Apache is a very popular open-source web server. To install it, run:
sudo apt install apache2 -y
After installation, you can verify that the Apache service is running by accessing:
`http://your_ip_address`
You should see the default Apache welcome page.
Step 3: Installing MySQL/MariaDB
MySQL or MariaDB is the database management system. We will install MySQL:
sudo apt install mysql-server -y
Once installed, secure your MySQL installation by running:
sudo mysql -u root -p
Press Enter to log in for the first time without a password.
Then create the new user:
CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'pa33w0#d';
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'localhost';
quit
You can now use the new user:
sudo mysql -u myuser -p
Step 4: Installing PHP
PHP is a server-side scripting language used for web development. To install PHP and the necessary modules, run:
sudo apt install php libapache2-mod-php php-mysql -y
To verify that PHP is working correctly with Apache, create a file named `info.php` in the `/var/www/html` directory:
sudo nano /var/www/html/info.php
Add the following code to it:
<?php
phpinfo();
?>
Save and close the file, then go to:
`http://your_ip_address/info.php`
in your browser.
You should see a page with information about the PHP configuration.
Step 5: Configuring Permissions and Security
Permissions
Ensure that the web directory has the correct permissions for Apache:
sudo chown -R www-data:www-data /var/www/html
sudo chmod -R 755 /var/www/html
Firewall Configuration
Ensure that your firewall allows HTTP and HTTPS traffic:
sudo ufw allow in "Apache Full"
Enable and Verify Necessary Apache Modules
Ensure that the `mod_rewrite` and `mod_ssl` modules are enabled:
The HTTP protocol transmits unencrypted data, meaning that information sent from a browser can be intercepted and read by third parties.
The HTTPS protocol, in contrast, is encrypted and combines HTTP requests and responses with SSL and TLS technologies.
HTTPS websites must obtain an SSL/TLS certificate from an independent Certificate Authority (CA).
sudo a2enmod rewrite
sudo a2enmod ssl
sudo systemctl restart apache2
Step 6: Final Test
To test that everything works together correctly, create a small PHP script to connect to the database:
sudo nano /var/www/html/testdb.php
Add the following code:
<?php
$servername = "localhost";
$username = "root";
$password = "your_password";
$dbname = "test";
// Create the connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Connection Check
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
$conn->close();
?>
Replace `your_password` with the root password you set for MariaDB.
Access `http://your_ip_address/testdb.php` to verify that the database connection is working correctly.
Conclusion
You now have a working LAMP server. You can start developing and deploying your web applications on your server. Remember to delete the test files (`info.php` and `testdb.php`) once you have confirmed that everything is working correctly for security reasons.
Performance Optimisation
To refine and secure your LAMP stack, there are several additional steps you can take. Here are some tips to optimise performance, strengthen security, and improve the overall configuration of your LAMP stack.
Configure Apache for Optimal Performance
Enable Compression: Enable compression to reduce the size of files sent to the user.
sudo a2enmod deflate
Add the following configuration to `/etc/apache2/mods-enabled/deflate.conf`:
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json
</IfModule>
Enable Caching: Enable caching to store static files in memory.
sudo a2enmod expires
sudo a2enmod headers
Add the following configuration to your site configuration file (for example, `/etc/apache2/sites-available/000-default.conf`):
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
</IfModule>
Securing Apache
Disabling server signing: Hide Apache version information.
sudo nano /etc/apache2/conf-available/security.conf
Modify the following lines:
ServerTokens Prod
ServerSignature Off
Use HTTPS: Configure SSL to encrypt communications. Use Let’s Encrypt to obtain free SSL certificates.
sudo apt install certbot python3-certbot-apache -y
sudo certbot --apache
Securing MySQL/MariaDB
Create users with specific permissions: Avoid using the root account for web applications.
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT SELECT, INSERT, UPDATE, DELETE ON database.* TO 'user'@'localhost';
FLUSH PRIVILEGES;
Configure UFW: Ensure that only the necessary ports are open.
sudo ufw allow OpenSSH
sudo ufw allow "Apache Full"
sudo ufw enable
Fail2ban: Install Fail2ban to protect against brute-force attacks.
sudo apt install fail2ban -y
Create a custom configuration:
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
sudo nano /etc/fail2ban/jail.local
Enable and configure the necessary rules for Apache and other services.
Performance Monitoring
Munin: Use Munin to monitor server performance.
sudo apt install munin munin-node -y
Configure Munin to monitor system resources and services.
Regular Backups
Automate Database Backups**: Use scripts to automate backups.
mysqldump -u user -p database_name > /path/to/backup/backup.sql
Create a cron job to run this script regularly.
Updates and Patches
Regular Updates**: Keep your system up-to-date with the latest security patches.
sudo apt update
sudo apt upgrade -y
Conclusion
Following these steps will improve the performance, security, and reliability of your LAMP stack. It is crucial to regularly monitor your server and apply best practices in security and optimization to ensure optimal and secure operation.
The LAMP stack is a solid foundation for various web applications. Here are some examples of using the LAMP stack with instructions on how to get started with each type of application.
Blogging with WordPress
WordPress is one of the most popular content management systems (CMS) in the world.
Installing WordPress
1. Download WordPress:
cd /var/www/html
sudo wget https://wordpress.org/latest.tar.gz
sudo tar -xzvf latest.tar.gz
sudo mv wordpress/* .
sudo rm -rf wordpress latest.tar.gz
2. Configure permissions:
sudo chown -R www-data:www-data /var/www/html
sudo chmod -R 755 /var/www/html
3. Create a database for WordPress:
CREATE DATABASE wordpress;
CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpressuser'@'localhost';
FLUSH PRIVILEGES;
4. Configure WordPress:
Access `http://your_ip_address` and follow the instructions to complete the WordPress installation.
E-commerce website with PrestaShop
PrestaShop is an open-source e-commerce platform.
Installing PrestaShop
1. Download PrestaShop:
`cd /var/www/html`
`sudo wget https://download.prestashop.com/download/releases/prestashop_1.7.7.0.zip`
`sudo apt install unzip -y`
`sudo unzip prestashop_1.7.7.0.zip -d prestashop`
`sudo mv prestashop/* .`
`sudo rm -rf prestashop prestashop_1.7.7.0.zip`
2. Configure permissions:
sudo chown -R www-data:www-data /var/www/html
sudo chmod -R 755 /var/www/html
3. Create a database for PrestaShop:
CREATE DATABASE prestashop;
CREATE USER 'prestashopuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON prestashop.* TO 'prestashopuser'@'localhost';
FLUSH PRIVILEGES;
4. Configure PrestaShop:
Access `http://your_ip_address` and follow the instructions to complete the PrestaShop installation.
Joomla! is another popular CMS for creating websites and online applications.
Installing Joomla!
1. Download Joomla!:
`cd /var/www/html`
`sudo wget https://downloads.joomla.org/cms/joomla3/3-9-28/Joomla_3-9-28-Stable-Full_Package.zip`
`sudo unzip Joomla_3-9-28-Stable-Full_Package.zip`
`sudo rm Joomla_3-9-28-Stable-Full_Package.zip`
2. Configure permissions:
`sudo chown -R www-data:www-data /var/www/html`
`sudo chmod -R 755 /var/www/html`
3. Create a database for Joomla! :
CREATE DATABASE joomla;
CREATE USER 'joomlauser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON joomla.* TO 'joomlauser'@'localhost';
FLUSH PRIVILEGES;
4. Configure Joomla!:
Access `http://your_ip_address` and follow the instructions to complete the Joomla! installation.
Forum with phpBB
phpBB is an open-source forum software.
Installing phpBB
1. Download phpBB:
`cd /var/www/html`
`sudo wget https://download.phpbb.com/pub/release/3.3/3.3.3/phpBB-3.3.3.zip`
`sudo unzip phpBB-3.3.3.zip -d phpbb`
`sudo mv phpbb/* .`
`sudo rm -rf phpbb phpBB-3.3.3.zip`
2. Configure permissions:
`sudo chown -R www-data:www-data /var/www/html`
`sudo chmod -R 755 /var/www/html`
3. Create a database for phpBB:
`CREATE DATABASE phpbb;`
CREATE USER 'phpbbuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON phpbb.* TO 'phpbbuser'@'localhost';
FLUSH PRIVILEGES;
4. Configure phpBB:
Access `http://your_ip_address` and follow the instructions to complete the phpBB installation.
Custom Web Application with Laravel
Laravel is a popular PHP framework for developing web applications.
Installing Laravel
1. Install Composer (PHP dependency manager):
sudo apt install composer -y
2. Create a Laravel project:
cd /var/www/html
composer create-project --prefer-dist laravel/laravel myapp
sudo mv myapp/* .
sudo rm -rf myapp
3. Configure permissions:
sudo chown -R www-data:www-data /var/www/html
sudo chmod -R 755 /var/www/html
4. Configure the Laravel environment:
Rename the `.env.example` file to `.env` and modify it to configure the database connection:
cp .env.example .env
nano .env
Change the DB parameters according to your database:
DB_DATABASE=laravel
DB_USERNAME=laraveluser
DB_PASSWORD=password
5. Create a database for Laravel:
CREATE DATABASE laravel;
CREATE USER 'laraveluser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON laravel.* TO 'laraveluser'@'localhost';
FLUSH PRIVILEGES;
6. Generate an application key:
php artisan key:generate
7. Configure Apache for Laravel:
Add a site configuration to `/etc/apache2/sites-available/laravel.conf`:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/public
<Directory /var/www/html>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Enable the site and rewrite module:
sudo a2ensite laravel
sudo a2enmod rewrite
sudo systemctl restart apache2
8. Access your Laravel application:
Access `http://your_ip_address` to see your Laravel application in action.
Conclusion
These examples demonstrate how to deploy popular applications using a LAMP stack.
They can serve as a starting point for more complex and specific projects.
Always ensure you follow security and optimization best practices to guarantee your applications remain secure and perform well.
A log file in a LAMP (Linux, Apache, MySQL, PHP) architecture is a file where events, errors, and other types of activity are recorded to help monitor, debug, and maintain the system.
Here is an overview of the main log files you might encounter in each component of the LAMP stack.
How to configure and view logs
Apache
To configure Apache logs, modify the Apache configuration files (httpd.conf or apache2.conf), depending on the distribution).
MySQL
To configure MySQL logs, modify the my.cnf file.
PHP
To configure PHP logs, edit the php.ini file.
And to view PHP errors in real time.
Additional Tools
- logrotate: To manage log rotation so that logs don't become too large.
- journalctl: To view system logs in `systemd` based systems.
Conclusion
By monitoring and analyzing these log files, you can ensure the proper functioning of your LAMP stack, quickly identify and resolve problems, and optimize your server's performance.
Using Wireshark with X11 forwarding over SSH (`ssh -X`) allows you to run the Wireshark GUI on a remote server and view it locally on your machine.
Here's how to configure and use this method in a LAMP architecture.
Capturing Packets with Wireshark
With Wireshark running on the remote server and displayed on your local machine, you can now select the appropriate network interface and begin capturing packets. Here's how:
Select the network interface on which you want to capture traffic (for example, `eth0`).
Click "Start" to begin capturing.
Use Wireshark's filters to refine the results and analyze packets of interest.
If the X11 transfer is too slow or problematic, here are two alternatives:
Use `tcpdump` to capture packets and analyze them locally.
Capture packets with `tcpdump` on the remote server and save them to a file:
sudo tcpdump -i eth0 -w /tmp/capture.pcap
Transfer the capture file to your local machine:
scp user@remote_server:/tmp/capture.pcap /local/path/
Open the capture file in Wireshark for analysis:
wireshark /local/path/capture.pcap
Use `wireshark-qt` or `tshark`
If you prefer to use a command-line interface:
Install `tshark` on the remote server:
sudo apt-get install tshark
Capture the Capture packets using `tshark` and save them to a file:
sudo tshark -i eth0 -w /tmp/capture.pcap
Transfer the capture file to your local machine and analyze it with Wireshark.
These methods allow you to capture and analyze network traffic on a remote server in a LAMP architecture, using Wireshark efficiently and securely.
Fail2ban is an essential security tool in a LAMP (Linux, Apache, MySQL, PHP) environment that helps protect servers against various attacks, including brute-force login attempts. Here's a detailed explanation of its role and integration into a LAMP stack:
Fail2ban's Role
1. Protection Against Brute-Force Attacks:
Log Monitoring: Fail2ban monitors log files for specific login failure patterns or other suspicious activity. When a predefined number of failures is detected, the tool triggers a predefined action, typically adding a firewall rule to block the source IP address for a defined period.
Automatic Blocking: By automatically blocking suspicious IP addresses, Fail2ban prevents attackers from continuing to attempt to force access to the server.
2. Flexibility and Extensibility:
Customizable Filters: Fail2ban allows administrators to create and customize filters to monitor specific patterns in log files.
Custom Actions: The actions Fail2ban can take in response to suspicious activity are also customizable. In addition to IP blocking, it can send email notifications, trigger scripts, and more.
Fail2ban Configuration and Management
1. Installation:
Package Repositories: Fail2ban can be easily installed from the package repositories of popular Linux distributions such as Ubuntu (`sudo apt-get install fail2ban`), CentOS (`sudo yum install fail2ban`), etc.
2. Basic Configuration:
Configuration File: The main Fail2ban configuration file is `jail.conf`. However, it is recommended not to modify this file directly. Customisations should be made in `jail.local` to avoid being overwritten during updates.
Defining Jails: "Jails" are the configuration sections that define which log files to monitor, which filters to use, and what actions to take in response to detected events.
3. Filters and Actions:
Filters: Filters are files containing regular expressions that match patterns of suspicious activity in the log files. The default filters are stored in the `/etc/fail2ban/filter.d/` directory.
Actions: Actions are scripts or commands executed when the filters trigger an alert. Default actions include adding iptables rules to block IPs, sending email notifications, etc.
LAMP Integration
1. Apache Protection:
Apache Logs
Configuring an Apache Jail
Apache Filters
2. MySQL Protection:
MySQL Logs
Configuring a MySQL Jail
3. SSH and Other Service Protection:
SSH Logs
Configuring an SSH Jail
Conclusion
Fail2ban is a powerful and flexible tool that strengthens the security of a LAMP environment by automatically blocking suspicious IP addresses.
Its integration with Apache, MySQL, and other critical services helps prevent brute-force attacks and other types of intrusions, ensuring continuous protection of web servers.
Thanks to its log monitoring capabilities and customizable actions, Fail2ban is an essential component of any secure web server infrastructure.
Protocols
The LAMP (Linux, Apache, MySQL, PHP) architecture uses several types of protocols for communication between different layers and for interactions with clients. Here are the main protocols used in each component of the LAMP stack:
1. Linux
Linux, as an operating system, supports various network and communication protocols for the applications and services that run on it:
TCP/IP: The fundamental protocol suite for network communications, including TCP (Transmission Control Protocol) and IP (Internet Protocol).
UDP (User Datagram Protocol): Used for low-latency and loss-tolerant network communications, such as live video streaming services.
ICMP (Internet Control Message Protocol): Used for network diagnostic messages and error reporting (e.g., ping).
2. Apache
Apache HTTP Server is a web server that uses various protocols to serve web pages and manage communication with clients:
HTTP (Hypertext Transfer Protocol): The primary protocol for communication between web servers and web browsers.
HTTPS (HTTP Secure): HTTP over SSL/TLS for secure and encrypted communication between clients and the server.
FTP (File Transfer Protocol): Sometimes used for transferring files to and from the web server.
WebSocket: A bidirectional communication protocol over a single TCP socket for real-time web applications.
3. MySQL
MySQL, as a relational database management system, uses the following protocols for interactions with clients and other servers:
MySQL Protocol: A proprietary communication protocol used for MySQL client-server interactions.
ODBC (Open Database Connectivity): The standard interface for accessing SQL databases.
JDBC (Java Database Connectivity): A Java interface for connecting to and executing queries on databases.
4. PHP
PHP, as a server-side scripting language, interacts with other components via several protocols:
HTTP/HTTPS: PHP uses these protocols to send and receive data to and from the Apache web server.
MySQL Protocol: Used for communication between PHP scripts and the MySQL server.
LDAP (Lightweight Directory Access Protocol): Used to interact with directory services.
SMTP (Simple Mail Transfer Protocol): Used by PHP scripts to send emails.
Internal Communication
Localhost/Loopback (127.0.0.1): Used for local communication between LAMP stack components on the same server.
Security and Encryption
To secure communications within a LAMP stack, the following protocols can be used:
SSL/TLS (Secure Sockets Layer/Transport Layer Security): Used to encrypt HTTP (HTTPS) and other communications between services.
SSH (Secure Shell): Used for secure and encrypted remote connections, often for server administration.
In summary, the main protocols used in a LAMP stack include:
TCP/IP, UDP, ICMP for Linux.
HTTP, HTTPS, FTP, WebSocket for Apache.
MySQL Protocol, ODBC, JDBC** for MySQL.
HTTP/HTTPS, MySQL Protocol, LDAP, SMTP for PHP.
These protocols enable efficient and secure communication between the different components of the LAMP stack and the clients.
Tips and Best Practices
1. Backups:
Before performing any update, be sure to back up your data, configurations, and databases.
2. Versions:
Check the current versions of each component and consult the release notes to learn about changes and new features.
3. Testing:
If possible, test updates in a development or test environment before applying them to production.
4. Dependencies:
Some updates may have specific dependencies or prerequisites. Check the official documentation for details.
5. Monitoring:
After the update, monitor logs and performance for any potential issues.
Version Verification
To check component versions after an update:
Linux
uname -a
lsb_release -a # Debian/Ubuntu
cat /etc/redhat-release # CentOS/RHEL
Apache
apache2 -v # Debian/Ubuntu
httpd -v # CentOS/RHEL
MySQL
mysql -V
PHP
php -v
Managing Repositories and PPAs (for Ubuntu/Debian)
If you need specific or newer versions, you can add third-party repositories or PPAs.
Example for PHP (Ubuntu)
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.4 # Replace with the desired version
sudo update-alternatives --list php
sudo update-alternatives --config php
Conclusion
Regularly updating your LAMP stack is crucial for maintaining the security and performance of your server. Follow these steps to ensure that each component is up-to-date and working correctly.
As Wikipedia states, "LAMP is an acronym for a set of free software used to build web servers."
The original acronym refers to the following software:
"Linux," the operating system (GNU/Linux);
"Apache," the web server;
"MySQL or MariaDB," the database server;
Originally, "PHP", "Perl" or "Python" the scripting languages.
Even though the authors of each of these programs did not coordinate to build LAMP platforms, this software combination became popular due to its low overall cost and the presence of all these components in most GNU/Linux distributions.
I have been using this technology for years, and its open-source nature is a major factor in my enthusiasm for it, as well as its continued success within a large part of the profession for decades.
This tutorial is divided into 2 separate courses as described below.
- The chapters in the training named "Become an Expert in LAMP - Complete Installation and Configuration" are as follows:
Environment Description
Complete Installation
Fine Tuning
Usage Examples
Log File
Wireshark Remote SSH Server
Fail2Ban
Protocols
Updates
PHPUnit
- The chapters in the next training to come "Optimize your LAMP environment with advanced techniques" will be as follows:
Configuration File
Network Configuration
Shell Scripting
Docker
GLPI
Backup
Encryption
Git (Bitbucket) with Scrum
CI/CD (Jira Pipeline)
I wish you an enriching experience!