Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. php -v
  2. PHP 5.4.4-14+deb7u4 (cli) (built: Aug 23 2013 14:37:41)
  3.  
  4. `sudo apt-get install -y php-pear`
  5.  
  6. sudo apt-get install -y build-essential php5-dev
  7.  
  8. sudo pecl install zendopcache-7.0.3
  9.  
  10. sudo find / -name 'opcache.so'
  11.  
  12. /usr/lib/php5/20100525/opcache.so
  13.  
  14. sudo vim /etc/php5/mods-available/opcache.ini
  15.  
  16. zend_extension=/usr/lib/php5/20100525/opcache.so # File path from above
  17. opcache.memory_consumption=128
  18. opcache.interned_strings_buffer=8
  19. opcache.max_accelerated_files=4000
  20. opcache.revalidate_freq=60
  21. opcache.fast_shutdown=1
  22. opcache.enable_cli=1
  23.  
  24. sudo ln -s /etc/php5/mods-available/opcache.ini /etc/php5/conf.d/20-opcache.ini
  25.  
  26. sudo service php5-fpm restart
  27. sudo service apache2 restart
  28.  
  29. php -v
  30.  
  31. Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
  32. with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
  33.  
  34. sudo apt-get remove --purge build-essential php5-dev
  35.  
  36. deb http://packages.dotdeb.org wheezy-php55 all
  37. deb-src http://packages.dotdeb.org wheezy-php55 all
  38.  
  39. shtool at '/tmp/pear/temp/zendopcache/build/shtool' does not exist or is not executable.
  40. Make sure that the file exists and is executable and then rerun this script.
  41.  
  42. mount -o remount,exec /tmp
  43. pecl install zendopcache
  44. mount -o remount,noexec /tmp
  45.  
  46. pecl install apc
  47.  
  48. apt-get install php5-apc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement