Momwe mungayikitsire sitepe ya Nextcloud pang'onopang'ono pa VPS

momwe mungakhalire newxtcloud mu vps

Ngati mukuganiza za pangani nsanja yanu yosungira mitambo mwachangu, wodalirika komanso wowopsa, kugwiritsa ntchito VPS ndi Nextcloud kungakhale lingaliro labwino kwambiri. Izi zikuthandizani kuti mupite kuzinthu zochepa monga kugwiritsa ntchito Raspberry Pi, NAS, ndi zina zambiri. Idzakhala yoyandikira kwambiri, malinga ndi magwiridwe antchito, kugwiritsa ntchito ntchito monga Dropbox, GDrive, Mega, ndi zina zambiri, koma yoyendetsedwa ndi inu nokha.

Kuphatikiza apo, mutha kugwiritsa ntchito zingapo mapulogalamu otseguka ndi mapulogalamu aulere kuti athe kupanga zomangamanga, kupewa njira zopezera ndalama zomwe simukudziwa motsimikiza zomwe akuchita. Ndipo, ngati izi zikuwoneka zazing'ono kwa inu, mu phunziroli mudzatha kuwona momwe mungasungire zonsezi pamaseva aku Europe, kuchokera ku GAFAM / BATX, ndikutanthauza izi ...

Kodi ndikufunika kosunga mtambo?

Gawani ndi ntchito zina kusungidwa kwa mtambo Kuchokera kwa anthu ena kungakhale kothandiza kupulumutsa pamalipiro odula olembetsa kapena kuwongolera zambiri pazazinsinsi komanso zachitetezo. Koma, kupitirira apo, ntchito zamtunduwu ndizothandiza kwambiri, makamaka munthawi ya mliri komanso pogwira ntchito zapa telefoni.

Ubwino wina wokhala ndi makina anu osungira mitambo ndi awa:

  • Gonjetsani zopinga zakusungirako kwanuko, kukhala ndi malo owonjezera komanso osasunthika kuti musunge deta yanu yonse.
  • Chitetezo cha data yanu, popeza ndichosungika mosadalirika, ndimachitidwe owonjezera (RAID) kuti asatayike. China chake chomwe simungathe kuchisunga munyumba yanu, chifukwa vuto lanu pa hard drive kapena kuba lingakusiyeni opanda iwo.
  • Kuthekera kokhala ndi deta yanu pomwe mukufunikira. Simudzafunika kunyamula PC yanu, mudzatha kuyipeza kulikonse ndi chida chilichonse chogwiritsa ntchito intaneti.
  • Kuchepetsa kusungira ndalama posasowa kulipirira zida zogwiritsa ntchito kwambiri kapena ma disks owonjezera pazosunga.
  • Kuchepetsa kusinthana kwazidziwitso.
  • Kusungira kosavuta kwambiri kuti musunge zomwe mukufuna komanso kuthekera kokulira ngati mukufuna malo ambiri nthawi iliyonse.

Nextcloud ndi chiyani?

ndi nextcloud

Nextcloud Ndi pulogalamu yomwe ndidzagwiritse ntchito monga chitsanzo chokhazikitsira ntchito yanu yosunga mafayilo mumtambo. Ndi pulogalamu yaulere, pansi pa chiphaso cha AGPLv3, ndipo ili ndi magwiridwe ofanana ndi Dropbox.

Pachifukwa ichi, ili ndi gawo la seva, yoyang'anira malo ogona, ndi gawo la kasitomala, kukhazikitsa kwanuko kuti mupeze zosungidwa kapena kutsitsa zatsopano. Kuphatikiza apo, kasitomala amapezeka pamapulatifomu osiyanasiyana, monga GNU / Linux, Android, MacOS, iOS, ndi Windows.

Nextcloud imakupatsani mwayi wosunga zidziwitso m'mabuku wamba, monga momwe mungachitire kwanuko. Komanso imalola kubisa Kutumiza ndi / kapena kusungira, kuti mukhale otetezeka kwambiri. Muthanso kugwiritsa ntchito zina zowonjezera kupanga ogwiritsa ntchito ndi magulu okhala ndi mwayi, makalendala, kapena kuphatikiza mapulogalamu ena monga ONLYOFFICE kuti mukhale ndi "Google Docs" yanu.

Kodi VPS ndi chiyani?

VPS ndi chiyani

Kuti mugwiritse ntchito Nextcloud mutha kuyigwiritsa ntchito gulu lanu lomwe mumagwiritsa ntchito ngati seva, koma izi zili ndi zovuta zazikulu:

  • Muyenera kukhala ndi zida za seva nthawi zonse ndi rauta, kugwiritsa ntchito magetsi. Kupanda kutero sakanatha kupezeka.
  • Zolephera za kugunda kwa mzere wanu. Vuto lomwe limakulirakulira ngati ogwiritsa ntchito ambiri aligwiritsa ntchito, ndani azikhala ndi chiwongolero, ndikuchepetsa liwiro losamutsa ndikuchepetsa kulumikizana kwaofesi yanu kapena nyumba.
  • Muyenera kusamalira kukonza kwa hardware ndikukula ngati kuli kofunikira.
  • Kufunika kwamakonzedwe ovuta kwambiri kuti apange makina a RAID kuti apereke kudalirika kwakukulu, komwe kudzatanthauzanso kugula zosungira zochulukirapo.
  • Kukhala akuwononga magetsi m'dera lanu. Ngati pali mabala, ntchitoyi idzagwa, pomwe m'malo opangira ma data pali ma UPS ochepetsa mavutowa.

Zonsezi ziyenera kukupangitsani kuzindikira kuti ndi bwino kugwiritsa ntchito VPSndiye kuti seva yapadera. Kwenikweni "phukusi" la seva yayikulu yopezeka mu data yomwe ingaperekedwe kwa inu nokha. Mmenemo mutha kuchita chilichonse chomwe mungafune, kugwiritsa ntchito kukhazikitsa seva ya intaneti, monga kusungira mtambo ndi Nextcloud, kuzotheka zina.

Izi ndizotheka chifukwa VPS iliyonse idzagwira ntchito ngati makina oyimirira, yokhala ndi makina ake ogwiritsira ntchito, kutha kuyigwiritsa ntchito mosiyana, osakhudza ena onse, ndi zina zambiri. Kwa wogwiritsa ntchito, zidzakhala ngati kuti muli ndi malo anu azidziwitso, koma popanda zolipira zomwe zikutanthauza.

El perekani Idzasamalira makonzedwe, kukonza zida, kulipira mphamvu zamagetsi, komanso kukupatsirani gulu lamphamvu, losasunthika, komanso chiwongolero chapamwamba kwambiri kuposa cha netiweki iliyonse yanthawi zonse. Muyenera kulipira kangachepe komwe kamakupatsani mwayi wogwiritsa ntchito ndikuyiwala zazovuta zina zonse.

Ikani Nextcloud sitepe ndi sitepe

Tsopano ndikuwonetsa chitsanzo tsatane-tsatane cha momwe mungasungire chosungira mtambo. Pachifukwa ichi, ndigwiritsa ntchito ntchito ya VPS ya Kanjinga.io, yokhala ndi Ubuntu monga pulogalamu yogwiritsira ntchito, komanso pulogalamu ya Nextcloud yomwe idzagwiritsidwe ntchito kuyiyika pa seva iyi.

ndi zifukwa zogwiritsira ntchito Clouding pali zingapo. Kumbali imodzi, ndi nsanja yomwe imapereka chitonthozo ndi gulu lake. Kumbali inayi, ili ndi mpikisano wokwanira, kupezeka kwakukulu (sikugwetsa awiri aliwonse atatu ngati ntchito zina zaulere), thandizo la 24/7 m'Spanish, ndi likulu la data ku Barcelona. Chifukwa chake, zomwe zimasungidwa zidatsalira ku Spain, motsogozedwa ndi malamulo aku Europe.

Pangani akaunti ndikukonzekera nsanja ya Clouding

Chinthu choyamba kuchita ndikulembetsa. Kulembetsa kumamalizidwa, mudzatha kulowa pagululi ndikusangalala ndi ngongole ya € 5 yomwe Clouding imakupatsani kuti muyesedwe. Chotsatira chidzakhala kusankha kasinthidwe ka seva. Izi zidzakhala malinga ndi zosowa zanu, kapena bajeti yomwe muli nayo, chifukwa mulingo umadalira kuchuluka kwa RAM, kuchuluka kwa vCores (pafupifupi CPU cores) ndi malo osungira pa NVMe SSDs ya seva yomwe muyenera kukhala nayo ..

pangani akaunti ya vps mu mitambo

Mukalembetsa, zotsatirazi zidzakhala lowani ku Clouding kulowa dzina lanu lolowera ndi mawu achinsinsi:

lowani mu clouding.io

Mukalowa mkati, chinthu choyamba mudzawona ndi gulu lowongolera kuchokera komwe mutha kuyang'anira ntchito yanu mosavuta. Kuti muyambe, dinani Dinani apa kuti mupange seva yanu yoyamba:

gulu loyendetsa ma vps

Tsopano mutha kuwona chinsalu cha kasinthidwe ka seva yanu ya VPS. Poterepa, tisankha Linux, popeza tikufuna kuyika makinawa ngati maziko a seva yathu. Makamaka, Ubuntu mu mtundu wa 20.04:

kukhazikitsa ubuntu 20.04 pa vps

Mukasuntha patsamba lomwelo, muwonanso zina masinthidwe osintha za hardware ndi chitetezo. M'chigawochi muyenera kusankha kuchuluka kwa RAM yomwe mukufuna kugwiritsa ntchito pa VPS yanu, kuchuluka kwa ma cores a CPU, ndi malo osungira a SSD omwe mukufuna.

kasinthidwe ka seva ya ubntu mu vps

Kumapeto kwa tsamba lomwelo, mutha pangani chinsinsi cha SSH ndi dzina lomwe mukufuna kufikira seva yanu kutali ndi kasamalidwe kake. Muli ndi zotchingira moto kapena zosunga zobwezeretsera ngati mukuzifuna.

Mukakhala nazo zonse kugunda Send. Pambuyo pake, chinsalu china chikuwonekera pomwe VPS yanu imawonekera. Muyenera kudikirira kwakanthawi pomwe imakhazikika ndikusintha. Sizitenga nthawi yayitali, ndichangu kwambiri:

pangani chinsinsi cha SSH

Ntchitoyi ikamalizidwa, udindo udzawoneka ngati Yogwira. Ndipo mutha kugwiritsa ntchito kale.

ssh yogwira komanso yokonzeka kugwiritsa ntchito

Mukadina pa dzina la seva yanu, zidzakutengerani pazenera lina ndikudziwitsa za izi:

momwe mungapezere seva ya VPS

M'dera pansipa mungapeze gawo lotchedwa Momwe mungapezere seva. Kumeneku mudzawona dzina lomwe wapatsidwa kuti akuchepereni, IP yanu yapagulu, chinsinsi cha SSH chomwe chidapangidwa kuti muzitsatira komanso kuti simusowa kuti mupemphe chinsinsi cha njira yakutali, dzina lanu (muzu), ndi mawu achinsinsi:

deta yolowera

Izi ndizofunikira kuti mupitilize ndi izi, chifukwa muyenera kulowa pa seva kuchokera ku distro yanu ndi SSH yoyang'anira. Kuti muchite izi, mutha kugwiritsa ntchito IP ya seva, ogwiritsa ntchito mizu ndi mawu achinsinsi omwe amakupatsani ...

Kuchokera mbali ya seva

Mukakonza VPS yanu, ili ndi makina oyambira kale ndipo mutha kuyipeza kutali ndi oyang'anira. Ndikutanthauza, tsopano ndi liti ndondomeko imayamba kukweza ntchito yosungira mtambo ndi Nextcloud.

Njira zomwe mutsatire ndizofanana ndendende momwe mungayikitsire ntchitoyi m'dera lanu, kokha kuti muzichita mu VPS. Kuti muyambe, tsegulani malo ogwiritsira ntchito ndi kulumikiza ku VPS ndi SSH:

ssh root@direccion-ip-servidor

momwe mungalumikizire ku VPS ndi SSH

Ikufunsani mawu achinsinsi ngati simunagwiritsepo ntchito ma key, ndipo mukangolowa mudzapeza seva yanu ngati muzu. Mudzawona kuti kufulumira sikukutanthauzanso wogwiritsa ntchito kwanuko, koma ndinu woyang'anira pa VPS:

khalani otsogola pa seva ya vps

Tsopano popeza muli ndi mwayi, chinthu choyamba muyenera kuchita ndikuyamba kukhazikitsa mapaketi onse oyenera Lembani seva la intaneti (LAMP = Linux + Apache + MySQL / MariaDB + PHP) yomwe ingakhale maziko omanga mtambo ndi Nextcloud. Kuti muchite izi, muyenera kuyamba kukonzanso ndikuyika phukusi lofunikira:

apt-get update -y
apt-get upgrade -y
apt-get install apache2 php mariadb-server -y

Pambuyo poyika phukusi lofunikira pa intaneti, zotsatirazi ndi yambitsani ndikuyamba seva ya Apache:

systemctl enable apache2
systemctl start apache2

Kungakhalenso koyenera kukhazikitsa phukusi APCU ya PHP cache ndi Redis ya database. Pofuna kukhazikitsa ntchitoyi, ndikosavuta monga kutsatira malamulo awa:

apt-get install php-apcu php-redis redis-server
systemctl enable redis-server

Chotsatira ndikukhazikitsa phukusi lothandizira yomwe PHP iyenera kukhala yokwanira ndikugwira ntchito ndi NextCloud:

apt-get install php-zip php-dompdf php-xml php-mbstring php-curl unzip php-gd php-mysql php-intl php-bcmath php-gmp php-imagick -y

ma package othandizira mtambo wotsatira

Gawo lotsatira ndilo thandizani ma module a seva ya intaneti ndikuyambiranso kuti ichitike:

a2enmod rewrite headers env dir mime
systemctl restart apache2

Chinthu chotsatira choti muchite ndikupanga fayilo ya zosintha pa seva ndi kuyambitsa satifiketi ya SSL. Kuti muchite izi, mutha kutengera fayilo yosintha ndikusintha dzina lina munjira yomweyo:

cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/nextcloud.conf
nano /etc/apache2/sites-available/nextcloud.conf

Ndipo mkati mwa fayilo yosinthira ya pangani VirtualHost mutha kuzisintha kuti zomwe zili motere (kumbukirani kuti musinthe "dzina lanu.es”Ndi IP ya seva yanu ya Clouding kapena dzina lanu lachidziwitso ngati muli nalo. Muyeneranso kusintha "wosuta" paomwe mudagwiritsa ntchito kwa inu):

<VirtualHost *:80>

ServerName tunombrededominio.es
ServerAdmin usuario@localhost
DocumentRoot /var/www/html/vhost/tunombrededominio.es/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/html/vhost/tunombrededominio.es/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride FileInfo
#AuthConfig
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/html/vhost/tunombrededominio.es/logs/error.log
LogLevel warn
CustomLog /var/www/html/vhost/tunombrededominio.es/logs/access.log combined
<IfModule mod_headers.c>
Header always set Strict-Transport-Security «max-age=15768000; includeSubDomains; preload»
</IfModule>
</VirtualHost>

chotsani

Mukamaliza, kumbukirani kusunga kasinthidwe kukanikiza Ctrl + O ndi Ctrl + X kuti mutuluke.

Muyeneranso kupanga ma subdirectories oyenera omwe akuyenera kufanana ndi njira zomwe zafotokozedwazo. Mwachitsanzo:

mkdir -p /var/www/html/vhost/tunombrededominio.es/{www,logs}

Osayiwala thandizani malo a intaneti adapangidwa ndikusintha ndikuyambiranso Apache kuti kusinthaku kuchitike:

cd /etc/apache2/sites-available/
a2ensite nextcloud.conf
systemctl restart apache2

Tsopano tikupita ndi Zikalata zachitetezo cha SSL. Kuti muchite izi, mutha kugwiritsa ntchito Tiyeni Encrypt ndi Certbot, zomwe zingakuthandizeni kusintha kasinthidwe kuti musavutike kwambiri. Ndipo zimachitika ndikukhazikitsa phukusi zofunika monga:

apt-get install letsencrypt certbot python3-certbot-apache

Otsatirawa ndi pangani satifiketi kutsatira lamulo ili (gwiritsani ntchito tsamba lanu kapena adilesi yolumikizana ndi inu):

certbot --authenticator standalone --installer apache -d tunombredomini.es –pre-hook “systemctl stop apache2" --post-hook "systemctl start apache2"

Chotsatira, mukafunsidwa, ndikuwonjezera Imelo Adilesi Yolondola satifiketi. Ndikofunikira kuti ndi adilesi yomwe mutha kufunsa, ndipo simapangidwa.

Funso lotsatira lidzakhala kufunsa mtundu wopezera pa protocol ya HTTPS yomwe mukufuna pa seva yanu. Pali njira ziwiri, 1-Easy ndi 2-Safe, ndibwino kuti musankhe yachiwiri, ndiye kuti, dinani nambala 2 ndi ENTER.

Ndikuti muyenera kuwona uthenga wa kulenga satifiketi bwinobwino ndipo mukhala ndi seva yanu yokonzeka kale ndi VirtualHost kuti mutha kukhala ndi subdomain mu domainname.es yanu kuti mupeze mtambo wanu wosungira mwachinsinsi ...

Chinthu chotsatira choti muchite ndi kukhazikitsa NextCloud Mwakutero ndikukonzekera zilolezo zofunikira. Kuti muchite izi, yambani kutsitsa ndikukhazikitsa mtundu waposachedwa wa Nextcloud ndi (kachiwiri, kumbukirani kuti musinthe mayinawo ndi mtundu womwe mwatsitsa nawo kwa inu ndi njira yanjira yanu):

cd ~
wget https://download.nextcloud.com/server/releases/latest-20.tar.bz2
tar -jxvf latest-20.tar.bz2
cp -a nextcloud/. /var/www/html/vhost/tunombrededominio.es/www/
chown -R www-data:www-data /var/www/html/vhost/tunombrededominio.es/www/
chmod -R 775 /var/www/html/vhost/tunombrededominio.es/www/

kukhazikitsa nextcloud

Chotsatira ndikupanga database yofunikira kwa ogwiritsa ntchito. Kuti muchite izi muyenera kuyamba poyambira MySQL kapena, polephera, MariaDB, monga zilili pano. Komabe, zonsezi zidzakhala zofanana:

mysql -u root -p

Idzakufunsani mawu achinsinsi, mwa njira. Ndipo kamodzi, mudzakhala ndi changu kuti mukwaniritse malamulo oyenera kuti mupange database yomwe ikutchedwa nextclouddb pankhaniyi. Mutha kuyitcha chilichonse chomwe mungafune. Koma kumbukirani kuti musinthe dzina lanu lolowera achinsinsi. Zingakhale zosavuta monga:

CREATE DATABASE nextclouddb;
CREATE USER ‘usuario’@‘localhost’ IDENTIFIED BY ‘contraseña’;
GRANT ALL PRIVILEGES ON nextclouddb . * TO ‘usuario’@‘localhost’;
FLUSH PRIVILEGES;

Ndipo ndi ichi mukadakhala nacho ...

Otsatirawa ndi tsegulani msakatuli wanu, amene mumakonda, ndipo pamenepo lembani ulalo wanu, womwe mudawakonzera kuti muwone m'mayendedwe am'mbuyomu, ndiko kuti, subdomain yokhala ndi domainname.es yanu kapena ndi IP ya seva ngati mulibe domain. Sichiyenera kukhala kuchokera ku seva ya Clouding VPS, itha kukhala kuchokera kumachitidwe anu akomweko. Ngati mwangopanga kumene dzina lanu, mwina silikupezeka, chifukwa chake muyenera kudikirira kwakanthawi kuti lifalikire. Nthawi zambiri sizitenga nthawi yayitali.

Ngati zilipo, izi zidzakupangitsani lowetsani tsamba Nextcloud kuti mulowemo.

Para lowani ndi zizindikilo, chinthu choyamba ndikupanga dzina lolowera (woyang'anira) ndi password. Kuchokera pa seva yanu yakutali (mutha kusinthira "wosuta "yo ndi dzina lomwe mukufuna):

useradd -m -d /bin/nologin usuario
mkdir -p /home/usuario/cloud/
chown www-data.usuario -R /home/usuario

Kumbukirani kuti musinthe mawonekedwe anu ndi njira zanu. Makamaka, osagwiritsa ntchito "admin" monga dzina la woyang'anira, popeza silitetezedwa kwenikweni. Muyeneranso kusankha mawu achinsinsi olimba, osachepera malembo asanu ndi atatu ndipo amasakanikirana ndi zilembo zazikulu, zazing'ono, manambala ndi zizindikilo, popanda mawu omwe amapezeka mudikishonale. Muyeneranso kufotokoza njira yomwe mafayilo omwe adakwezedwa kumtambo adzasungidwe, makamaka kunja kwa njira ya Apache yomwe mudakonza kale.

Tsopano, mu msakatuli wanu momwe mudatsegulira ulalo, lowetsani zogwiritsa ntchito zomwe mudangopeza kumene:

Lowetsani zidziwitso zanu ku vps

Deta yotsatirayi ikufanana ndi zomwe mudagwiritsa ntchito popanga fayilo ya database ndi MariaDB, ndiko kuti, muyenera kulemba dzina lanu lolowera mu database (wosuta), mawu achinsinsi omwe mudalowetsa (password), dzina la database (nextclouddb), ndi seva (localhost). Mukalowa, dinani batani Kukonzekera kwathunthu.

malizitsani kukhazikitsa kwa nextcloud

Ngati zonse zikuyenda bwino, muwona chithunzi cholandilidwa cha Nextcloud ndipo kukhazikitsa kwake kuyenda bwino.

Otsatirawa adzakhala pitirizani kukonza Nextcloud, popeza ndikukhazikitsa kogwira ntchito, koma imakupatsani zidziwitso ndi malingaliro mukapita ku Kukhazikitsa> Zikhazikiko Zoyambira. Zolakwitsa zonsezi ziyenera kusamalidwa. Kuti tiwathetse, timayamba kukonza makina osungira seva ndi Redis:

nano /etc/redis/redis.conf

pitirizani kukonza nextcloud

Mkati muyenera pangani zotsatirazi:

  • Sinthani doko lamtengo 6379 ndi doko 0
  • Chotsani mzere unixsocket /var/run/redis/redis.sock
  • Uncomment imakhalanso unixsocketperm 700, koma sinthani 700 kukhala 770

Pomaliza, osayiwala kusunga zosintha ndi Ctrl + O ndipo mutuluke ndi Ctrl + X mkonzi wanu wa Nano.

Mukamaliza, zotsatirazi ndi pangani wosuta wa Redis ndikupanga kukhala membala wa gulu la Apache ndikuyambiranso ntchitozo kuti zigwire ntchito. Mwanjira:

usermod -a -G redis www-data
systemctl restart apache2
systemctl restart redis-server

Mukamaliza izi, muyenera konzani Nextcloud kuti igwiritse ntchito Redis. Kuti muchite izi, muyenera kusintha fayilo ya Nextcloud (kumbukirani kusintha dzina lanu kukhala lanu kapena seva yanu):

nano /var/www/html/vhost/tunombredominio.es/www/config/config.php
Allí tendrás que agregar lo siguiente:
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘memcache.locking’ => ‘\\OC\\Memcache\\Redis’,
‘filelocking.enabled’ => ‘true’,
‘redis’ =>
array (
‘host’ => ‘/var/run/redis/redis.sock’,
‘port’ => 0,
‘timeout’ => 0.0,
),

Pambuyo pake, sungani zosintha monga mukudziwa kale ndikuyambiranso seva:

systemctl enable redis-server

Mukamaliza, muyenera konzani Opcache ya PHP, popeza kuchokera ku Nextcloud 12 masitepe awa ayenera kutsatiridwa kuti asapereke uthenga wolakwika womwe amaponyera. Poterepa, mtundu waposachedwa wagwiritsidwa ntchito, chifukwa chake pakufunika kuchita zotsatirazi (sinthani nambala yake ndi yomwe ikugwirizana ndi PHP yomwe mwayika, pano ndi 7.4):

nano /etc/php/7.4/apache2/php.ini

Mu fayilo muyenera chotsani mizere iyi (ndipo mutha kusintha zosintha zomwe mukufuna):

; Nextcloud Opcache settings
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1

Muyeneranso kupeza parameter upload_max_filesize ndi post_max_size kuti mutha kusintha kuti mupereke mtengo wokwanira. Mwachisawawa ali 2MB, chifukwa chake sichingakulolereni kutsitsa mafayilo olemera kwambiri kapena zolemba zazitali kwambiri. Mutha kutchula mtengo wina, monga 2048M.

Ndiye kumbukirani sungani zosintha musanatuluke mkonzi. Kenako muyenera kuyambiranso Apache kuti ichitike:

systemctl restart apache2

Gawo lotsatira lidzakhala konzani maulalo ochezeka kotero kuti ma URL ndi afupikitsa komanso omveka bwino. Kuti muchite izi, fayilo yotsatirayi iyenera kusinthidwa (kumbukirani kuti musinthe malowa ndi omwe akugwirizana ndi inu kapena seva yanu):

nano /var/www/html/vhost/tunombrededominio.es/www/config/config.php

Mmenemo muyenera kuwonjezera mzere:

‘htaccess.RewriteBase’ => ‘/’,

Kenako mumasunga. Ndipo zotsatirazi zikanakhala sinthani .htaccess:

nano /var/www/html/vhost/tudominio.com/www/.htaccess

Pamenepo muyenera kutero ndemanga mizere yotsatirayi:

#php_value mbstring.func_overload 0
#php_value default_charset 'UTF-8'
#php_value output_buffering 0
#Options -Indexes
#DirectoryIndex index.php index.html”

Ndiye muyenera kutero sinthani fayilo ya web .htaccess:

sudo -u www-data php occ maintenance:update:htaccess

Apanso yambitsani seva Apache:

systemctl restart apache2

Tsopano, muwona izi ulalo wanu adzafupikitsidwa de yourdomainname.es/index.php/apps/gallery ku yourdomainname.es/apps/gallery.

Kukonzekera sikunamalizidwe kuthetsa zolakwika ndi machenjezo omwe Nextcloud adayambitsa, gawo lotsatira ndilo yambitsani kufotokozera mafayilo chitetezo chowonjezera. Ndikulimbikitsidwa, ngakhale sikofunikira. Koma kumbukirani kuti ngati mutero, mbali imodzi ntchitoyi idzasokonekera chifukwa chobisa / kusimba, ndipo mbali inayo, ngati mutaya kiyi, deta yanu idzakhala yosatheka.

Kuti mutsegule kubisa, pitani pa msakatuli wanu pomwe mudakhala ndi gawo lotsatira la Nextcloud ndikupita kuzithunzi kapena chithunzi cha wogwiritsa ntchito pakona yakumanja. Mu menyu yotsika pansi dinani ofunsira > Mapulogalamu amalemala> ndipo yambitsani Module Encryption Module. Tsopano mutha kupita ku Zikhazikiko> Encryption> Yambitsani kubisa pa seva yomwe muyenera kuyimba kuti muyambe.

Ndi izi zikadakhala anamaliza ndondomeko yonse kuchokera mbali ya seva ... Mutha kutulutsa gawo lanu mu msakatuli komanso gawo lakutali la seva la SSH ndi:

exit

Kuchokera kumbali ya kasitomala

Zachidziwikire, mukakhala ndi seva yanu ya Clouding VPS ndi Nextcloud yogwira, sizingakuthandizireni ngati simukhazikitsa kasitomala. Ndiye kuti, chidutswa china cha Nextcloud chomwe mutha kutsitsa kapena kusanja data yakwanuko kuti chitha kukwezedwa kumtambo.

Este kasitomala amapezeka pamachitidwe osiyanasiyana, ngakhale pazida zamagetsi ngati mukufuna kugwiritsa ntchito pafoni yanu. Koma, pankhaniyi, popeza tili pa Ubuntu blog, ndikufotokozera momwe mungayikiritsire pa makina opangira.

Mutha kupita kosavuta, kupeza Ubuntu Software, kusaka kasitomala wa Nextcloud ndikuyika. Kapena mutha kuzichokeranso ku terminal (nthawi ino sichimachokera pagawo lakutali la SSH, koma kwanuko, pamakina anu):

sudo apt-get install software-properties-common gnupg2 -y
sudo add-apt-repository ppa:nextcloud-devs/client
sudo apt-get update -y
sudo apt-get install nextcloud-client -y

Tsopano, mwayiyika pa kompyuta yanu. Pitani ku mapulogalamu anu ndi tsegulani Nextcloud:

kulumikiza ku nextcloud

Mukangoyamba pulogalamuyi, muyenera kuyika fayilo ya URL kapena IP ya seva ya VPS zomwe mwazikonza mu Clouding pankhaniyi:

pulogalamu yamakasitomala a nextcloud

Ikufunsani fayilo ya lolowera lolowera achinsinsi. Zomwe mudapanga pamapeto omaliza patsamba la seva. Kenako ikukufunsani kuti musinthe kasitomala, ngati mukufuna kuti ikufunseni musanayanjanitse deta, ndi zina zambiri.

Mukamaliza, mudzakhala nawo kufikira malo anu osungira kutsitsa kapena kukweza zomwe mukufuna mu malo anu osungira ...nextcloud ikuyenda pa vps

 

* ZOFUNIKA KWAMBIRI: phunziroli likukhudzana ndi kukhazikitsa ndi kukhazikitsa kwa Nextcloud, kuti izitha kugwira ntchito, koma ndikofunikira kuwerenga zolemba za Netxcloud kuti mupitilize kupanga masanjidwe achitetezo. Pakati pa Nextcloud mudzatha kuwona zidziwitso zachitetezo zomwe muyenera kukonza.

Tsopano popeza tili ndi chilichonse choyikika ndikugwira ntchito, mutha kutsimikizira mphamvu ndi kusinthasintha komwe kuchititsa VPS monga Clouding ikupereka. Nextcloud ndiimodzi mwazinthu zingapo zomwe mungagwiritse ntchito ndi zida zomwe mungagwiritse ntchito. Sikuti zonse zimafikira pakupanga mawebusayiti. Pali zosankha zambiri zomwe mungagwiritse ntchito VPS


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Ndemanga za 2, siyani anu

Siyani ndemanga yanu

Anu email sati lofalitsidwa.

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.

  1.   Kaini anati

    Zabwino kwambiri, zikomo chifukwa cha maphunziro 🙂

  2.   kutali anati

    maphunziro abwino kwambiri
    Ndikayika, chifukwa chiyani ndikufuna ma vps "otsika mtengo" omwe alibe chosungira
    Ndikufuna kugwiritsa ntchito imodzi mwama vps otsika mtengowo ndikugwiritsa ntchito kusungirako ntchito ina monga uptobox kuti ndalama zochepa mumasungirako "zopanda malire"