Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save LinuxPlaner/e3c40aa780566ab3a039f0f627eb8e90 to your computer and use it in GitHub Desktop.
Save LinuxPlaner/e3c40aa780566ab3a039f0f627eb8e90 to your computer and use it in GitHub Desktop.
Install WordPress on Ubuntu with a LAMP Stack
Ping Me For wordpress installing related service:
SMS: +8801610932753
IMO: +8801610932753
BiP: +8801610932753
Viber: +8801610932753
Signal: +8801610932753
Discord: supanta saha#3868
Telegram: https://t.me/LinuxPlaner
WhatsApp: https://wa.link/njuw4c
Skype: https://join.skype.com/weW8UDI0u7o5
Email: [email protected]
sudo apt update
sudo apt upgrade
sudo apt install apache2
sudo ufw allow in "Apache Full
sudo service apache2 start
sudo service apache2 restart
sudo apt install cu
# Install MySQL & check version, start,stop & restart Apache
sudo apt install mysql-server
sudo mysql_secure_installation
mysql --version
nano /etc/mysql/mysql.conf.d/mysqld.cnf
# Save and exit
sudo service mysql start
sudo systemctl restart mysql
sudo systemctl enable mysql
sudo mysql
CREATE DATABASE mydb;
CREATE USER 'masum'@'localhost' IDENTIFIED WITH mysql_native_password BY '01722G@usia';
use mydb;
FLUSH PRIVILEGES;
exit
sudo service mysql restart
# Install PHP & check version
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt install php7.2-fpm php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-zip php7.2-curl
php --version
sudo apt install mlocate
locate php
sudo nano /etc/apache2/apache2.conf
# Then add the following line to the end of the file:
Include /etc/phpmyadmin/apache.conf
# save ctrl+x then y and hit enter. Then restart apache:
#WordPress
cd /var/www/
git clone https://github.com/WordPress/WordPress.git
rm -rf html
mv WordPress html
cd html
sudo nano wp-config.php
# add BD NAME= mydb user name: masum password: 01722G@usia
ctrl+s and ctrl+x
service apache2 restart
service apache2 reload
service mysql restart
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
@UbuntuEvangelist
Copy link

Uploading Screenshot from 2021-08-02 22-27-18.png…

@UbuntuEvangelist
Copy link

Uploading Screenshot from 2021-08-02 22-30-03.png…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment