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:
- Update Kali: sudo apt update && upgrade
- Install Apache2: sudo apt install apache2
- Install MariaDB: sudo apt install mariadb-server → Secure with mysql_secure_installation
- Install PHP: sudo apt install php libapache2-mod-php php-mysql
- Test PHP with info.php
- (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.