From Notes Wiki
Jump to: navigation, search
Home > CentOS > CentOS 7.x > Web Based Tools > Owncloud > Owncloud 9.1 installation by using owncloud source zip file

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 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
    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
  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 /etc/php.ini and increase following values
    max_execution_time = 300
    max_input_time = 600
    post_max_size = 80M
    upload_max_filesize = 20M
  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;
  13. Download owncloud and extract it in Document Root folder such as '/var/www/html'
    cd /var/www/html
    chown -R apache:apache owncloud
  14. Configure apache with Owncloud FQDN by creating /etc/httpd/conf.d/owncloud.conf' with following contents
    <VirtualHost *:80>
    DocumentRoot /var/www/html/owncloud
    ErrorLog /var/log/httpd/owncloud/error.log
    CustomLog /var/log/httpd/owncloud/access.log combined
  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
    1. Configure owncloud using web browser setup interface using values such as:
    2. Click on storage and database to modify details to following values:
      select data folder location 
      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 > Owncloud 9.1 installation by using owncloud source zip file