How To Install Lamp Server PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

How to install lamp server on Debian/Ubuntu

first open your terminal and type:


sudo apt update
sudo apt upgrade
*Before any install *

1. Install Apache
sudo apt install apache2

2. Install MySQL
sudo apt install mysql-server

3. Install PHP
sudo apt install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql
php-mbstring php-xml libapache2-mod-php

4. Restart Server
sudo service start apache2 > to turn it on
sudo service apache2 restart > to restart the apache server
sudo service apache2 stop > to stop the apache server

5. Check Apache
Open a web browser and navigate to http://localhost/ or 127.0.0.1 . You should see a
message saying It works!

6. Check PHP
php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'

7.Install phpMyAdmin

sudo apt install phpmyadmin

*Fix the login problem


sudo mysql --user=root mysql
CREATE USER 'h9x'@'localhost' IDENTIFIED BY '123';
GRANT ALL PRIVILEGES ON *.* TO 'h9x'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
8.Install the wordpress on your server

first download it from here

https://wordpress.org/latest.zip

after download wordpress unzip it in /var/www/html this the virtual path

to your website

Now let’s create now database to install wordpress

next and final step

localhost/wordpress/

By H9x.Hacker :)

hx@outlook.cl

You might also like