File tree Expand file tree Collapse file tree 14 files changed +71
-70
lines changed Expand file tree Collapse file tree 14 files changed +71
-70
lines changed Original file line number Diff line number Diff line change @@ -21,16 +21,16 @@ sudo apt-get install -y \
21
21
libpspell-dev \
22
22
libreadline-dev
23
23
24
- sudo mkdir /usr/local/php7
24
+ sudo mkdir /usr/local/php5
25
25
26
26
git clone https://github.com/php/php-src.git
27
27
cd php-src
28
- git checkout PHP-7.0.11
28
+ git checkout PHP-5.6.26
29
29
git pull
30
30
./buildconf --force
31
31
32
- CONFIGURE_STRING=" --prefix=/usr/local/php7 \
33
- --with-config-file-scan-dir=/usr/local/php7 /etc/conf.d \
32
+ CONFIGURE_STRING=" --prefix=/usr/local/php5 \
33
+ --with-config-file-scan-dir=/usr/local/php5 /etc/conf.d \
34
34
--with-pear \
35
35
--enable-bcmath \
36
36
--with-bz2 \
Original file line number Diff line number Diff line change 1
1
[global]
2
2
3
- pid = /var/run/php7 -fpm.pid
4
- error_log = /var/log/php7 -fpm.log
3
+ pid = /var/run/php5 -fpm.pid
4
+ error_log = /var/log/php5 -fpm.log
5
5
6
- include=/usr/local/php7 /etc/php-fpm.d/*.conf
6
+ include=/usr/local/php5 /etc/php-fpm.d/*.conf
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
# ## BEGIN INIT INFO
3
- # Provides: php7 -fpm
3
+ # Provides: php5 -fpm
4
4
# Required-Start: $remote_fs $network
5
5
# Required-Stop: $remote_fs $network
6
6
# Default-Start: 2 3 4 5
7
7
# Default-Stop: 0 1 6
8
- # Short-Description: starts php7 -fpm
8
+ # Short-Description: starts php5 -fpm
9
9
# Description: Starts The PHP FastCGI Process Manager Daemon
10
10
# ## END INIT INFO
11
11
12
12
# Author: Ondrej Sury <ondrej@debian.org>
13
13
# Adjusted for PHP7 by Kaspars Dambis <hi@kaspars.net>
14
+ # Adjusted for PHP5 by Jaroslav Hranička <hranicka@outlook.com>
14
15
15
- PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/php7 /sbin
16
- DESC=" PHP7 FastCGI Process Manager"
17
- NAME=php7 -fpm
18
- DAEMON=/usr/local/php7 /sbin/$NAME
19
- CONFFILE=/usr/local/php7 /etc/php-fpm.conf
16
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/php5 /sbin
17
+ DESC=" PHP5 FastCGI Process Manager"
18
+ NAME=php5 -fpm
19
+ DAEMON=/usr/local/php5 /sbin/$NAME
20
+ CONFFILE=/usr/local/php5 /etc/php-fpm.conf
20
21
DAEMON_ARGS=" --daemonize --fpm-config $CONFFILE "
21
22
CONF_PIDFILE=$( sed -n ' s/^pid[ =]*//p' $CONFFILE )
22
- PIDFILE=${CONF_PIDFILE:-/ var/ run/ php7 -fpm.pid}
23
+ PIDFILE=${CONF_PIDFILE:-/ var/ run/ php5 -fpm.pid}
23
24
TIMEOUT=30
24
25
SCRIPTNAME=/etc/init.d/$NAME
25
26
Original file line number Diff line number Diff line change 3
3
user = www-data
4
4
group = www-data
5
5
6
- listen = 127.0.0.1:9007
6
+ listen = 127.0.0.1:9006
7
7
8
8
pm = dynamic
9
9
pm.max_children = 5
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ sudo apt-get install -y \
9
9
10
10
git clone https://github.com/mkoppanen/imagick.git
11
11
cd imagick
12
- git checkout phpseven
12
+ git checkout master
13
13
git pull
14
14
15
- /usr/local/php7 /bin/phpize
16
- ./configure --with-php-config=/usr/local/php7 /bin/php-config
15
+ /usr/local/php5 /bin/phpize
16
+ ./configure --with-php-config=/usr/local/php5 /bin/php-config
17
17
18
18
make
19
19
sudo make install
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# Add config files
4
- echo " extension=imagick.so" | sudo tee -a /usr/local/php7 /etc/conf.d/modules.ini
4
+ echo " extension=imagick.so" | sudo tee -a /usr/local/php5 /etc/conf.d/modules.ini
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ sudo apt-get install -y \
9
9
10
10
git clone https://github.com/php-memcached-dev/php-memcached
11
11
cd php-memcached
12
- git checkout php7
12
+ git checkout master
13
13
git pull
14
14
15
- /usr/local/php7 /bin/phpize
16
- ./configure --with-php-config=/usr/local/php7 /bin/php-config
15
+ /usr/local/php5 /bin/phpize
16
+ ./configure --with-php-config=/usr/local/php5 /bin/php-config
17
17
18
18
make
19
19
sudo make install
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# Enable the module
4
- echo " extension=memcached.so" | sudo tee -a /usr/local/php7 /etc/conf.d/modules.ini
4
+ echo " extension=memcached.so" | sudo tee -a /usr/local/php5 /etc/conf.d/modules.ini
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ sudo apt-get install -y \
8
8
9
9
git clone https://github.com/phpredis/phpredis.git
10
10
cd phpredis
11
- git checkout php7
11
+ git checkout master
12
12
git pull
13
13
14
- /usr/local/php7 /bin/phpize
15
- ./configure --with-php-config=/usr/local/php7 /bin/php-config
14
+ /usr/local/php5 /bin/phpize
15
+ ./configure --with-php-config=/usr/local/php5 /bin/php-config
16
16
17
17
make
18
18
sudo make install
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# Enable the module
4
- echo " extension=redis.so" | sudo tee -a /usr/local/php7 /etc/conf.d/modules.ini
4
+ echo " extension=redis.so" | sudo tee -a /usr/local/php5 /etc/conf.d/modules.ini
You can’t perform that action at this time.
0 commit comments