How to Install OwnCloud 10.3.2 on CentOS8 with Let's Encrypt SSL Certificate
Автор: Windows and Linux Administrator
Загружено: 2024-12-14
Просмотров: 31
Описание:
How to Install and Configure ownCloud on CentOS-8
#OwnCloud #CentOS #CentOS8 #PHP #Apache #httpd #InstallOwnCloud
Download code link:
https://files.fm/down.php?i=u3szeur9e
========================
Step 1 – Disable SELinux
========================
nano /etc/selinux/config
Change the following line:
SELINUX=disabled
=================================
Step 2 – Install Apache/httpd
=================================
How to Install Apache on CentOS 8
sudo yum install httpd
sudo systemctl enable httpd
sudo yum install mod_ssl
sudo systemctl start httpd
sudo systemctl status httpd
==========================
Installing PHP on CentOS 8
==========================
sudo dnf install dnf-utils http://rpms.remirepo.net/enterprise/r...
sudo dnf module list php
sudo dnf module reset php
sudo dnf module enable php:remi-7.3
sudo dnf install php php-opcache php-gd php-curl php-mysqlnd
sudo dnf install php-curl php-gd php-intl php-json php-ldap php-mbstring php-mysqlnd php-xml php-zip php-opcache
sudo systemctl enable --now php-fpm
sudo chcon -Rt httpd_sys_rw_content_t /var/www/html
sudo systemctl restart httpd
sudo systemctl restart php-fpm
sudo chcon -Rt httpd_sys_rw_content_t /var/www
==========================
Downloading ownCloud
==========================
wget https://download.owncloud.org/communi... -P /tmp
sudo tar jxf /tmp/owncloud-10.3.2.tar.bz2 -C /var/www/html
sudo chown -R apache: /var/www/html
sudo vi /etc/httpd/conf.d/owncloud.conf
========
add this
========
VirtualHost *:80
ServerAdmin [email protected]
ServerName cloud.seemega.com
ServerAlias cloud.seemega.com
DocumentRoot /var/www/html
/VirtualHost
sudo systemctl restart httpd
sudo systemctl status httpd
=========================================
How to Install MariaDB on CentOS 8
=========================================
sudo dnf install @mariadb
sudo systemctl enable --now mariadb
sudo systemctl status mariadb
sudo mysql_secure_installation
mysql -u root -p
Enter password:
CREATE DATABASE ocdbwl;
CREATE USER ocdbwluser@localhost IDENTIFIED BY 'ocdbwl@user98';
GRANT ALL ON ocdbwl.* TO ocdbwluser@localhost;
FLUSH PRIVILEGES;
exit
SSL
===
sudo dnf install epel-release
sudo dnf upgrade
sudo yum install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install core
sudo snap refresh core
==============================
Adjust Firewall for Apache
==============================
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
sudo firewall-cmd --list-all | grep services
===============
Install Certbot
===============
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot --apache
certbot renew
==============================
Apache Files and Directories
==============================
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Apache is controlled by applying directives in configuration files:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
/etc/httpd/conf/httpd.conf – Main Apache config file
/etc/httpd/ – Location for all config files
/etc/httpd/conf.d/ – All config files in this directory are included in the main confog file
/etc/httpd/conf.modules.d/ – Location for Apache module config files
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Diligently check Apache log files to monitor your web server:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
/var/log/httpd/ – Location of Apache log files
/var/log/httpd/access_log – Shows a log of systems that accessed the server
/var/log/httpd/error_log – Shows a list of any errors Apache encounters
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Designate a directory to store the files for your website.
Use the configuration files to point to the directory you choose.
Some typical locations include:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
/home/username/my_website
/var/www/my_website
/var/www/html/my_website
/opt/my_website
Windows & Linux Administrator platform.
Setup, configure, manage, support Windows and Linux Servers, Administrator.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: