CentOS 7.x Owncloud 9.1 installation by using owncloud source zip file

From Notes_Wiki
Revision as of 05:42, 15 October 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

  1. 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.
  2. Disable SELinux
  3. Configure firewalld to allow 22, 80, 443 in case of public facing server.
    For internal servers we can consider disabling firewalld.
  4. Install epel repository
    yum -y install epel-release
  5. 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
  6. Enable remi repistory by editing /etc/yum.repos.d/remi.repo and set following under [remi-php56] section
    enabled=1
  7. Install and enable httpd using:
    yum -y install httpd
    systemctl start httpd
    systemctl enable httpd
  8. 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
  9. 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
  10. Restart apache for new php settings to take effect
    systemctl restart httpd
  11. Install and enable mariadb
    yum -y install mariadb-server
    systemctl start mariadb
    systemctl enable mariadb
  12. Create database for owncloud using following commands on 'mysql' prompt
    grant all privileges on owncloud.* to 'owncloud'@localhost identified by 'owncloud';
    flush privileges;
    exit
  13. 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
  14. 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>
  15. Create log file directory referred in above virtualhost configuration using:
    mkdir /var/log/httpd/owncloud
  16. Check apache configuration and restart it
    apachectl configtest
    systemctl restart httpd
  17. Access owncloud from web browser http://owncloud.sbarjatiya.com
    1. Configure owncloud using web browser setup interface using values such as:
      user
      admin
      password
      Secret
    2. 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
    3. This should open owncloud web admin UI.



Home > CentOS > CentOS 7.x > Web Based Tools > owncloud > CentOS 7.x Owncloud 9.1 installation by using owncloud source zip file