I have moved my Owncloud install from Ubuntu to CentOS 7.
moved the install directory from: /var/www/owncloud to /var/www/html/
I copied all the files including Config directory & /data directory. The IP of the server also changed from
our internal server http://192.168.10.153 to http://192.168.7.192
When I go to the web interface and try loading the login page, I get the following error. I am sure its probably an easy fix. I have made the changes already in the config.php with the new directory paths and new ip addresses.
Not Found
The requested URL /192.168.10.153/owncloud was not found on this server.
Have a look at your system log files, especially the apache error log should be helpful. You should be able to find this somewhere in /var/log.
Make sure to also check your SELinux settings in CentOS and the labels on the files with ls - alZ /var/www/html
Hi Yogesh,
Something is rewriting your URL incorrectly.
So you need to double check your Apache configuration, the .htaccess file in the owncloud path, and double check that your ownCloud isn’t set up to rewrite the URL in your config.php.
There are a bunch of settings like overwrite.cli.url, you can read about them in the config.sample.php
Cheers,
Erik
Thinking about this a little more I think the problem is that apache is not allowed via SELinux to write to the .htaccess file, therefore you will have to change the label on it.
You can quickly confirm this by setting your SELinux to permissive, restarting the server and double check if the problem persists.
i think this is strongly related to the following post as you need to do manual modifications within the ownCloud database when moving the data directory to a new location:
I walked through the database changes in that document, only had to make one edit however the server is still showing a blank page when trying to go to the address.