From A-Eskwiki
Jump to: navigation, search

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

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/ /etc/httpd/modules/

systemctl restart httpd

wget wget 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

 SetEnv HOME /var/www/html/nextcloud
 SetEnv HTTP_HOME /var/www/html/nextcloud


See for instructions on creating database