Git Product home page Git Product logo

wordpress's Introduction

Wordpress

Wordpress Docker

  • How to use this image:

  1. Clone or download all files from GitHub Page
  2. Download Wordpress from Wordpress Downloads
  3. Extract Wordpress.zip to the following directory:
/var/www/html/wp
  1. Run the command below :
docker-compose up -d
  1. Open up your web browser, and proceed to the following address to start the installation ( Remember that my configuration will start the server at port 80, in case you want to change the hostname/port, proceed to the next section to customize this image )
127.0.0.1
  1. If see 404 ERROR :
chmod 777 -R var/
  1. In the Database settings, adjust the following :
Database Name = wordpress
Username = wp
Password = 147258369
Database Host = mysql
Table Prefix = wp_

Customize this image

  • Use domain with SSL and change Nginx configurations

in the files downloaded from this GitHub Page

  1. In this directory, uncomment the lines in the wp.conf and replace your domain with example.com
/nginx/conf.d/wp.conf
  1. Following the guides from Letsencrypt (certbot), copy the privkey.pem and fullchain.pem to the following directory. (Remember that from the previous step, the cert files names should correspond with these config file) :
/nginx/conf.d/certs
  1. In case you want to configure your Nginx, you can find the config file in the following directory :
/nginx/nginx.conf
  • Change mysql configurations

  1. Customize your configs in the following file :
/mysql/my.cnf
  1. Change the mysql environment variables in the docker-compose.yml file :
environment:
        MYSQL_ROOT_PASSWORD: 147258369
        MYSQL_DATABASE: wordpress
        MYSQL_USER: wp
        MYSQL_PASSWORD: 147258369
  • Change php-fpm configurations

Add your customized configurations in these files :

/php-fpm/php.ini-development
/php-fpm/php.ini-production
/php-fpm/www.conf
/php-fpm/php.ini
  • Exposing external port

Edit docker-compose.yml to change the exposed ports :

ports:
     - 80:80
     - 443:443

wordpress's People

Contributors

zakery1369 avatar

Stargazers

 avatar ali shahrudi avatar

Watchers

 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.