deb_mutism

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
deb_mutism [2019/03/30 12:29] – [+Work logs] Júne Parkdeb_mutism [2019/04/10 14:50] – [Install ownCloud] Júne Park
Line 395: Line 395:
  
 ----  ---- 
 +
 +==== Install ownCloud ==== 
 +
 +=== Memory caching configuration === 
 +
 +{{material>info?size=24&color=#be0027}} [[https://doc.owncloud.org/server/10.1/admin_manual/configuration/server/caching_configuration.html|Referral manuals]] --- by ownCloud Documentation 
 +
 +== Install Redis == 
 +
 +<code bash> 
 +sudo apt install redis-server php-redis
 +</code> 
 +
 +== Check running service == 
 +
 +<code bash> 
 +sudo ps ax | grep redis
 +sudo netstat -tlnp | grep redis
 +</code> 
 +
 +== Clearing the Redis Cache == 
 +
 +<code bash> 
 +sudo redis-cli
 +  SELECT <dbIndex>
 +  FLUSHDB
 +</code> 
 +
 +== Add configuration in ownCloud == 
 +
 +Edit ''/var/www/owncloud/config/config.php'' if ownCloud root is ''/var/www/owncloud'' and add the followings, 
 +
 +<code php> 
 +<?php
 +$CONFIG = array (
 +... ... ... 
 +...
 +),
 +'memcache.local' => '\\OC\\Memcache\\Redis',
 +'filelocking.enabled' => 'true',
 +'memcache.distributed' => '\\OC\\Memcache\\Redis',
 +'memcache.locking' => '\\OC\\Memcache\\Redis',
 +'redis' =>
 +array (
 +'host' => 'localhost',
 +'port' => 6379,
 +'timeout' => 0,
 +'dbindex' => 0,
 +),
 +); 
 +</code> 
 +
 +----
 +=== Run background jobs === 
 +
 +Add ''crontab'' with web user such as ''www-data'' 
 +
 +<code bash> 
 +# crontab -u www-data -e
 +</code> 
 +
 +Add job 
 +
 +<code bash> 
 +*  *  *  *  * /usr/bin/php -f /path/to/your/owncloud/cron.php
 +</code> 
 +
 +----
 +
 +==== Reset MySQL password ==== 
 +
 +Stop the MySQL service
 +<code bash> 
 +sudo /etc/init.d/mysql stop
 +</code>
 +
 +Start MySQL without a password
 +<code bash>
 +sudo mysqld_safe --skip-grant-tables &
 +</code> 
 +
 +Connect to MySQL
 +<code mysql> 
 +mysql -uroot
 +</code> 
 +
 +Set a new MySQL root password
 +<code mysql> 
 +use mysql;
 +update user set authentication_string=PASSWORD("mynewpassword") where User='root';
 +flush privileges;
 +quit
 +</code> 
 +
 +Stop and start the MySQL service
 +<code bash> 
 +sudo /etc/init.d/mysql stop
 +...
 +sudo /etc/init.d/mysql start
 +</code>
 +
 +Log in to the database
 +<code bash> 
 +mysql -u root -p
 +</code> 
 +
 +----
 ==== Solved Problems ===== ==== Solved Problems =====
  
  • deb_mutism
  • Last modified: 2024/05/21 17:51
  • by Júne Park