![]() ![]() CREATE DATABASE owncloud_db Ĭreate a User and grant permissions on the nextcloud-db database, mysql -u root -pĬreate a database for ownCloud. Now, let's install PHP 7.4 via the remi repository, dnf module install php:remi-7.4 Create a Database for ownCloudĬommand to login MariaDB database. To check/list the available PHP versions, use the following command, dnf module list php Installing PHP 7.4 Next, install the Remi repository with the following command, dnf install List the available PHP module stream Installing the EPEL and Remi Repositoryįor this, we use the PHP 7.4 and 8.1 packaged by Remi,įirst, let us install the EPEL repository, dnf install The LAMP stack should be installed and running, Click here for Instructions to Install the LAMP stack on the server.Ĭurrently ownCloud supports PHP 7.4 or PHP 7.3.You can synchronize everything between your devices and share files with others. OwnCloud lets you access your files, calendar, contacts, and other data and they are available on any device and can be shared with a few clicks. Changing ownership as above could result in some issues if the NFS mount is lost.OwnCloud is a self-hosted open source file server that enables secure storage, collaboration, and sharing. The simple act of mounting the drive will set proper permissions for ownCloud to write to the directory. If you've followed this method and are planning on an upgrade from OC8 to OC9, be sure to read the OC Upgrade documentation very carefully as it states, "When using an NFS mount for the data directory, do not change its ownership from the default. Give your Linux system a quick reboot and you should no longer receive the errors at the top of this post when accessing your OwnCloud URL.Now in the terminal, type sudo mount -a and ensure there are no errors mounting the share we configured in fstab.Edit the config.php file to include the you typed above.sudo vi /var/www/owncloud/config/config.phpModify the 'datadirectory' field to your new location so it reads something like:'datadirectory' => '/var/www/owncloud/data', Now we need to make OwnCloud aware of the location we want it to use for storing files.Ocadmin/password is the local host machine account we careated earlier Www-data is the default OwnCloud server account running the owncloud service This could be your Linux Home folder, desktop, documents folder. This is where the share will be mounted to the Linux OwnCloud server. At the bottom of the file, add an entry that looks like this: ///data cifs uid=www-data,username=ocadmin,password=,iocharset=utf8,file_mode=0770,dir_mode=0770,sec=ntlm 0 0 Tips: This is the IP of the machine running Workstation Now login to the OwnCloud server, edit your /etc/fstab using vi, or gedit, or what have you.This should create a share location similar to \\hostname\data On the host side, create a normal share on the folder you'll be using as the owncloud data folder (right click, properties, Sharing tab, Share.) and give full permissions to the user account you created.This will be used later when we mount it to Linux. On the host side (in my case, Windows 8.1 Windows 10) create a local user account dedicated for owning the share.This may require you to power off the VM and delete the pass through. Remove any VMware Workstation-based pass through you have configured for the NTFS drive.This is not recommended for a multi-user, production configuration. I should preface this section: this setup works for me and my needs, which is a single-user personal setup. I would see an error similar to the one below: Smaller VMs means more internal space on my host machine!Īt first I thought I could simply "pass through" my drive to the VM for hosting my personal cloud, similar to how I configured my Plex Server. Unfortunately the system was having trouble recognizing the pass-through (even though file syncing actually worked when manually copying files to the share. The reason I wanted to go this route with my configuration is because I can have a small (~20GB) Ubuntu Server utilizing a larger external drive that can be easily read by both my Linux Server, as well as my Windows host machine. you will have major performance issues if you use SQLite) ![]() I won't be going over how to setup OwnCloud server in Ubuntu - if you're interested in that, here's a great guide by our friends over at Noobs Lab (I highly recommend using MySQL or any other database solution over the included SQLite. It uses a USB 3.0 2TB drive formatted as NTFS and it works pretty darn well. My setupI'm running OwnCloud 8 server in a Linux Mint VM (VMware Workstation) for personal use. Trying to use NTFS with your OwnCloud server? You may be running into some challenges.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |