Project Title: Deployment and Configuration of LAMP Stack on Kali Linux Virtual Machine

Objective: To install and configure the LAMP stack (Linux, Apache, MySQL/MariaDB, PHP) on a Kali Linux virtual machine to create a local web development and testing environment.

System Setup:

  • Host Requirements: 8 GB RAM, 25 GB storage, VirtualBox/VMware
  • VM Specs: Kali Linux, 4 GB RAM, 20 GB virtual disk
  • Network: NAT or Bridged for local access

Tools Used:

  • Apache2 (Web Server)
  • MariaDB/MySQL (Database)
  • PHP (Server-side Scripting)
  • phpMyAdmin (Optional GUI for DB)

Installation Steps:

  1. Update Kali: sudo apt update && upgrade
  2. Install Apache2: sudo apt install apache2
  3. Install MariaDB: sudo apt install mariadb-server → Secure with mysql_secure_installation
  4. Install PHP: sudo apt install php libapache2-mod-php php-mysql
  5. Test PHP with info.php
  6. (Optional) Install phpMyAdmin: sudo apt install phpmyadmin and link it

Verification:

  • Apache: Visit http://localhost
  • PHP: http://localhost/info.php
  • phpMyAdmin: http://localhost/phpmyadmin

Challenges & Solutions:

  • phpMyAdmin not accessible → Created symlink
  • Permissions error → Adjusted using chown
  • Apache conflict → Restarted service, checked ports

Conclusion:
Successfully deployed a fully functional LAMP stack in Kali Linux on a virtual machine, providing a secure, isolated environment for web development and penetration testing.