Skip to content

mojahid2021/Wordpress-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

WordPress Installation Script

This script automates the installation of WordPress on an Ubuntu server, including the setup of Apache, MariaDB, and PHP, as well as the creation of a WordPress database and user.

Requirements

  1. A clean Ubuntu server
  2. sudo or root access
  3. A basic understanding of server administration

Features

  1. Installs Apache2, MariaDB, PHP, and necessary PHP extensions
  2. Secures the MariaDB installation
  3. Creates a database and user for WordPress
  4. Downloads and installs the latest version of WordPress
  5. Configures wp-config.php with secure database credentials
  6. Adds WordPress security keys
  7. Configures the firewall to allow HTTP and HTTPS traffic
  8. Provides the WordPress installation URL, database name, username, and password

Usage

1. Download the Script

You can either create the script manually or download it using git:

git clone https://github.com/mojahid2021/Wordpress-install.git

2. Make the Script Executable

chmod +x wp-install.sh

3. Run the Script

Run the script as root or using sudo:

sudo ./wp-install.sh

The script will prompt you to enter a domain name. If you do not provide one, the server's IP address will be used.

Access the WordPress Installation

Once the script completes, you can access your WordPress site at:

http://<your-domain-or-ip>/

Important Notes:

  • The script will ask for your domain name. If left blank, it will use the server's IP address.
  • The database user is created with the username wp_user and a randomly generated password.
  • The script will display the credentials for your WordPress installation at the end.
  • Make sure to replace the your-server-ip with your actual server IP or domain in the output message.

Troubleshooting

  • If the script fails to run or there are errors, ensure that your server meets the prerequisites, such as having a fresh installation of Ubuntu.
  • Ensure that your server has internet access for downloading the necessary packages and WordPress.
  • If you encounter issues with MariaDB, check that the mysql_secure_installation script completes successfully.

License

This script is released under the MIT License.

About

This script provides an easy and automated way to install WordPress on an Ubuntu server. It handles everything from setting up Apache, MariaDB, and PHP, to configuring WordPress and securing the database. With just a few simple commands, users can have a fully functional WordPress installation up and running.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages