Skip to content

Commit dabf5b2

Browse files
committed
Binary shortcuts
1 parent 7257bb8 commit dabf5b2

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ chmod +x /etc/init.d/php5-fpm
2727
update-rc.d php5-fpm defaults
2828

2929
service php5-fpm start
30+
31+
# Add a shortcut
32+
sudo ln -s /usr/local/php5/bin/php /usr/bin/php5

readme.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ These are a set of bash scripts for building and running PHP 5 (CLI and FPM) on
88

99
Please note that these are very simple scripts that don't implement error checking or process validation.
1010

11-
1211
## Usage
1312

1413
cd /tmp
@@ -30,18 +29,22 @@ The PHP-FPM can be operated using the `php5-fpm` init script:
3029

3130
Usage: /etc/init.d/php5-fpm {start|stop|status|restart|reload|force-reload}
3231

33-
while the FPM socket is available at
32+
While the FPM socket is available at:
3433

3534
127.0.0.1:9006
3635

37-
and PHP CLI:
36+
And PHP CLI:
3837

3938
/usr/local/php5/bin/php -v
4039
PHP 5.6.27 (cli) (built: Jun 23 2016 20:58:06) ( NTS )
4140
Copyright (c) 1997-2016 The PHP Group
4241
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
4342
with Zend OPcache v5.6.27, Copyright (c) 1999-2016, by Zend Technologies
4443

44+
Executables are located at:
45+
46+
/usr/local/php5/bin/php
47+
/usr/bin/php5
4548

4649
## Configuration files
4750

@@ -56,7 +59,6 @@ while the Debian init script is added to:
5659

5760
/etc/init.d/php5-fpm
5861

59-
6062
## Extensions
6163

6264
Note that most of the third-party PHP extensions are [not yet compatible with PHP 5](https://github.com/gophp5/gophp5-ext/wiki/extensions-catalog) and [Gophp5-ext](http://gophp5.org/) (also on [GitHub](https://github.com/gophp5/gophp5-ext)) is a project to help do that. Here is a list of PHP modules that are enabled by default in this build:
@@ -126,12 +128,6 @@ Note that most of the third-party PHP extensions are [not yet compatible with PH
126128
APCu
127129
SSH2
128130

129-
130-
## Shortcuts
131-
132-
sudo ln -s /usr/local/php5/bin/php /usr/bin/php5
133-
134-
135131
## Installing Extensions
136132

137133
Please note that you need to restart `php5-fpm` to activate the extension.

remove.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
rm -r /usr/local/php5
55
update-rc.d php5-fpm remove
66
rm /etc/init.d/php5-fpm
7+
rm /usr/bin/php5

0 commit comments

Comments
 (0)