This project demonstrates how to build a secure PHP web application using the LAMP stack (Linux, Apache, MariaDB, PHP). The application includes user registration and login functionality, secure session management, and proper password handling using hashing.
To develop a web application with basic user authentication and apply security best practices such as:
- Password hashing
- Input validation
- Secure session management
- Restricted access to authenticated users
- Ubuntu 22.04 LTS
- Apache2
- MariaDB (MySQL replacement)
- PHP 8+
- Git
- PHPMyAdmin (optional)
- β Secure registration form
- β
Passwords hashed with
password_hash() - β Login page with session-based protection
- β Dashboard accessible only after login
- β
Clean logout flow using
session_destroy()
- Clone the app into your Apache root:
cd /var/www/html
git clone https://github.com/YOUR_USERNAME/secure-web-app.git








