filmov
tv
Install nextcloud on Ubuntu 22.04 Natively (Without snap Package) Part 1b
Показать описание
how to install nextcloud on ubuntu without using the snap package.
Commands include:
Packages Needed – Apache and Mariadb or mysql and some PHP modules.
Creating a local user
adduser ncadmin
usermod -aG sudo ncadmin
Installing updates
sudo apt update
sudo apt dist-upgrade
Cleanup updates
sudo apt autoremove
Setting the Hostname
sudo nano /etc/hostname
Disabling root login via SSH
sudo nano /etc/ssh/sshd_config
sudo systemctl restart ssh
Download Nextcloud
Database Installation and Setup Mariadb
sudo apt install mariadb-server
systemctl status mariadb
sudo mysql_secure_installation
Create Nextcloud Database
sudo mariadb
CREATE DATABASE nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost' IDENTIFIED BY 'mysecurepassword';
FLUSH PRIVILEGES;
Setup Apache Web Server
sudo apt install php php-apcu php-bcmath php-cli php-common php-curl php-gd php-gmp php-imagick php-intl php-mbstring php-mysql php-zip php-xml
systemctl status apache2
Satisfy Nextcloud requirement and enable recommended PHP extensions.
sudo phpenmod bcmath gmp imagick intl
sudo apt install unzip
Install Nextcloud’s files and setting up their permissions.
• Rename the Nextcloud folder
• Set file and group ownership
• Move file to proper directory /var/www
• Disable Apache DEFAULT SITE
Creating host configuration for Nextcloud.
• Setup Nextcloud CONFIG file for Apache
Enable the site.
Configuring PHP
memory_limit = 512M
upload_max_filesize = 200M
max_execution_time = 360
post_max_size = 200M
• Ensure required PHP modules are enabled.
sudo a2enmod dir env headers mime rewrite ssl
• Restart Apache to make sure PHP settings take effect:
sudo systemctl restart apache2
Nextcloud PHP recommendations:
For questions and discussions about errors or if you need further assistance, please join our discussion community at:
Commands include:
Packages Needed – Apache and Mariadb or mysql and some PHP modules.
Creating a local user
adduser ncadmin
usermod -aG sudo ncadmin
Installing updates
sudo apt update
sudo apt dist-upgrade
Cleanup updates
sudo apt autoremove
Setting the Hostname
sudo nano /etc/hostname
Disabling root login via SSH
sudo nano /etc/ssh/sshd_config
sudo systemctl restart ssh
Download Nextcloud
Database Installation and Setup Mariadb
sudo apt install mariadb-server
systemctl status mariadb
sudo mysql_secure_installation
Create Nextcloud Database
sudo mariadb
CREATE DATABASE nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost' IDENTIFIED BY 'mysecurepassword';
FLUSH PRIVILEGES;
Setup Apache Web Server
sudo apt install php php-apcu php-bcmath php-cli php-common php-curl php-gd php-gmp php-imagick php-intl php-mbstring php-mysql php-zip php-xml
systemctl status apache2
Satisfy Nextcloud requirement and enable recommended PHP extensions.
sudo phpenmod bcmath gmp imagick intl
sudo apt install unzip
Install Nextcloud’s files and setting up their permissions.
• Rename the Nextcloud folder
• Set file and group ownership
• Move file to proper directory /var/www
• Disable Apache DEFAULT SITE
Creating host configuration for Nextcloud.
• Setup Nextcloud CONFIG file for Apache
Enable the site.
Configuring PHP
memory_limit = 512M
upload_max_filesize = 200M
max_execution_time = 360
post_max_size = 200M
• Ensure required PHP modules are enabled.
sudo a2enmod dir env headers mime rewrite ssl
• Restart Apache to make sure PHP settings take effect:
sudo systemctl restart apache2
Nextcloud PHP recommendations:
For questions and discussions about errors or if you need further assistance, please join our discussion community at:
Комментарии