Nextcloud Setup: Complete Tutorial (2024 Edition)

preview_player
Показать описание
Below you will find the content that needs to be copied and pasted into your terminal window. Note that you will have to replace all angled brackets, such as < or > with the ones on your keyboard. The ones I have used for this description are special characters due to technical reasons.

1)
apt install php8.3-gd php8.3-mysql php8.3-curl php8.3-mbstring php8.3-apcu php8.3-intl php8.3-gmp php8.3-bcmath php8.3-xml libapache2-mod-php8.3 php8.3-zip php8.3-bz2 imagemagick php-imagick redis-server php-redis php8.3-redis

2)
<VirtualHost *:80>

DocumentRoot /var/www/nextcloud

<Directory /var/www/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews

<IfModule mod_dav.c>
Dav off
</IfModule>

RewriteEngine On

</Directory>

</VirtualHost>

3)
'trusted_domains' =>
array(
0 => ‘192.168.1.187’,
2 => ‘localhost’,
),

4)
'redis' =>
array (
'host' => '127.0.0.1',
'port' => 6379,
),

5)
‘maintenance’ => false,'enable_previews' => true,

'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\TXT',
1 => 'OC\\Preview\\MarkDown',
2 => 'OC\\Preview\\OpenDocument',
3 => 'OC\\Preview\\PDF',
4 => 'OC\\Preview\\MSOffice2003',
5 => 'OC\\Preview\\MSOfficeDoc',
6 => 'OC\\Preview\\Image',
7 => 'OC\\Preview\\Photoshop',
8 => 'OC\\Preview\\TIFF',
9 => 'OC\\Preview\\SVG',
10 => 'OC\\Preview\\Font',
11 => 'OC\\Preview\\MP3',
12 => 'OC\\Preview\\Movie',
13 => 'OC\\Preview\\MKV',
14 => 'OC\\Preview\\MP4',
15 => 'OC\\Preview\\AVI',
16 => 'OC\\Preview\\HEIC',

),
Рекомендации по теме
Комментарии
Автор

very good video! tks a lot, exactly what I'm thinking to do. Just addint tailscale at the end

vbfigueiredo
Автор

Nice tutorial. why does it show you still have OPcache and memory errors?

SavannahTL
Автор

Hello great video very helpful, i need some help for some reason i cant not add any trusted_domains, i add them to the config.php file but when i try to acces them it shows the access through untrusted domains message any ideas what van be wrong? also cannot access the overview in settings, thanks in advance for any help keep up the good work with this videos.

EdgardoFlores-nklb
Автор

systemctl restart apache2 ----> "Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details." (I'm not using VM, I'm doing it on my own machine) can you help me? I'm at minute 24:00, 18.

MatheusCampos-ml