Skip to content
Newer
Older
100644 65 lines (42 sloc) 1.64 KB
1c5fa07 @jaz303 copyright
authored Oct 7, 2011
1 plumbing.php
2 ============
3
4 <small>&copy; 2011 Jason Frame [jason@onehackoranother.com]</small>
5
4886d14 @jaz303 Initial revision
authored Oct 7, 2011
6
7 Installation
8 ------------
9
0c9301b @jaz303 a bit of documentation
authored Oct 7, 2011
10 $ bash < <(curl -s https://raw.github.com/jaz303/plumbing.php/master/installer)
11
12 Usage
13 -----
14
15 __`plumbing list`: list installed PHP versions__
16
17 $ plumbing list
18 Installed PHP versions:
19 php-5.3.6
20 php-5.3.8
21
22 __`plumbing install`: download and install a new PHP version__
23
24 # download from standard location on php.net
25 $ plumbing install php-5.3.6
26
27 # specify download URL manually
28 $ plumbing install php-5.4.0beta1 http://downloads.php.net/stas/php-5.4.0beta1.tar.bz2
29
30
31 __`plumbing use`: change to a specified PHP version__
32
33 $ php -v
34 PHP 5.3.4 (cli) (built: Dec 15 2010 12:15:07)
35 Copyright (c) 1997-2010 The PHP Group
36 Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
37
38 $ plumbing use php-5.3.8
39
40 $ php -v
41 PHP 5.3.8 (cli) (built: Oct 7 2011 22:52:40) (DEBUG)
42 Copyright (c) 1997-2011 The PHP Group
43 Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
44
45 # `plumbing use system` to revert to system PHP, if any
46
47 __`plumbing server`: start lighttpd server in the current directory__
48
49 Documentation for configuration options coming soon!
50
51 $ plumbing server
52 =====================
53 | lighttpd starting |
54 =====================
55
56 Working directory : /Users/jason
57 PHP : /Users/jason/.plumbing.php/versions/php-5.3.8/bin/php-cgi
58 Document root : ./
59 Port : 4000
60 Dispatcher : (none)
61 Directory listing : no
62
63 2011-10-07 23:11:23: (log.c.166) server started
64
Something went wrong with that request. Please try again.