in This Tutorial you will Learn " How To Install OwnCloud on Rocky Linux "
Owncloud is a file server that comprises a suite of software that allows users to seamlessly upload and share files and folders in a secure and convenient way.
Rocky Linux is a Linux distribution developed by Rocky Enterprise Software Foundation.
Homepage - https://owncloud.com/
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.60 |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/os-releases ; getconf LONG_BIT ; hostname ; hostname -I ; sestatus
dnf makecache ; dnf groupinstall "Development Tools" -y
dnf module enable php:7.4 -y ; dnf install httpd httpd-tools mariadb-server mariadb php php-cli php-mysqlnd php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap php-curl php-opcache php-bcmath php-fpm php-common php-json php-zlib php-gmp php-apcu php-openssl php-pdo php-intl php-json php-zip -y
systemctl enable httpd mariadb php-fpm ; systemctl start httpd mariadb php-fpm
mysql_secure_installation
mysql -u root -p
create database db;
create user `dbuser`@`localhost` IDENTIFIED BY 'dbpassword';
grant all on db.* TO `dbuser`@`localhost`;
flush privileges;
exit
wget https://download.owncloud.org/community/owncloud-complete-latest.zip
unzip owncloud-complete-latest.zip ; mv owncloud /var/www/html/
nano /etc/httpd/conf.d/yourdomain.com.conf
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/html/owncloud/
<Directory /var/www/html/owncloud/>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/yourdomain.com-error.log
CustomLog /var/log/httpd/yourdomain.com-access.log combined
</VirtualHost>
chown -R $USER:$USER /var/www/html/owncloud ; chmod -R 777 /var/www/html/owncloud
apachectl configtest ; echo "192.168.1.60 www.yourdomain.com" >> /etc/hosts
firewall-cmd --permanent --add-service={http,https} ; firewall-cmd --reload
mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf_backup
systemctl restart httpd ; systemctl status httpd
www.yourdomain.com
__________________________________________________________________________________________
Tuesday, February 8, 2022
How To Deploy OwnCloud on Rocky Linux 8.5
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment