Difference between revisions of "CentOS 7.x Owncloud 9.1 installation by using owncloud source zip file"
From Notes_Wiki
(Created page with "<yambe:breadcrumb self="Owncloud 9.1 installation by using owncloud source zip file">CentOS_7.x_owncloud|Owncloud</yambe:breadcrumb> =CentOS 7.x Owncloud 9.1 installation by u...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x owncloud|owncloud]] > [[CentOS 7.x Owncloud 9.1 installation by using owncloud source zip file]] | |||
To install owncloud using source zip file (without using bitnami stack) use following steps: | To install owncloud using source zip file (without using bitnami stack) use following steps: | ||
Line 31: | Line 30: | ||
#:: yum -y install php php-fpm php-mysql php-dom php-mbstring php-gd php-pdo php-json php-xml php-zip php-gd curl php-curl php-ldap php-fpm | #:: yum -y install php php-fpm php-mysql php-dom php-mbstring php-gd php-pdo php-json php-xml php-zip php-gd curl php-curl php-ldap php-fpm | ||
#:</pre> | #:</pre> | ||
# Edit | # Edit php configuration as per [[Rocky 9.x Increase default PHP resources]] | ||
#: | #: Optionally enable server concurrency as per [[Rocky 9.x Configure apache web server for concurrency]] | ||
# Restart apache for new php settings to take effect | # Restart apache for new php settings to take effect | ||
#:<pre> | #:<pre> | ||
Line 98: | Line 92: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x owncloud|owncloud]] > [[CentOS 7.x Owncloud 9.1 installation by using owncloud source zip file]] |
Latest revision as of 05:42, 15 October 2022
Home > CentOS > CentOS 7.x > Web Based Tools > owncloud > CentOS 7.x Owncloud 9.1 installation by using owncloud source zip file
To install owncloud using source zip file (without using bitnami stack) use following steps:
- Make DNS entry for desired FQDN such as files.rnd.com with IP of machine where setup is done.
- For experiments /etc/hosts will also work. Note that owncloud works only with FQDN. IP based access will not work.
- Disable SELinux
- Configure firewalld to allow 22, 80, 443 in case of public facing server.
- For internal servers we can consider disabling firewalld.
- Install epel repository
- yum -y install epel-release
- At time of writing latest PHP with CentOS 7 was php-5.4 but owncloud 9.1 needs minimum php-5.6. Hence configure remi repository to get php-5.6
- wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
- yum localinstall remi-release-7.rpm
- Enable remi repistory by editing /etc/yum.repos.d/remi.repo and set following under [remi-php56] section
- enabled=1
- Install and enable httpd using:
- yum -y install httpd
- systemctl start httpd
- systemctl enable httpd
- Install php and required php libraries:
- yum -y install php php-fpm php-mysql php-dom php-mbstring php-gd php-pdo php-json php-xml php-zip php-gd curl php-curl php-ldap php-fpm
- Edit php configuration as per Rocky 9.x Increase default PHP resources
- Optionally enable server concurrency as per Rocky 9.x Configure apache web server for concurrency
- Restart apache for new php settings to take effect
- systemctl restart httpd
- Install and enable mariadb
- yum -y install mariadb-server
- systemctl start mariadb
- systemctl enable mariadb
- Create database for owncloud using following commands on 'mysql' prompt
- grant all privileges on owncloud.* to 'owncloud'@localhost identified by 'owncloud';
- flush privileges;
- exit
- Download owncloud and extract it in Document Root folder such as '/var/www/html'
- cd /var/www/html
- wget https://download.owncloud.org/community/owncloud-9.1.4.zip
- unzip owncloud-9.1.4.zip
- chown -R apache:apache owncloud
- Configure apache with Owncloud FQDN by creating /etc/httpd/conf.d/owncloud.conf' with following contents
- <VirtualHost *:80>
- ServerName owncloud.sbarjatiya.com
- DocumentRoot /var/www/html/owncloud
- ErrorLog /var/log/httpd/owncloud/error.log
- CustomLog /var/log/httpd/owncloud/access.log combined
- </VirtualHost>
- Create log file directory referred in above virtualhost configuration using:
- mkdir /var/log/httpd/owncloud
- Check apache configuration and restart it
- apachectl configtest
- systemctl restart httpd
- Access owncloud from web browser http://owncloud.sbarjatiya.com
- Configure owncloud using web browser setup interface using values such as:
- user
- admin
- password
- Secret
- Click on storage and database to modify details to following values:
- select data folder location
- /var/www/html/owncloud/data
- Database
- choose mariadb and enter db details as follows:
- User - owncloud
- Password - owncloud
- Database - owncloud
- Host - localhost
- Click Finish
- This should open owncloud web admin UI.
- Configure owncloud using web browser setup interface using values such as:
Home > CentOS > CentOS 7.x > Web Based Tools > owncloud > CentOS 7.x Owncloud 9.1 installation by using owncloud source zip file