# Overview PHP memory: 256MB Opcache: 512MB Interned Strings: 64MB ffmpeg: ✔ imagemagick: ✔ #updates opcache settings 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 #install ffmpeg sudo yum -y install epel-release sudo yum -y localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm -yes sudo yum -y install ffmpeg ffmpeg-devel #install imagemagick # already appears to work by default in new packages # https://stackoverflow.com/questions/4208253/verify-imagemagick-installation # https://bobcares.com/blog/install-imagemagick-on-centos/ #nginx conf rules #https://www.buddyboss.com/resources/docs/components/media/media-permissions/#nginx #litespeed htaccess rules # should automatically apply per https://www.buddyboss.com/resources/docs/components/media/media-permissions/#openlitespeed since we automatically load htaccess files ## TODO disable options: lets encrypt brute force webapp firewall Remove firewall rule that screws up BB app Check against other performance optimization best practices (Ben's old doc)