How to Install Apache, MySQL and PHP on Ubuntu 20.10

 How to Install Apache, MySQL and PHP on Ubuntu 20.10



1. Install Apache :-


sudo apt-get update -y #using the -y option will automatically accept the conditions of the source update


sudo apt-get install apache2 -y 


sudo apt-get install apache


sudo systemctl start apache

2. Install MySQL:-


sudo apt-get install mysql-server -y


sudo /usr/bin/mysql_secure_installation




3. Install PHP:-

sudo apt-get install php -y


sudo apt-get install -y php-{bcmath,bz2,intl,gd,mbstring,mcrypt,mysql,zip}

sudo apt-get install libapache2-mod-php -y




sudo systemctl enable apache

service

sudo systemctl enable mysql.service

systemctl restart apache

service




cd /var/www/html/

rm index.html


gedit index.html 

 

 save and exit



Press 


Comments

Popular posts from this blog

How to install and configure OSSEC server and client

How to install nuke in windows 10 and windows 11,Installing Nuke on Windows, Install Nuke on Windows

Autodesk Maya 2024 Install Windows 11