Skip to content
This repository was archived by the owner on Jan 31, 2026. It is now read-only.

eugeniogiusti/wordpress-ubuntu-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

wordpress-ubuntu-install

This repository contains a bash script that automates the installation of WordPress on Ubuntu 22.04

Status Last Commit License Top Language Stars Platform Tool Shell Script

Automated WordPress Installation

This bash script automates the installation of WordPress on Ubuntu 22.04, including necessary dependencies, database setup, and basic configuration.

Features

  • Installs Apache, PHP, MySQL, and required PHP extensions.
  • Configures MySQL securely and creates a WordPress database and user.
  • Downloads and extracts the latest WordPress version.
  • Sets up an Apache VirtualHost for WordPress.
  • Configures WordPress settings in wp-config.php
  • Provides the server IP for easy access to the new WordPress site.

Recommended Hardware Requirements for Virtual machine

  • 50GB SSD
  • 4GB RAM.
  • 2 vCPUs.

Usage

How to Use

  1. Update the system & clone the Repository
    Download the script to your system or clone the repository:
    apt update && apt upgrade
    
    git clone https://github.com/eugeniogiusti/wordpress-ubuntu-install.git
    
    cd wordpress-ubuntu-install
    
    
  2. Grant Execution Permissions Give the script executable permissions:
    chmod +x wordpress-ubuntu-install.sh
    
    
  3. Run the Script & Switch to the root user if you don't want to enter the password during the process:
    sudo su
    ./wordpress-ubuntu-install.sh
    
  4. After the script completes, visit your local IP address to finish the WordPress setup.

image

image

image

image

image

Configuration

  • The WordPress database name, user, and password are set in the script. Modify them as needed.
  • The Apache VirtualHost is configured with example.com. Replace it with your domain.

Notes

  • This script is intended for fresh Ubuntu 22.04 installations.

  • During the installation of some libraries, you might see a message like: Daemons using outdated libraries. Which services should be restarted?(screenshoot below)"

This message indicates that some libraries have been updated, but the daemons using them are still running with the previous version loaded in memory. It is not necessary to restart the services immediately, as the system will continue to function normally with the old libraries. To proceed:

  1. Press the TAB key to select "OK" and confirm.
  2. Continue with the installation without restarting the services. If you encounter any issues or instability later, try restarting the virtual machine to ensure the services use the latest versions of the libraries.

image

Enjoy your Wordpress

About

This repository contains a bash script that automates the installation of WordPress on Ubuntu 22.04

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages