Skip to content

gauravchile/LAMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ LAMP Installer Script

Automate your LAMP stack setup on Linux servers with one click! This script installs and configures Apache, MariaDB, and PHP, making server setup fast, reliable, and reproducible.

Linux Bash MariaDB PHP License


🌟 Features

βœ… Auto-detects Linux distribution (Debian/Ubuntu or CentOS/RHEL)
βœ… Installs & configures Apache/HTTPD
βœ… Installs & configures MariaDB (MySQL alternative)
βœ… Creates databases & users with proper privileges
βœ… Installs PHP with required modules
βœ… Creates phptest.php to verify PHP setup
βœ… Automatically starts & enables all services


πŸ“ Project Structure

LAMP/
β”‚
β”œβ”€ lamp_install.sh # Main installation script
β”œβ”€ README.md # Project documentation
└─ lamp_install.log # Installation log file  

βš™οΈ Prerequisites

  • Linux server (Ubuntu/Debian or CentOS/RHEL)
  • Root or sudo privileges
  • Internet access for package installation

πŸ›  Installation & Usage

1️⃣ Clone the repository

git clone https://github.com/gauravchile/LAMP.git
cd LAMP

2️⃣ Make the script executable

chmod +x lamp_script.sh

3️⃣ Run the installer

./lamp_script.sh

4️⃣ Verify installation

  • Apache default page: http://<server-ip>/
  • PHP info page: http://<server-ip>/phptest.php

πŸ’‘ Tip: Replace <server-ip> with your server's public or private IP address.


🎯 Learning Outcomes

  • Automating package management with apt, yum, or dnf
  • Service management with systemctl
  • Database automation using MariaDB SQL scripts
  • Writing portable & reusable Bash scripts for Linux

πŸ’‘ Pro Tips

  • Extendable for more PHP modules or web services
  • Perfect for development environments or quick server setups
  • Great hands-on project for Linux sysadmin & DevOps practice

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages