In this article we will be performing an installation of OwnCloud directly from the official OwnCloud package. OwnCloud is a suite of client-server software to provide easy file sharing. The operating system to be used will be RHEL 8 / CentOS 8 server with MySQL, PHP and Apache web-server.
In this tutorial you will learn:
- How to install Owncloud prerequisites
- How to download and upzip OwnCloud source package
- How to setup MariaDB database
- How to setup OwnCloud
Software Requirements and Conventions Used
Category | Requirements, Conventions or Software Version Used |
---|---|
System | RHEL 8 / CentOS 8/td> |
Software | OwnCloud 10.0.10 or higher |
Other | Privileged access to your Linux system as root or via the sudo command. |
Conventions |
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command$ – requires given linux commands to be executed as a regular non-privileged user |
How to install OwnCloud on RHEL 8 / CentOS 8 server step by step instructions
- Install LAMP ( Linux, Apache, MariaDB and PHP ) server. Before you continue please follow our instructions on how to setup basic LAMP server on RHEL 8. Once ready move to the next step.
- Install all required OwnCloud prerequisites.
The following command will perform a package installation of all OwnCloud prerequisites in addition to the PHP packages already installed in
Step 1 :# dnf install php-mbstring php-gd php-pecl-zip php-xml php-json php-intl unzip
- Download and install OwnCloud.
Next step is to download a latest official OwnCloud Server source code package from the OwnCloud.org website. Perhaps the most convenient way to perform this task is by using the
wget
command. At the time of writing the latest OwnCloud version is 10.0.10. Update the below link if necessary:DOWNLOAD LATEST VERSION: $ wget https://download.owncloud.org/community/owncloud-10.0.10.zip
Once the package is downloaded execute the below linux commands to unzip the package into
/var/www/html
, createdata
directory and set appropriate directory permissions:# unzip owncloud-10.0.10.zip -d /var/www/html # mkdir /var/www/html/owncloud/data # chown -R apache:apache /var/www/html/owncloud/* # chcon -t httpd_sys_rw_content_t /var/www/html/owncloud/ -R
- Create MariaDB database to be used with OwnCloud.
The following commands will create MariaDB database named
owncloud
and useradmin
with passwordpass
:# mysql -u root -p mysql> CREATE DATABASE owncloud; mysql> CREATE USER `admin`@`localhost` IDENTIFIED BY 'pass'; mysql> GRANT ALL ON owncloud.* TO `admin`@`localhost`; mysql> FLUSH PRIVILEGES; mysql> exit
- Start OwnCloud wizard and perform a final installation.
Navigate your browser to your servers URL and fill up the OwnCloud setup form:
WARNING
In case you see the below error message make sure that you have correctly installed all OwnCloud prerequisites as perStep 2 . Use the# php -m | grep -i PHP MODULE NAME
command to list if the required PHP module is available.
ERROR 500: Internal Server Error.
- Your installation of OwnCloud on RHEL 8 / CentOS 8 should be now ready. Optionally install additional OwnCloud recommended PHP modules or secure your installation with
mod_ssl
.