-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
87 lines (61 loc) · 3.15 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#
# README
# readme file for nginx-no2id
#
# 2010: AMLN McGreggor <[email protected]>
INTRO:
no2id is to be migrating its httpds over to nginx.
We're not idiots. We do stuff as root: none of that 'sudo' bollix.
We're talking about lazy sysadmins, who like scripts to make
things easier.
Hence these.
These should be checked-out, on each machine, to /root/build,
and from there, run.
TO DO:
- auto-discover the latest stable version, and supply that
as VERSION (in bin/{nginx-installer,vcheck-nginx}); (maybe)
- convert (the once) Apache configs over to nginx
- update an audit log, of build, really.
FILES:
bin/fastcgi-wrapper: perl wrapper for fastcgi, stolen from
https://library.linode.com/web-servers/nginx/perl-fastcgi/reference/fastcgi-wrapper
rename to perl-fcgi-wrapper, and stow
in /usr/local/bin
bin/nginx-installer: download, config, build, and create
init.d scripts for nginx
bin/nginx-vhost: lazily make a generic config file for
a specified vhost, hopefully not doing
Anything Bad.
bin/patch-php-for-nginx: make PHP 'safer', with nginx. Patch
the /etc/php5/*/php.ini files, per
the patch. With a script, to check &c.
bin/perl-fcgi-wrapper-init: init.d script to spawn perl as FCGIs;
grab the wrapper from
https://library.linode.com/web-servers/nginx/perl-fastcgi/reference/fastcgi-wrapper
or just from here. Yes the making a
PIDFILE is *horrible*, but it worksish
bin/php-fcgi: init.d script for spawning php as an
FCGI, based on the Debian skeleton,
and cludged via the ideas in
http://wiki.nginx.org/PHPFcgiExample.
bin/release-finder: look for new releases, rather messily.
note VER at line 15.
bin/vcheck-nginx: wrap-around-script for release-finder; to
be run from cron, most likely
patches/php5-cgi.fix_pathinfo.patch: patch to set
'cgi.fix_pathinfo=0' in
php.ini files, per the
Pitfalls of Nginx.
DONE:
X script to check for newer (stable) versions of nginx
[ http://github.com/no2id/nginx-no2id/commit/45694f1fc011f02b14e999b74c0549815551d1c0 ]
CHECKOUT/PULL:
As root, in /root:
mkdir build
git clone git://github.com/no2id/nginx-no2id.git
Committers, once you've added your key(s):
cd ~/whereever
git clone [email protected]:no2id/nginx-no2id.git
Make changes in your repo, commit, and push, then as root, one may
cd /root/build/nginx-no2id && git pull
to update.