forked from WSP-LAB/FUGIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_72.sh
executable file
·35 lines (29 loc) · 980 Bytes
/
install_72.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
#!/bin/bash
pip3 install -r requirements.txt
cd Lib/rabbitmq_php7
composer install
cd ../..
cd Lib/PHP-Parser7
composer install
cd ../..
cd Lib/evalhook7
phpize
./configure
make && make install
cd ../..
cd Lib/uopz7
phpize
./configure
make && make install
cd ../..
cd Lib/pcntl72
phpize
./configure
make && make install
cd ../..
grep -qF -- "extension=evalhook.so" /etc/php/7.2/apache2/php.ini || echo "extension=evalhook.so" >> /etc/php/7.2/apache2/php.ini
grep -qF -- "extension=uopz.so" /etc/php/7.2/apache2/php.ini || echo "extension=uopz.so" >> /etc/php/7.2/apache2/php.ini
grep -qF -- "extension=uopz.so" /etc/php/7.2/cli/php.ini || echo "extension=uopz.so" >> /etc/php/7.2/cli/php.ini
grep -qF -- "extension=pcntl.so" /etc/php/7.2/apache2/php.ini || echo "extension=pcntl.so" >> /etc/php/7.2/apache2/php.ini
sed -i "s/^disable_functions/; disable_functions/g" /etc/php/7.2/apache2/php.ini
sed -i "s/;phar.readonly = On/phar.readonly = Off/g" /etc/php/7.2/cli/php.ini