GithubHelp home page GithubHelp logo

miguelramosfdz / wordpress-nginx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pothi/wordpress-nginx

0.0 1.0 0.0 643 KB

WordPress specific Nginx configuration tweaks

Home Page: https://www.tinywp.in

wordpress-nginx's Introduction

WordPress-Nginx

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

Compatibility

Tested with Nginx version 1.4.x in

  • Debian 6.x & Debian 7.x
  • Ubuntu 12.04.x

For Fedora, Redhat, CentOS and Amazon Linux AMI or similar distributions, please look at the CentOS branch.

How to Install

Please backup your old configuration files...

TIMESTAMP=$(date +%F_%H-%M-%S)
mkdir $HOME/nginx-backup-$TIMESTAMP
cp -a /etc/nginx/* $HOME/nginx-backup-$TIMESTAMP

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

git clone git://github.com/pothi/WordPress-Nginx.git $HOME/git/wp-nginx
cd $HOME/git/wp-nginx
git checkout centos
cp -a $HOME/git/wp-nginx/* /etc/nginx/
rm /etc/nginx/sites-enabled/domainname.conf
# 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 restart

Changes on CentOS

CentOS has a different file naming convention, yet simple directory structure, when compared to Debian derivatives. Let me describe them and I'd let you decide upon how you'd want to structure your files and name those files.

  • The configuration for default sites are named as default.conf and ssl.conf in /etc/nginx/conf.d/.
  • There is no sites-available or sites-enabled folder.
  • The file /etc/nginx/fastcgi_params in Debian is named as /etc/nginx/fastcgi.conf in CentOS.

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!

wordpress-nginx's People

Contributors

pothi 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.