BASH   56

zendopcode

Guest on 29th April 2022 05:11:14 AM

  1. ### OPCode
  2. echo "zend_extension=/usr/lib/php5/20100525+lfs/opcache.so" >> /etc/php5/apache2/php.ini
  3. echo "opcache.memory_consumption=128" >> /etc/php5/apache2/php.ini
  4. echo "opcache.interned_strings_buffer=8" >> /etc/php5/apache2/php.ini
  5. echo "opcache.max_accelerated_files=4000" >> /etc/php5/apache2/php.ini
  6. echo "opcache.revalidate_freq=60" >> /etc/php5/apache2/php.ini
  7. echo "opcache.fast_shutdown=1" >> /etc/php5/apache2/php.ini
  8. echo "opcache.enable_cli=1" >> /etc/php5/apache2/php.ini
  9.  
  10. ### Disable OPCode API
  11. echo "opcache.restrict_api=/home/www/virtual/ns24.appservhosting.com/htdocs/_zopcode/" >> /etc/php5/apache2/php.ini
  12.  
  13. cd /usr/lib/php5/20100525+lfs/
  14. wget appservhosting.com/tmp/opcache.so
  15. /etc/init.d/apache2 restart
  16. cat /etc/php5/apache2/php.ini
  17.  
  18.  
  19. ### Disable OPCode
  20. php_flag opcache.enable Off

Raw Paste


Login or Register to edit or fork this paste. It's free.