• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install Nextcloud 12.03 on Centos 7

{{postValue.id}}

To install Nextcloud 12.03 on CentOS 7

Nextcloud is open source software for creating and using file hosting services. It has a lot of extra Calendar, Sync and Contacts features, apart from their file hosting features. It is a great free alternative to some popular services such as Google Drive, Dropbox, Box,etc. It is so simple to install Nextcloud 12.03 on CentOS 7, and this article covers the ground on the same process.

Requirements

LAMP Stack

  • Apache
  • Mariadb
  • PHP7

Install PHP 7 by

  • rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm
  • yum-config-manager --enable remi-php70
  • yum install php php-openssl php-mysql php-mbstring php-dom php-json php-session php-ctype php-tokenizer php-simplexml php-pcre php-zip php-pdo php-curl php-iconv php-xml

Installing Nextcloud 12.03

First, you need to download the latest stable version using wget command as follows.

 [root@linuxhelp ~]# wget https://download.nextcloud.com/server/releases/nextcloud-12.0.3.zip
--2017-11-10 10:40:05--  https://download.nextcloud.com/server/releases/nextcloud-12.0.3.zip
Resolving download.nextcloud.com (download.nextcloud.com)... 88.198.160.133
Connecting to download.nextcloud.com (download.nextcloud.com)|88.198.160.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56197200 (54M) [application/zip]
Saving to: ‘ nextcloud-12.0.3.zip’ 
100%[======================================> ] 56,197,200   714KB/s   in 4m 13s 
2017-11-10 10:44:20 (217 KB/s) - ‘ nextcloud-12.0.3.zip’  saved [56197200/56197200]

Once it is downloaded, extract it by running the following command.

 [root@linuxhelp ~]# unzip nextcloud-12.0.3.zip -d /var/www/html/
Archive:  nextcloud-12.0.3.zip
   creating: /var/www/html/nextcloud/
   creating: /var/www/html/nextcloud/ocs/
  inflating: /var/www/html/nextcloud/ocs/routes.php  
  inflating: /var/www/html/nextcloud/ocs/v2.php  
  inflating: /var/www/html/nextcloud/ocs/v1.php  
  inflating: /var/www/html/nextcloud/ocs/providers.php  
  inflating: /var/www/html/nextcloud/console.php  
   creating: /var/www/html/nextcloud/ocs-provider/
.
.
.
.
inflating: /var/www/html/nextcloud/resources/config/mimetypemapping.dist.json  
  inflating: /var/www/html/nextcloud/resources/config/ca-bundle.crt  
  inflating: /var/www/html/nextcloud/resources/config/mimetypealiases.dist.json  
   creating: /var/www/html/nextcloud/resources/codesigning/
  inflating: /var/www/html/nextcloud/resources/codesigning/root.crt  
  inflating: /var/www/html/nextcloud/resources/codesigning/root.crl  
  inflating: /var/www/html/nextcloud/resources/codesigning/core.crt  

After that, move to your Apache document root and list the contents of your directory.

[root@linuxhelp ~]# cd /var/www/html/
[root@linuxhelp html]# ls -l
total 4
drwxr-xr-x 14 root root 4096 Sep 20 02:44 nextcloud

Provide appropriate owner permission and file execution permission.

[root@linuxhelp html]# chown -R apache:apache /var/www/html/
[root@linuxhelp html]# chmod -R 775 /var/www/html/

Next, you need to do a crucial step. You need to configure your Apache VirutalHost. Open the .conf file as follows.

[root@linuxhelp html]# vim /etc/httpd/conf.d/nextcloud.conf
And make the following modifications in it. 
< VirtualHost *:80> 
DocumentRoot " /var/www/html" 
ServerName www.linuxhelp1.com
< Directory " /var/www/html/" > 
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
< /Directory> 
< /VirtualHost> 

Once it is done, you shall restart your Apache Service as follows.

[root@linuxhelp html]# systemctl restart httpd

And also, make sure you make the necessary Firewall configuration as follows.

[root@linuxhelp html]# firewall-cmd --add-port=80/tcp
success
[root@linuxhelp html]# firewall-cmd --add-port=443/tcp
success
[root@linuxhelp html]# firewall-cmd --reload
Success

Go to the login page of NextCloud and enter your credentials to login.
Login

In the Storage & Database section, you can see the MySQL/MariaDB details.
Database


Enter the needed details and click on the Finish setup button.
Click
Setup

You will be taken to your NextCloud dashboard.
Nextcloud

With this, the installation of NextCloud 12.03 on CentOS 7 comes to an end.

Tags:
matthew
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

what are required php modules to install Nextcloud?

A

the required php modules to install Nextcloud are,

php-openssl php-mysql php-mbstring php-dom php-json php-session php-ctype php-tokenizer php-simplexml php-pcre php-zip php-pdo php-curl php-iconv php-xml

Q

what are the requirements needed for nextcloud?

A

the requirements needed for nextcloud are "LAMP Stack"

Apache
Mariadb
PHP7

Q

where can I get the latest releases for nextcloud?

A

the latest releases for nextcloud by below link https://download.nextcloud.com/server/releases/

Q

where to download the nextcloud package in terminal?

A

you need to download the latest stable version using wget command as follows
# wget https://download.nextcloud.com/server/releases/nextcloud-12.0.3.zip

Q

what are all the ports to be enable for next cloud in centos?

A

use the below command to enable the port of nextcloud
# firewall-cmd --add-port=80/tcp
# firewall-cmd --add-port=443/tcp
# firewall-cmd --reload

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Owen ?
How to add SSH key to my Gitlab account

I need to add the SSH key in my gitlab account. How to do so ????

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.