Install LAMP on ubuntu server

Below commands are needed while installing LAMP server

1. To install Apache on the server run below commands 

sudo apt update

sudo apt install apache2

2. To check  if Apache is installed on your server run below command

sudo service apache2 status

and then browse

http://serverip//

It will show default Apache page 


 

3. To install  mysql server run below commands:

sudo apt install mysql-server
sudo mysql_secure_installation

4. To install MariaDB run below commands: 
sudo apt install mariadb-server
sudo mysql_secure_installation

5. To install PHP run below commands:
 sudo apt install openssl php-common php-curl php-json php-mbstring php-mysql php-xml php-zip 
  
Do let me know in case of any queries. 

Comments

Popular posts from this blog

Force HTTPS code using htaccess & web.config

Access Mysql from docker container and export the database

No space left on device: AH00023: Couldn't create the mpm-accept mutex