CALL 01707 378 807    SUPPORT     CONTACT US     CLIENT LOG IN

OwnCloud 8.2: using PHP 7.0 on CentOS/ RHEL

Setting up ownCloud 8.2 using PHP 7.0 on CentOS/ RHEL

We created on Saturday 1:00 am some fresh VM and dedicated installs for our clients hosting ownCloud on our cloud and dedicated servers.

Please refer the below steps for PHP 7 and ownCloud 8.2 installation

 

PHP 7 Installation:
===========

To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum:

——————-
CentOS/RHEL 7.x:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6.x:
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
——————-

Now you can install PHP 7.0 (along with an opcode cache) by doing:

——————-
yum install php70w php70w-opcache
——————-

This will install the mod_php SAPI for PHP, however there are other sapis such as php-fpm (via php70w-fpm package). Read on below for more information about the available SAPIs

If you would like to upgrade php to this version it is recommended that you first check that your system will support the upgrade, e.g. making sure any CPanel-like or Plesk-like software can run after the upgrade.

Unless you know what you are doing, it is risky upgrading an existing system. It’s much safer to do this by provisioning a separate server to perform the upgrade as a fresh install instead.

You can upgrade PHP by:

——————-
yum install yum-plugin-replace

yum replace php-common –replace-with=php70w-common
——————-

It will likely give you a message “WARNING: Unable to resolve all providers …”. This is normal, and you can continue by tying “y”. You will be given a chance to see what packages will be installed and removed before again being given a chance to confirm.

OwnCloud 8 Installation on CentOS 6
=======================

1. First, we need to install the latest EPEL and Remi repository RPM

——————-
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm

wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
——————-

2. Install MySQL.

——————-
yum install mysql-server -y
——————-

3. Start MySQL:

——————-
service mysql start
——————-

4. Create a new MySQL database using the following commands.

——————-
#mysql -uroot -p

CREATE DATABASE owncloud;
GRANT ALL PRIVILEGES ON owncloud.* TO ‘owncloud_user’@’localhost’ IDENTIFIED BY ‘owncloud_user_pasword’;
FLUSH PRIVILEGES;
——————-

5. Install OwnCloud 8.2 and dependencies.

——————-
wget https://download.owncloud.org/community/owncloud-8.0.0.tar.bz2
tar -xjf owncloud-8.0.0.tar.bz2
mv owncloud /var/www/html/owncloud/
——————-

6. Set the directory permissions:

——————-
chown -R apache.apache /var/www/html/owncloud/
——————-

7. Configuring Apache for ownCloud.

By default .htaccess is disabled in Apache server. To enable it, open your virtual host file and make AllowOverride is set to All.

——————-
vi /etc/httpd/conf.d/owncloud.conf
Alias /owncloud /var/www/html/owncloud

<Directory “/var/www/html/owncloud”>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all

——————-

8. Remember to restart all services related to Apache server.

——————-
service httpd restart
——————-

9. Access OwnCloud 8.2 application

Navigate to http://your-domain.com/ and follow the easy instructions. Enter username and password for the administrator user account, click on the ‘Advanced options’ hyperlink and enter the data directory (or leave the default setting), then enter database username, database password, database name, host (localhost) and click ‘Finish setup’.

0 Comments

Leave a Comment