Submitted by uinfor on Sun, 11/20/2016 - 15:57 Pro Licensee
I install owncloud script (i waiting nextcloud :-) ) and its working but its a little slow, i'm searching for speed up and i read a lot about php7 and apcu and memcached for php 5.6 (supported by virtualmin) and i'm sorry tell this but... i'm unable to caching and speed up owncloud
Please can you help me??
I install apcu from php-remi and modify config.php in owncloud but say me that is not enable
I search but i not view a doc to instal memcached or apcu or php7 in virtualmin ¿????
Status:
Active
Comments
Submitted by andreychek on Sun, 11/20/2016 - 16:23 Comment #1
We can toss out some general ideas for how to speed up websites, though we don't have specific details on how to go about that. That's a bit outside the scope of our support here.
Some form of caching may help -- you may want to look into Memcache, and whether Owncloud supports that.
We'd suggest caution using packages from third party repositories, but you can always install APC using PHP's "pecl" tools, as seen here:
http://idroot.net/tutorials/install-enable-alternative-php-cache-apc-cen...
We hope those ideas get you started in the right direction, though remember that we can't provide specific support regarding the above.
Submitted by andreychek on Tue, 11/29/2016 - 10:14 Comment #3
Virtualmin uses the PHP version that's available to your Linux distribution.
PHP7 is in use in Ubuntu 16.04, and it may also be available, or it's coming soon, in the CentOS SCL repository seen here:
https://www.virtualmin.com/documentation/web/multiplephp
The above instructions can be used to install other PHP versions on CentOS as well.
Submitted by andreychek on Tue, 11/29/2016 - 10:45 Comment #5
You may need to check and see if the SCL repo has PHP7 in it yet... if it doesn't, PHP7 packages may not be ready yet.
However, I don't think changing the PHP version will make things dramatically faster. I'd suggest setting up a PHP cache of some sort for ownCloud. Details of how to do that are here:
https://owncloud.org/blog/making-owncloud-faster-through-caching/
Submitted by uinfor on Wed, 01/04/2017 - 09:40 Pro Licensee Comment #6
I'm impossible to make caching with virtualmin, i have Centos 7, virtualmin pro, and i make this changes ->
yum install php-pecl-apcu
I go to config.php of owncloud and i add this in last line ->
'memcache.local' => '\OC\Memcache\APCu',
i go to virtualmin and add this in "Services" -> "PHP 5 Configuration" ->
[apcu] apc.enabled = 1 apc.shm_size = 128M apc.enable_cli = 1
I make this changes in php globally, in php5.5/php5.6 globally and in domain who hosted nextcloud in php/php5.5 and php5.6 i add this lines in all phps configs and the result is the same when i access to Nextcloud ->
Memcache \OC\Memcache\APCu not available for local cache Is the matching PHP module installed and enabled?
PD: I restart httpd service with this -> service httpd restart with all changes but no working :-(
In other server without virtualmin its working but i think virtualmin changes any path and not working the changes to php ¿??
Submitted by andreychek on Wed, 01/04/2017 - 10:22 Comment #7
When installing the package "php-pecl-apcu", that's only installing apcu for the PHP 5.4 version included with CentOS.
You would also need to install an apcu module version for your other PHP modules that came from the SCL repository. You would need to check in SCL to see if they include such a package, and if so, what the package name is.
Submitted by uinfor on Wed, 01/04/2017 - 10:40 Pro Licensee Comment #8
i make a "yum search all apcu" -> [root@hosting config]# yum search all apcu Complementos cargados:fastestmirror Loading mirror speeds from cached hostfile * base: mirror.trueinter.net * epel: ftp.fau.de * extras: mirror.trueinter.net * remi-safe: remi.mirror.wearetriple.com * updates: mirror.trueinter.net ============================== Concordante: apcu =============================== apcu-panel.noarch : APCu control panel php-pecl-apcu-devel.x86_64 : APCu developer files (header) php54-php-pecl-apcu-devel.x86_64 : APCu developer files (header) php55-php-pecl-apcu-devel.x86_64 : APCu developer files (header) php56-php-pecl-apcu-devel.x86_64 : APCu developer files (header) php70-php-pecl-apcu-devel.x86_64 : APCu developer files (header) php71-php-pecl-apcu-devel.x86_64 : APCu developer files (header) apcupsd.x86_64 : APC UPS Power Control Daemon for Linux apcupsd-cgi.x86_64 : Web interface for apcupsd apcupsd-gui.x86_64 : GUI interface for apcupsd php-pecl-apcu.x86_64 : APC User Cache php54-php-pecl-apcu.x86_64 : APC User Cache php55-php-pecl-apcu.x86_64 : APC User Cache php56-php-pecl-apcu.x86_64 : APC User Cache php70-php-pecl-apcu.x86_64 : APC User Cache php70-php-pecl-apcu-bc.x86_64 : APCu Backwards Compatibility Module php71-php-pecl-apcu.x86_64 : APC User Cache php71-php-pecl-apcu-bc.x86_64 : APCu Backwards Compatibility Module php-symfony-class-loader.noarch : Symfony ClassLoader Component php-symfony-http-kernel.noarch : Symfony HttpKernel Component php-symfony-validator.noarch : Symfony Validator Component
yum install php56-php-pecl-apcu.x86_64
Its ok but i restart httpd and go to nextcloud and the same error -> Memcache \OC\Memcache\APCu not available for local cache Is the matching PHP module installed and enabled?
Submitted by uinfor on Wed, 01/04/2017 - 11:05 Pro Licensee Comment #9
I install apcu from remi repository with this -> yum install php-pecl-apcu --enablerepo=remi-php56
and install a lot of thing but the result is the same :-(
Good news, with this last command i overwrite 5.4 original php versions and upgrade to 5.6.29 and with apcu enabled, i change default html to this php versions and..... working apcu and cached nextcloud and with Mysql db working. :-)
Submitted by andreychek on Wed, 01/04/2017 - 11:42 Comment #10
Great, glad to hear that worked for you!
Submitted by uinfor on Wed, 01/04/2017 - 11:52 Pro Licensee Comment #11
The next objective is PHP7, i think you have view this -> https://owncloud.org/blog/php-7-is-here-and-owncloud-is-ready/
Submitted by andreychek on Wed, 01/04/2017 - 12:12 Comment #12
Virtualmin does support PHP 7, though it's not available for all distros currently.
We're hoping to see that in the Software Collections repository soon though!
Submitted by martlam on Wed, 03/07/2018 - 22:55 Comment #13
With Ubuntu 16.04 and PHP 7.1 you can install APCu with the following command
sudo apt update && sudo apt install php7.1-apcu -y