New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to move the data/-directory #137
Comments
The data directory and the installation directory are two different things, I think there is some confusion here. What (can) show up in the URL is the installation directory, and short of making an alias I don't see how a running process can rename its own parent folder. Users on a shared host can rename their folder via FTP if they need to. |
If it is the data directory you want to rename/move it's location path is stored in the config/config.php file. All you would need to do is rename the directory and update the part parameter. |
True. But I wouldn't install by preference nextcloud to |
@tflidd I don't understand what you are trying to achieve here. This may help: |
I want to be able to move the data-directory. There a several reasons (I
I don't think it's a proper solution that everyone starts to fiddle On 2016-06-17 9:22, William Bargent wrote:
|
I have just tested moving my data directory from /var/www/nextcould to /var/www/data/smb-nextcloud and had no problems. 'smb-nextcloud' is a Samba share on my Windows Server 2012 R2. |
Just one thing to add: If the data-directory is directly accessible, you get a warning that you should review your webserver settings or move the data/-directory out of the DocumentRoot (https://help.nextcloud.com/t/remove-index-php-from-the-url/2611/15?u=tflidd). But since moving is not supported there is a problem. Also posted upstream: |
upstream owncloud/core#25970 |
i did move data directory from /var/www/nextcloud/data to /var/local/nextcloud/data and give ownership to user www-data:www-data .. everything running like a charm. It have been running for three days and nothing problem so far, hosted on ubuntu 14.04.5 |
Moving the data directory should work on every new Nextcloud instance or any instance upgraded from ownCloud 5.0.12 or later. If someone runs into issues while moving the data directory in one such instance feel free to open a new issues for it |
Owncloud added an article on this issue into their documentation: https://github.com/owncloud/documentation/pull/2781/files In NC11 the logrotate-job still puts the full path of the logfile in oc_jobs. |
In the last owncloud-versions, moving the data/-directory was not supported: owncloud-archive/documentation#2303
Currently /var/www/owncloud/ is the default installation path for your personal cloud and users might want to change this to /var/www/nextcloud/. It's more a cosmetic change as you could add another alias to the apache-configuration:
Alias /nextcloud /var/www/owncloud
Users on shared hosting don't have this option.
The text was updated successfully, but these errors were encountered: