My Computer Specifications:
- Windows 11 OS
- 8GB RAM
- 256GB SSD ROM
- 1TB HDD ROM
- CPU Intel Core i5
Step by Step Procedure:
- First, check the minimum system requirements for a Linux distribution like Ubuntu. If your system fulfills it, start downloading Ubuntu's latest iso version from here. Next, flash the image on your PC.
- Use package manager to install Apache on Ubuntu.
sudo apt update
sudo apt install apache2
- Now, install MySQL database server on it.
sudo apt install mysql-server
- After installation, run the MySQL security script to secure the installation.
sudo mysql_secure_installation
- Install PHP and its modules.
sudo apt install php libapache2-mod-php php-mysql
- Finally, restart Apache web server to apply the changes.
sudo systemct1 restart apache2
- To verify installation, create a php file in the Apache web root directory to verify that PHP is working.
echo "< ?php phpinfo(); ?>" | sudo tee /var/www/html/info.php