Difference between revisions of "NextCloud"
(Created page with "== Installeer nextcloud == yum install wget man unzip vim Centos 7 heeft standaard php-5 we installeren php-7 <pre> yum install httpd yum install mariadb-server systemctl st...") |
(→Installeer nextcloud) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 33: | Line 33: | ||
tar -xjf nextcloud-x.y.z.tar.bz2 | tar -xjf nextcloud-x.y.z.tar.bz2 | ||
cp -r nextcloud /var/www | cp -r nextcloud /var/www | ||
+ | |||
+ | |||
+ | For the Apache configuration, create the file /etc/httpd/conf.d/nextcloud.conf and add the following lines: | ||
+ | |||
+ | <pre> | ||
+ | Alias /nextcloud "/var/www/html/nextcloud/" | ||
+ | |||
+ | <Directory /var/www/html/nextcloud/> | ||
+ | Options +FollowSymlinks | ||
+ | AllowOverride All | ||
+ | |||
+ | <IfModule mod_dav.c> | ||
+ | Dav off | ||
+ | </IfModule> | ||
+ | |||
+ | SetEnv HOME /var/www/html/nextcloud | ||
+ | SetEnv HTTP_HOME /var/www/html/nextcloud | ||
+ | |||
+ | </Directory> | ||
+ | </pre> | ||
+ | |||
+ | See https://www.marksei.com/install-nextcloud-12-centos-7/ for instructions on creating database | ||
+ | [[Category:Sysop]] |
Latest revision as of 23:01, 18 September 2018
Installeer nextcloud
yum install wget man unzip vim
Centos 7 heeft standaard php-5 we installeren php-7
yum install httpd yum install mariadb-server systemctl start mariadb systemctl enable mariadb mysql_secure_installation
yum install centos-release-scl
yum install rh-php70 rh-php70-php rh-php70-php-gd rh-php70-php-mbstring
yum install rh-php70-php-mysqlnd
yum install rh-php70-php-ldap
ln -s /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php70-php.conf /etc/httpd/conf.d/ ln -s /opt/rh/httpd24/root/etc/httpd/conf.modules.d/15-rh-php70-php.conf /etc/httpd/conf.modules.d/ ln -s /opt/rh/httpd24/root/etc/httpd/modules/librh-php70-php7.so /etc/httpd/modules/
systemctl restart httpd
wget https://download.nextcloud.com/server/releases/nextcloud-x.y.z.tar.bz2.asc wget https://nextcloud.com/nextcloud.asc gpg --import nextcloud.asc gpg --verify nextcloud-x.y.z.tar.bz2.asc nextcloud-x.y.z.tar.bz2
yum install bzip2 tar -xjf nextcloud-x.y.z.tar.bz2 cp -r nextcloud /var/www
For the Apache configuration, create the file /etc/httpd/conf.d/nextcloud.conf and add the following lines:
Alias /nextcloud "/var/www/html/nextcloud/" <Directory /var/www/html/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/html/nextcloud SetEnv HTTP_HOME /var/www/html/nextcloud </Directory>
See https://www.marksei.com/install-nextcloud-12-centos-7/ for instructions on creating database