0% found this document useful (0 votes)
113 views

How To Install Lamp Server PDF

This document provides instructions for installing LAMP (Linux, Apache, MySQL, PHP) server on a Debian/Ubuntu system. It details downloading and installing Apache, MySQL, PHP and additional PHP modules using apt. It also covers starting and stopping the Apache server, checking the Apache and PHP installations, installing phpMyAdmin, fixing a phpMyAdmin login issue, and downloading and installing WordPress into the server's web root.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views

How To Install Lamp Server PDF

This document provides instructions for installing LAMP (Linux, Apache, MySQL, PHP) server on a Debian/Ubuntu system. It details downloading and installing Apache, MySQL, PHP and additional PHP modules using apt. It also covers starting and stopping the Apache server, checking the Apache and PHP installations, installing phpMyAdmin, fixing a phpMyAdmin login issue, and downloading and installing WordPress into the server's web root.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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 :)

[email protected]

You might also like