Giter Club home page Giter Club logo

nginx-passenger-centos's Introduction

A Recipe for an Nginx + Passenger RPM on CentOS

A simplified/revised version of swhitt's centos-apache-passenger, which is similar to jnstq's rails-nginx-passenger-ubuntu recipe but for Nginx + Passenger on CentOS. Also influenced by the deploy scripts used by EngineYard Solo.

Perform the following on a build box as root.

Create an RPM Build Environment

yum install rpmdevtools
rpmdev-setuptree

Install Prerequisites for Nginx + Passenger RPM Creation

yum groupinstall 'Development Tools'
yum install ruby-devel openssl-devel zlib-devel pcre-devel rubygems git
gem install passenger -v 2.2.11

Hereafter, this process assumes that passenger-config --root returns a usable value for the location of Passenger's installed files. The RPM will build nginx-specific extensions for Passenger (by running rake nginx in Passenger's main directory) and will compile against the module in Passenger's ext/nginx/ directory.

Passenger's ext/nginx/HelperServer file is dynamically linked and must be present at runtime for the nginx integration to work correctly.

Download Nginx

cd ~/rpmbuild
curl http://nginx.org/download/nginx-0.7.65.tar.gz -o SOURCES/nginx-0.7.65.tar.gz

Get Necessary System-specific Configs

cd /tmp
git clone git://github.com/causes/nginx-passenger-centos.git
cp nginx-passenger-centos/{init,conf,patches}/* ~/rpmbuild/SOURCES/
cp nginx-passenger-centos/spec/nginx-passenger.spec ~/rpmbuild/SPECS/

Build the RPM

cd ~/rpmbuild/
rpmbuild -ba SPECS/nginx-passenger.spec

The resulting RPM will be:

~/rpmbuild/RPMS/x86_64/nginx-passenger-0.7.65+2.2.11-2.x86_64.rpm

nginx-passenger-centos's People

Contributors

h3h avatar swhitt avatar

Watchers

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