-
Notifications
You must be signed in to change notification settings - Fork 15
/
install_54.sh
executable file
·48 lines (40 loc) · 1.21 KB
/
install_54.sh
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
#!/bin/bash
pip3 install -r requirements.txt
cd Lib/rabbitmq_php
composer install
cd ../..
cd Lib/PHP-Parser
composer install
cd ../..
cd Lib/evalhook
phpize
./configure
make && make install
cd ../..
cd Lib/runkit
phpize
./configure
make && make install
cd ../..
cd Lib/uopz
phpize
./configure
make && make install
cd ../..
cd Lib/pcntl54
phpize
./configure
make && make install
cd ../..
cd Lib/php-jsond
phpize
./configure
make && make install
cd ../..
grep -qF -- "extension=evalhook.so" /usr/local/lib/php.ini || echo "extension=evalhook.so" >> /usr/local/lib/php.ini
grep -qF -- "extension=uopz.so" /usr/local/lib/php.ini || echo "extension=uopz.so" >> /usr/local/lib/php.ini
grep -qF -- "extension=pcntl.so" /usr/local/lib/php.ini || echo "extension=pcntl.so" >> /usr/local/lib/php.ini
grep -qF -- "extension=jsond.so" /usr/local/lib/php.ini || echo "extension=jsond.so" >> /usr/local/lib/php.ini
grep -qF -- "; extension=runkit.so" /usr/local/lib/php.ini || echo "; extension=runkit.so" >> /usr/local/lib/php.ini
grep -qF -- "; runkit.internal_override=1" /usr/local/lib/php.ini || echo "; runkit.internal_override=1" >> /usr/local/lib/php.ini
sed -i "s/;phar.readonly = On/phar.readonly = Off/g" /usr/local/lib/php.ini