We will install Nextcloud in the /var/www/nextcloud directory. Restart PHP-FPM: $ sudo service php7.0-fpm restart Download and extract Nextcloud 9 */post_max_size = 200M/" /etc/php/7.0/fpm/php.iniĪdd the following environment variables at the end of the PHP-FPM pool file: $ sudo nano /etc/php/7.0/fpm/pool.d/www.conf env = $HOSTNAMEĮnv = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $ sed -i "s/ cgi.fix_pathinfo=1/cgi.fix_pathinfo=1/" /etc/php/7.0/fpm/php.ini $ sed -i "s/ date.timezone.*/date.timezone = UTC/" /etc/php/7.0/fpm/php.ini The following commands will set the PHP memory limit to 512MB, change the values of upload_max_filesize and post_max_size to 200M and set the timezone to UTC. To install the latest stable version of PHP version 7.0 and all necessary modules, run: $ sudo apt-get -y install php-fpm php-cli php-json php-curl php-imap php-gd php-mysql php-xml php-zip php-intl php-mcrypt php-imagick php-mbstring MariaDB > \q Install PHP and required PHP modules MariaDB > GRANT ALL PRIVILEGES ON nextcloud.* TO IDENTIFIED BY 'strong_password' $ mysql -uroot -p MariaDB > CREATE DATABASE nextcloud Next, we need to create a database for the Nextcloud installation. Restart the service $ sudo service mysql restart #log_bin_index = /var/log/mysql/mariadb-bin.index When the installation is complete, run the following command to secure your installation: $ mysql_secure_installationĭisable MariaDB binary logging by commenting the following lines $ sudo nano /etc/mysql/my.cnf #log_bin = /var/log/mysql/mariadb-bin $ sudo add-apt-repository 'deb xenial main' To add the MariaDB repository to your sources list and install the latest MariaDB 10.1 server, run the following commands: $ sudo apt-key adv -recv-keys -keyserver hkp://:80 0xF1656F24C74CD1D8 $ sudo apt-get install software-properties-common nano wget Install MariaDB 10.1 Log in to your Server via SSH with your sudo user ssh Update the system and install necessary packages $ sudo apt-get update & sudo apt-get -y upgrade Nextcloud is open source self-hosted file sync and share application. This guide should work on other Linux servers systems as well but was tested and written for an Ubuntu 16.04 server N this article, we will show you how to install Nextcloud 9 on an Ubuntu 16.04 VPS with MariaDB, PHP-FPM 7.0 and Nginx.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |