Install nextcloud on Ubuntu 22.04 Natively (Without snap Package) Part 1b

Поділитися
Вставка
  • Опубліковано 7 лис 2024
  • 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
    wget download.nextc...
    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
    unzip latest.zip
    Install Nextcloud’s files and setting up their permissions.
    • Rename the Nextcloud folder
    mv nextcloud cloud.geek2gether.com
    • Set file and group ownership
    sudo chown -R www-data:www-data cloud.geek2gether.com
    • Move file to proper directory /var/www
    sudo mv cloud.geek2gether.com /var/www
    • Disable Apache DEFAULT SITE
    sudo a2dissite 000-default.conf
    Creating host configuration for Nextcloud.
    • Setup Nextcloud CONFIG file for Apache
    sudo nano /etc/apache2/sites-available/cloud.geek2gether.com.conf
    Enable the site.
    sudo a2ensite cloud.geek2gether.com.conf
    Configuring PHP
    sudo nano /etc/php/8.1/apache2/php.ini
    memory_limit = 512M
    upload_max_filesize = 200M
    max_execution_time = 360
    post_max_size = 200M
    date.timezone = America/Detroit
    opcache.enable=1
    opcache.interned_strings_buffer=8
    opcache.max_accelerated_files=10000
    opcache.memory_consumption=128
    opcache.save_comments=1
    opcache.revalidate_freq=1
    • 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:
    geek2gether.co...
    For questions and discussions about errors or if you need further assistance, please join our discussion community at:
    geek2gether.co...

КОМЕНТАРІ • 54