Giter VIP home page Giter VIP logo

lamp-wordpress's Introduction

Installation using Script
wget -O setup.sh https://raw.githubusercontent.com/mustan-ali/LAMP-Wordpress/main/setup.sh
chmod +x setup.sh
./setup.sh
Manual Installation

Update package lists & upgrade packages

sudo apt-get update -y
sudo apt-get upgrade -y

Install Apache, MySQL, PHP, & dependencies

sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mysql -y

Enable firewall & configure Apache to allow HTTP & HTTPS traffic

sudo ufw enable
sudo ufw allow 22
sudo ufw allow 'Apache Full'
sudo ufw status

Start MySQL & create database.

sudo service mysql start
sudo mysql
CREATE USER 'username_here'@'localhost' IDENTIFIED BY 'password_here';
CREATE DATABASE IF NOT EXISTS database_name_here;
GRANT ALL PRIVILEGES ON database_name_here.* TO 'username_here'@'localhost';
ALTER DATABASE database_name_here CHARACTER SET utf8 COLLATE utf8_general_ci;
FLUSH PRIVILEGES;
exit

Download & install WordPress (replace 2112121 with your desired directory name)

cd /var/www/html/
sudo wget https://wordpress.org/latest.tar.gz
sudo tar -xf latest.tar.gz
sudo mv wordpress 2112121

Copy WordPress config file & update it with database credentials

cd /var/www/html/2112121
sudo cp wp-config-sample.php wp-config.php

Navigate to Apache site configurations & update path to WordPress directory (DocumentRoot /var/www/html/2112121)

cd /etc/apache2/sites-available/
sudo nano 000-default.conf

Restart Apache to apply changes

sudo service apache2 restart

lamp-wordpress's People

Contributors

mustan-ali avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.