Quick Answer: How to Install Lamp in Ubuntu?
Contents How to Install Lamp Stack on Ubuntu Step 1: Update Your System. Sudo Apt-Get Update. Step 2: Install Mysql. Sudo Apt-Get Install Mysql-Server...
Contents
How to Install LAMP stack on Ubuntu
- Step 1: Update your system. sudo apt-get update.
- Step 2: Install Mysql. sudo apt-get install mysql-server mysql-client libmysqlclient-dev.
- Step 3: Install Apache server.
- Step 4: Install PHP (php7.0 latest version of PHP)
- Step 5: Install Phpmyadmin(for database)
How do I start a lamp in Ubuntu?
Steps
- Install Ubuntu.
- Open a terminal.
- Installing additional tasks Inside your terminal, type: sudo taskbar and press enter.
- Select the task Lamp Server, press tab, and then press enter to install.
- Set the MySQL password for the root account It may ask you to set the password twice.
Must Read
How do I download lamps for Ubuntu?
Instead of installing Apache, MySQL, and PHP separately, tasksel offers a convenient way to get a LAMP stack running quickly.
- Install tasksel if not already installed by default. sudo apt install tasksel.
- Use tasksel to install the LAMP stack. sudo tasksel install lamp-server.
- Enter the prompt for a MySQL root password.