sudo apt-get install apache2 php php-gd php-mysql php-curl php-zip php-xml php-mbstring
MariaDB malumotlar bazasini Nextcloud uchun tanladim quyidagi buyruqlar
yordamida o`rnatiladi:
sudo apt-get install mariadb-server
Endi foydalanuvchilar va ularning huqularini yaratib, belgilab olamiz:
sudo mysql -u root -p
CREATE DATABASE nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost'
IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;
Nextcloud-ni yuklab olamiz:
sudo tar -xzvf nextcloud-*.tar.bz2 -C /var/www/html/
Malumotlar bazasiga ruxsatlar belgilab olinadi:
sudo chown -R www-data:www-data /var/www/html/nextcloud/
sudo chmod -R 755 /var/www/html/nextcloud/
Apache serverni mos sozlamalarimizga qarab sozlaymiz:
ServerName yourdomain.com
DocumentRoot /var/www/html/nextcloud/
Options +FollowSymlinks
AllowOverride All
Require all granted
Dav off
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Domain ip adresini topish quyidagicha bo`ladi :
# Hosname -i
O`rnatilgan virtual host ga quyidagi buyruqlar yordamida ishga tushiramiz:
sudo a2ensite nextcloud.conf
sudo systemctl restart
Yuqorida ko`rsatilgan mos foydalanuvchi login paroli yordamida kirib interfeysli sozlasak ham bo`ladi.
Dostları ilə paylaş: |