Owncloud 8.2 Setup Using PHP 7
Installing and configuring ownCloud 8.2 in CentOS using PHP 7.0
We created on Saturday some fresh VM and dedicated installs for our clients hosting ownCloud 8.2 on our cloud and dedicated servers.
OwnCloud 8,2 (stylized ownCloud) is a suite of client-server software for creating file hosting services. You can find more details about ownCloud here.
You can install a self hosted ownCloud hosting solution which allows you to rest assured knowing that your important files are secure on YOUR device and not just floating in a free cloud somewhere.
Setting up ownCloud 8.2 is very easy. Select a package that fits your needs from Bytehouse Cloud Products and follow the below steps.
Prerequisites for ownCloud 8.2 Installations:
Before installation of ownCloud, we need to set up the LAMP architecture in the VM.
Installation of ownCloud 8.2
1. Install Apache, PHP.
yum install httpd php php-mysql sqlite php-dom php-mbstring php-gd php-pdo php-json php-xml php-zip php-gd curl php-curl -y
2. Add the Webtatic EL yum repository information
For 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
3. Upgrade to PHP 7.
Upgrade to PHP 7 by:
yum install yum-plugin-replace
yum replace php-common --replace-with=php70w-common
4. Install MySQL
yum install mysql-server -y
now start mysql service.
service mysql start
5. Create a database for ownCloud 8.2.
Login to mysql as root
#mysql -uroot -p
Create a database for ownCloud
mysql> CREATE DATABASE owncloud;
GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud_user'@'localhost' IDENTIFIED BY 'owncloud_user_pasword';
FLUSH PRIVILEGES;
Exit mysql prompt by execute the below command.
exit
6. ownCloud installation
Navigate to the root directory
cd /root
Download the ownCloud-8.2 server from the below link:
wget https://download.owncloud.org/community/owncloud-8.2.0.zip
Unzip the file and upload it to the /var/www/html/owncloud
unzip owncloud-8.2.0.zip
mv owncloud /var/www/html/
Now change the permission and ownership:-
cd /var/www/html/
chown -R apache:apache owncloud
chmod -R 755 owncloud
7. Configuring Apache for OwnCloud 8.2.
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
<IfModule mod_alias.c>
Alias /owncloud /var/www/html/owncloud
</IfModule>
<Directory “/var/www/html/owncloud”>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
8. Finally install mod_ssl for https to get rid off security warning.
yum install mod_ssl
and restart apache
service httpd restart
Setting up ownCloud 8.2
1. Open in browser https://server_ip.
Create an ownCloud 8.2 account by entering a username and password.
2. Click on Storage and database and Select MySQLMariaDB and enter the following details.
- Database user
- Database password
- Database name
- localhost
3. Click on Finish setup button.
0 Comments