owncloud-archive / vm

Scripts to build an ownCloud community production VM - this was in use until 9.1.x releases. Since 10.0.1 we build appliances with Univention
https://www.univention.de/produkte/univention-app-center/app-katalog/owncloud/
23 stars 14 forks source link

use recent apcu with Ubuntu-14.04 #26

Closed jnweiger closed 9 years ago

jnweiger commented 9 years ago

Here is a recommendation from our support team, how to correctly install the apcu cache with Ubuntu-14.04 Seen in http://www.kiloroot.com/a-guide-to-owncloud-8-ubuntu-14-04-and-caching-apcu-redis-cache-and-file-locking-oh-my/ Should we use that with the appliance?

jnweiger commented 9 years ago
(18:25:15) c: sudo -s
(18:25:15) c: ##Check the version
(18:25:16) c: dpkg -s php5-apcu
(18:25:16) c: ##Uninstall the current version
(18:25:16) c: php5dismod apcu
(18:25:17) c: apt-get remove php5-apcu
(18:25:18) c: ##install the correct working version
(18:25:19) c: cd ~ 
(18:25:20) c: wget http://mirrors.kernel.org/ubuntu/pool/universe/p/php-apcu/php5-apcu_4.0.6-1_amd64.deb
(18:25:21) c: dpkg -i php5-apcu_4.0.6-1_amd64.deb
(18:25:22) c: php5enmod apcu
(18:25:23) c: touch /etc/php5/mods-available/apcu-cli.ini
(18:25:24) c: echo 'apc.enable_cli = 1' > /etc/php5/mods-available/apcu-cli.ini
(18:25:25) c: php5enmod apcu-cli
(18:25:26) c: service apache2 restart
(18:25:27) c: ## Your config file should be located somewhere like: /var/www/html/owncloud/config/config.php
(18:25:28) c: ## First backup your config
(18:25:29) c: cp /var/www/html/owncloud/config/config.php /var/www/html/owncloud/config/config.php.bak
(18:25:30) c: ## Open up your file for modding with your preferred editor (I like vim) 
(18:25:31) c: vim /var/www/html/owncloud/config/config.php
(18:25:32) c: ## Finally, add this line somewhere in your config.
(18:25:33) c: 'memcache.local' => '\\OC\\Memcache\\APCu',
(18:25:34) c: ##Reboot the apache server:
(18:25:35) c: service apache2 restart
enoch85 commented 9 years ago

@jnweiger But we already fecth APCu from your packages? Last time I checked APCu was working. What's wrong with the current way of doing it?

In build-ubuntu: https://github.com/owncloud/vm/blob/master/vagrant/oc8ce/build-ubuntu-vm.sh#L44 https://github.com/owncloud/vm/blob/master/vagrant/oc8ce/build-ubuntu-vm.sh#L129-l130 https://github.com/owncloud/vm/blob/master/vagrant/oc8ce/build-ubuntu-vm.sh#L142-l143

In check-init https://github.com/owncloud/vm/blob/master/vagrant/oc8ce/check-init.sh#L48-L54

JKawohl commented 9 years ago

Can confirm looks good.!