ISGEC - Next Cloud Deployment
Appearance
ref : https://computingforgeeks.com/install-nextcloud-on-centos-with-php-apache-mariadb/
sudo setenforce 0 sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config
yum -y install epel-release yum-utils yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --disable remi-php54 yum-config-manager --enable remi-php73
yum -y install vim httpd php php-cli php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json php-pdo php-pecl-apcu php-pecl-apcu-devel
https://computingforgeeks.com/install-mariadb-10-on-ubuntu-18-04-and-centos-7/ cat <<EOF | sudo tee /etc/yum.repos.d/MariaDB.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.4/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 EOF
yum makecache fast yum -y install MariaDB-server MariaDB-client systemctl enable --now mariadb
mysql_secure_installation root_pw - tetra123
export http_proxy=http://192.168.25.190:3128/ export https_proxy=http://192.168.25.190:3128/ export ftp_proxy=http://192.168.25.190:3128/
mysql -p
CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY "StrongPassword"; CREATE DATABASE nextcloud; GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost'; FLUSH PRIVILEGES; QUIT
yum -y install wget unzip
wget https://download.nextcloud.com/server/releases/latest-18.zip unzip latest-18.zip mv nextcloud/ /var/www/html/ mkdir -p /home/nextcloud/data ln -s /home/nextcloud/data /var/www/html/nextcloud/data chown apache:apache -R /var/www/html/nextcloud/data chown apache:apache -R /var/www/html/nextcloud/
+
iptables -t nat -A PREROUTING -p tcp --dport 7780 -j DNAT --to-destination 192.168.25.225:80 iptables -t nat -A PREROUTING -p tcp --dport 7780 -j DNAT --to-destination 192.168.25.225:80 iptables -t nat -A POSTROUTING -p tcp -d 192.168.25.225 --dport 80 -j SNAT --to-source 192.168.25.190
+
vim /etc/httpd/conf.d/nextcloud.conf
<VirtualHost *:80> ServerName fileserver.isgec.com ServerAdmin admin@example.com DocumentRoot /var/www/html/nextcloud <directory /var/www/html/nextcloud> Require all granted AllowOverride All Options FollowSymLinks MultiViews SetEnv HOME /var/www/html/nextcloud SetEnv HTTP_HOME /var/www/html/nextcloud </directory> </VirtualHost>
admin - Passiv_66%%
App store time out issue
https://help.nextcloud.com/t/curl-error-28-appstore-blank-no-apps-shown-request-timeout/70142 In /var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php On line 98 change the timeout from 10 to 30 or 90 in /var/www/html/nextcloud/lib/private/Http/Client.php On line 66 change the timeout from 30 to 90