Coder Social home page Coder Social logo

collinbarrett / wp-vps-build-guide Goto Github PK

View Code? Open in Web Editor NEW
33.0 4.0 5.0 190 KB

A verbose build guide for a modern, high-performance WordPress production VPS.

License: MIT License

wordpress-site wordpress-vps wp-vps wordpress vps vps-admin digital-ocean nginx ubuntu wp-cli

wp-vps-build-guide's Introduction

wp-vps-build-guide's People

Contributors

collinbarrett avatar jbradach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wp-vps-build-guide's Issues

Error when compiling nginx with custom OpenSSL

In step 13, where there is the current TODO regarding OpenSSL, I am trying the following...

  • cd /opt/nginx/nginx-1.9.3/debian/modules/
  • sudo wget https://www.openssl.org/source/openssl-1.0.2d.tar.gz
  • sudo tar -xzvf openssl-1.0.2d.tar.gz
  • sudo rm openssl-1.0.2d.tar.gz
  • sudo nano /opt/nginx/nginx-{npsCurVer}/debian/rules
    • Under "light" version flags:
      • Delete --without-ngx_http_limit_req_module \
      • Add \ to the end of the last flag.
      • Add --with-http_spdy_module \
      • Add --add-module=$(MODULESDIR)/nginx-cache-purge \
      • Add --add-module=$(MODULESDIR)/ngx_pagespeed-1.9.32.6-beta \
      • Add --with-openssl=$(MODULESDIR)/openssl-1.0.2d
  • cd /opt/nginx/nginx-1.9.3
  • sudo dpkg-buildpackage -b

The build mostly completes fine. It builds for a few minutes, seemingly compiling OpenSSL fine along with it. When I build it the exact same way without the custom OpenSSL module, it builds fine using the system installed version of OpenSSL. However, with the custom OpenSSL, it eventually errors out with the following error. I have also tried the same process with several other recent releases of OpenSSL with no success.

-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -lpthread -lcrypt -lstdc++ /opt/nginx/nginx-1.9.3/debian/modules/ngx_pagespeed-1.9.32.6-beta/psol/lib/Debug/linux/x64/pagespeed_automatic.a -lrt -pthread -lm -lpcre /opt/nginx/nginx-1.9.3/debian/modules/openssl-1.0.2d/.openssl/lib/libssl.a /opt/nginx/nginx-1.9.3/debian/modules/openssl-1.0.2d/.openssl/lib/libcrypto.a -ldl -lz
/usr/bin/ld: /opt/nginx/nginx-1.9.3/debian/modules/openssl-1.0.2d/.openssl/lib/libssl.a(s23_meth.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/opt/nginx/nginx-1.9.3/debian/modules/openssl-1.0.2d/.openssl/lib/libssl.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
objs/Makefile:272: recipe for target 'objs/nginx' failed
make[3]: *** [objs/nginx] Error 1
make[3]: Leaving directory '/opt/nginx/nginx-1.9.3/debian/build-light'
Makefile:8: recipe for target 'build' failed
make[2]: *** [build] Error 2
make[2]: Leaving directory '/opt/nginx/nginx-1.9.3/debian/build-light'
debian/rules:146: recipe for target 'build.arch.light' failed
make[1]: *** [build.arch.light] Error 2
make[1]: Leaving directory '/opt/nginx/nginx-1.9.3'
debian/rules:128: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Reconsider blocking port 80

For usability, you may not want to block port 80 here. Just blocking it would prevent users from getting to the site if they typed the domain into the address bar without remembering to include the https://. A more user-friendly solution could be to add a server block listening on 80 that returns a 301 to the https version of the requested page.

Happy to submit as a pull request if you want to go this route.

Dockerize

I'd like to implement dockerization into this guide in the future, but I'm still researching the pros, cons, and best practices.

Command Not found

Hi After Installing HHVM
I run This Command sudo /usr/share/hhvm/install_fastcgi.sh
But it showing me command not found
How to solve This

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.