10 lines
568 B
Bash
10 lines
568 B
Bash
|
#!/bin/bash -e
|
||
|
|
||
|
sed -i 's,^memory_limit.*$,memory_limit=256M,' /usr/local/lsws/lsphp/etc/php.ini
|
||
|
cd /usr/local/lsws/lsphp/etc/php.d
|
||
|
sed -i 's,^opcache.enable.*$,opcache.enable=1,' 10-opcache.ini
|
||
|
sed -i 's,^opcache.memory_consumption.*$,opcache.memory_consumption=512,' 10-opcache.ini
|
||
|
sed -i 's,^opcache.interned_strings_buffer.*$,opcache.interned_strings_buffer=64,' 10-opcache.ini
|
||
|
sudo yum -y install epel-release
|
||
|
sudo yum -y localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
|
||
|
sudo yum -y install ffmpeg ffmpeg-devel
|