| Both sides previous revision Previous revision Next revision | Previous revision |
| deb_mutism [2025/03/18 10:38] β [Install Nextcloud] JΓΊne Park | deb_mutism [2026/09/23 20:14] (current) β external edit 127.0.0.1 |
|---|
| {{mdi>database-plus?28&color=#dd4814}} Storages: | {{mdi>database-plus?28&color=#dd4814}} Storages: |
| * ''**128G**'' (m.2 type SSD) --- ''**/**'' partition | * ''**128G**'' (m.2 type SSD) --- ''**/**'' partition |
| * ''**500G**'' (SATA HDD) --- ''**~/storage**'' partition | * ''**500G**'' (SATA HDD) --- ''**/home/www-data**'' partition Β |
| | * ''**1T**'' (SATA HDD) --- ''**/home/web-data**'' partition --- backup point |
| |
| === Live status of storages === | === Live status of storages === |
| |
| <code ini> | <code ini> |
| Mounted on Type Size Used Avail Use%Β | Β |
| / ext4 117G 15G 97G 13%Β | βββββββββββ¬ββββββββββ¬ββββββββββββββ¬ββββββββββββββΒ |
| /home/www-data ext4 458G 49G 386G 12%Β | β Size β Used β Free(%) β Mount βΒ |
| /home/web-data ext4 916G 266G 605G 31% | βββββββββββΌββββββββββΌββββββββββββββΌββββββββββββββ€Β |
| | β 117G β 16G β 96G(15%) β root βΒ |
| | β 916G β 302G β 568G(35%) β web-data βΒ |
| | β 458G β 55G β 380G(13%) β www-data βΒ |
| | βββββββββββ΄ββββββββββ΄ββββββββββββββ΄ββββββββββββββ |
| </code> | </code> |
| |
| ==== οΌWork logs ==== | ==== οΌWork logs ==== |
| |
| * System Upgrade ''**Ubuntu 24.04 noble numbat**'' <sub> --- Updated on //2025/02/27 03:04// </sub>Β | * Install ''Node-RED'' using docker ''flow.meson.one'' <sub>--- Updated on //2026/01/20 02:57//</sub>Β |
| * Attach Ubuntu Pro subscription <sub> --- Updated on //2024/05/21 17:41// </sub>Β | * System Upgrade ''**Ubuntu 24.04 noble numbat**'' <sub>--- Updated on //2025/02/27 03:04//</sub>Β |
| * Upgrade ''php 8.2'' and purge ''php 7.4'', ''php 8.0'' <sub> --- Updated on //2023/06/04 02:51// </sub>Β | * Attach Ubuntu Pro subscription <sub>--- Updated on //2024/05/21 17:41//</sub>Β |
| * Upgrade ''php 8.0'' <sub> --- Updated on //2021/01/26 17:24// </sub>Β | * Upgrade ''php 8.2'' and purge ''php 7.4'', ''php 8.0'' <sub>--- Updated on //2023/06/04 02:51//</sub>Β |
| * Upgrade ''mariadb 10.5'' <sub> --- Updated on //2020/08/31 13:25// </sub>Β | * Upgrade ''php 8.0'' <sub>--- Updated on //2021/01/26 17:24//</sub>Β |
| * ''adjust & optimize'' value of ''php-fpm'' -- ''/etc/php/7.x/fpm/pool.d/www.conf'' <sub> --- Updated on //2020/07/25 21:42// </sub>Β | * Upgrade ''mariadb 10.5'' <sub>--- Updated on //2020/08/31 13:25//</sub>Β |
| * ''Upgrade'' Ubuntu **''20.04''** - ''focal fossa'' <sub> --- Updated on //2020/07/24 01:23// </sub>Β | * ''adjust & optimize'' value of ''php-fpm'' -- ''/etc/php/7.x/fpm/pool.d/www.conf'' <sub>--- Updated on //2020/07/25 21:42//</sub>Β |
| * Change ''backup rsync'' to another partition <sub> --- Updated on //2020/06/27 04:01// </sub>Β | * ''Upgrade'' Ubuntu **''20.04''** - ''focal fossa'' <sub>--- Updated on //2020/07/24 01:23//</sub>Β |
| * Migrate ''mariadb 10.3.22'' from ''mysql'' <sub> --- Updated on //2020/03/30 01:42// </sub> Β | * Change ''backup rsync'' to another partition <sub>--- Updated on //2020/06/27 04:01//</sub>Β |
| * {{fa>certificate}} ''Renew SSL certificates'' (Let's Encrypt) done <sub> --- Updated on //2019/08/01 21:17// </sub>Β | * Migrate ''mariadb 10.3.22'' from ''mysql'' <sub>--- Updated on //2020/03/30 01:42//</sub> Β |
| * **Nextcloud** ''install'' <sub> --- Updated on //2019/05/17 01:02// </sub>Β | * {{fa>certificate}} ''Renew SSL certificates'' (Let's Encrypt) done <sub>--- Updated on //2019/08/01 21:17//</sub>Β |
| * {{fa>wordpress?color=#21759b}} Wordpress(tm) ''installed'' <sub> --- Updated on //2018/09/10 00:44//</sub>Β | * **Nextcloud** ''install'' <sub>--- Updated on //2019/05/17 01:02//</sub>Β |
| * {{fa>user?color=#da1884}} Added first ''new user'' for ''x.meson.ml'' <sub> --- Updated on //2018/09/10 00:43//</sub> | {{mdi>account-multiple-plus-outline}} [[::private:june_todo#xmesonml|Registered Users]] {{fa>lock}}Β | * {{fa>wordpress?color=#21759b}} Wordpress(tm) ''installed'' <sub>--- Updated on //2018/09/10 00:44//</sub>Β |
| * **Docker Client/Server** installed <sub> --- Updated on //2018/07/18 01:20//</sub>Β | * {{fa>user?color=#da1884}} Added first ''new user'' for ''x.meson.ml'' <sub>--- Updated on //2018/09/10 00:43//</sub> | {{mdi>account-multiple-plus-outline}} [[::private:june_todo#xmesonml|Registered Users]] {{fa>lock}}Β |
| * ''wiki.meson.one'' & ''x.meson.ml'' certificates are issued <sub> --- Updated on //2018/07/17 11:17//</sub>Β | * **Docker Client/Server** installed <sub>--- Updated on //2018/07/18 01:20//</sub>Β |
| * ''mu.meson.one'' page is created and need to attention to edit <sub> --- Updated on //2018/07/13 02:00//</sub>Β | * ''wiki.meson.one'' & ''x.meson.ml'' certificates are issued <sub>--- Updated on //2018/07/17 11:17//</sub>Β |
| * ''Let's Encrypted'' issued and installed <sub> --- Updated on //2018/07/10 23:48//</sub> | * ''mu.meson.one'' page is created and need to attention to edit <sub>--- Updated on //2018/07/13 02:00//</sub>Β |
| | * ''Let's Encrypted'' issued and installed <sub>--- Updated on //2018/07/10 23:48//</sub> |
| |
| |
| <hidden> | <hidden> |
| * {{fa>certificate}} ''Renew SSL certificates'' (Let's Encrypt) done <sub> --- Updated on //2019/05/23 02:16// </sub> | * {{fa>certificate}} ''Renew SSL certificates'' (Let's Encrypt) done <sub>--- Updated on //2019/05/23 02:16//</sub> |
| </hidden> | </hidden> |
| |
| |
| ==== Install Nextcloud ==== | ==== Install Nextcloud ==== |
| |
| === Memory caching configuration === | |
| |
| {{mdi>information-variant?24&color=#be0027}} [[https://doc.owncloud.org/server/admin_manual/configuration/server/caching_configuration.html|Referral manuals]] --- by ownCloud Documentation \\ | |
| {{mdi>information-variant?24&color=#be0027}} [[https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html|Referral manuals]] --- by Nextcloud 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> | |
| |
| ---- | |
| |
| === Setting for uploading large size files === | === Setting for uploading large size files === |
| ---- | ---- |
| |
| === Enable PHP OPcache === | |
| |
| [[https://docs.nextcloud.com/server/23/admin_manual/installation/server_tuning.html#enable-php-opcache|Nextcloud Manual]] | |
| |
| ---- | |
| |
| |
| === Post installation === | |
| |
| Check overview | |
| |
| * The PHP module "imagick" in this instance has no SVG support. | |
| |
| <code bash> | |
| sudo apt install php-imagick imagemagick | |
| </code> | |
| |
| |
| |
| |
| ---- | |
| ==== Reset MySQL password ==== | ==== Reset MySQL password ==== |
| |