Skip to content

Jirage/Wordpress_Deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

📦 WordPress Deployment on LAMP Stack (Amazon Linux)

This project explains how to deploy a WordPress website on an AWS EC2 instance using the LAMP stack (Linux, Apache, MySQL, PHP). It also enables WordPress theme uploads via vsFTP.


🧱 Architecture

Installation Steps

  1. Install LAMP Stack

    Install Apache, MySQL, and PHP on Amazon Linux EC2.
    
  2. 📦 Install WordPress Connector

       sudo yum install php8.4-mysqlnd.x86_64
    
  3. Download and Extract WordPress

     cd /var/www/html
     sudo wget https://wordpress.org/latest.tar.gz
     tar -xvzf latest.tar.gz
    
  4. Access WordPress

     Visit:
     http://<Your-Public-IP>/wordpress
    

Database Setup

  1. Create MySQL Database

    mysql -u root -p
    
  2. Inside MySQL:

    CREATE DATABASE wordpressdb;
    

Use the following credentials on WordPress setup screen:

 Database Name: wordpressdb

 Username: root

 Password: root

 Database Host: localhost 

Site Setup

Site Title: TechBlog

Username: root

Password: root

Email: t@gmail.com

Grant WordPress directory permissions:

 sudo chmod -R 777 wordpress

Complete WordPress installation and login at:

http://<Your-Public-IP>/wordpress

Theme Upload via FTP (vsFTP Setup)

  1. Install and Configure vsFTPD

     sudo yum install vsftpd -y
     sudo systemctl start vsftpd
    

Allow ports 20 and 21 in your EC2 Security Group

  1. Add FTP User and Permissions

     sudo useradd vsftp
     sudo passwd vsftp
     sudo gpasswd -a vsftp apache
     sudo chown -R vsftp:apache /var/www/html/
     sudo systemctl restart vsftpd
    
  2. WordPress FTP Settings

    During theme upload, use:

    Hostname: localhost
    
    FTP Username: vsftp
    
    FTP Password: root
    

Post Deployment

Login to Admin Panel

Add new posts

Install and activate new themes via FTP

WordPress Deployment Summary (LAMP on AWS EC2)

This guide demonstrates how to deploy a WordPress website on an AWS EC2 instance running Amazon Linux, using the LAMP stack (Linux, Apache, MySQL, PHP). It covers all essential steps including WordPress installation, database configuration, and enabling FTP access via vsFTPD for seamless theme uploads. This deployment ensures a functional and customizable WordPress environment accessible through a web browser and manageable via the WordPress Admin Panel.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published