Giter VIP home page Giter VIP logo

wp-nginx-deb's Introduction

Note

Migrated and merged with https://github.com/pothi/wordpress-nginx/.

WordPress-Nginx

WordPress specific Nginx configurations, tweaks, compatibility routines, etc.

Compatibility

Tested in Debian 8+ and Ubuntu 16.04+

How to Install

Please backup your old configuration files...

TIMESTAMP=$(date +%F_%H-%M-%S)
mkdir $HOME/backups &> /dev/null
cp -a /etc/nginx $HOME/backups/etc-nginx-$TIMESTAMP

As sudo or root, please use the following guidelines...

service nginx stop

git clone https://github.com/pothi/wp-nginx-deb.git ~/git/wp-nginx-deb
cd ~/git/wp-nginx-deb
cp -a conf.d/ globals/ sites-available /etc/nginx

# Other steps that depends on your particular requirement:
# YOUR_DOMAIN_NAME=tinywp.com
# mv /etc/nginx/sites-available/domainname.conf /etc/nginx/sites-available/$YOUR_DOMAIN_NAME.conf
# cd /etc/nginx/sites-enabled/
# ln -s ../sites-available/$YOUR_DOMAIN_NAME.conf
# sed -i --follow-symlinks 's/domainname.com/'$YOUR_DOMAIN_NAME'/g' /etc/nginx/sites-enabled/$YOUR_DOMAIN_NAME.conf

nginx -t && service nginx start

Questions, Issues or Bugs?

  • Please submit issues or bugs via Github
  • Patches, improvements, and suggestions are welcomed.
  • Please use contact form at https://www.tinywp.in/contact/ , if you'd like to contact Pothi Kalimuthu for other reasons.
  • I'm available for hire to setup, tweak or troubleshoot your server to provide the fastest WordPress hosting.
  • Thanks for having a look here. Have a good time!

TODO

  • find the number of cores and insert them as worker_processes
  • find the port (or socket) from php-fpm config and insert it in lb.conf

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.