We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to move your website to another domain? | Forum

provalenki
provalenki Feb 9 '16
Colleagues, prompt please.

I cannot transfer the website to another domain within the same hosting.

All the files physically moved to a new directory.
Changed
define('OW_URL_HOME', 'http://mysite.com/');
in config.php

The AutoCorrect in the database dump has replaced all references to the old domain to the new one.

However, when you try to log on to the domain fails with the following:
Warning: require_once(/var/www/mysite.com/ow_includes/init.php) [function.require-once]: failed to open stream: No such file or directory in/var/www/mysite.com/index.php on line 30

Fatal error: require_once() [function.require]: Failed opening required '/var/www/mysite.com/ow_includes/init.php' (include_path='.:/usr/share/pear:/usr/share/php') in/var/www/mysite.com/index.php on line 30

What is it? What could be wrong?
ross Team
ross Feb 9 '16
If the server is the same no need to move files to new directory, all you need to do is to change your domain name in config.php file for HOME URI

If you move to another server then follow these instructions: https://docs.oxwall.org/...e-to-another-hosting

provalenki
provalenki Feb 9 '16

Quote from ross If the server is the same no need to move files to new directory, all you need to do is to change your domain name in config.php file for HOME URI

If you move to another server then follow these instructions: https://docs.oxwall.org/...e-to-another-hosting

Yes, the server is the same. Simply rename the domain directory and changed config.php But what does it mean this error? Fatal error: require_once() [function.require]: Failed opening required '/var/www/mysite.com/ow_includes/init.php' (include_path='.:/usr/share/pear:/usr/share/php') in/var/www/mysite.com/index.php on line 30
The Forum post is edited by provalenki Feb 9 '16
ross Team
ross Feb 9 '16
why did you rename directory? you should just point your new domain to the current directory where software is installed and change your HOME URI in config.php
The Forum post is edited by ross Feb 9 '16
provalenki
provalenki Feb 9 '16

Quote from ross why did you rename directory?
I had the domain my-site.com Now I registered a new mysite.com and posted it on the same hosting. Not to copy all directories, I just changed the name of the root directory of the site my-site.com on mysite.com.
The Forum post is edited by provalenki Feb 9 '16
ross Team
ross Feb 9 '16
If the software is in the same directory, no need to rename it, just point your domain to that directory and change your home uri
provalenki
provalenki Feb 9 '16

Quote from ross If the software is in the same directory, no need to rename it, just point your domain to that directory and change your home uri
Yes, I did. And the error that occurs when loading the website on a new domain mysite.com for some reason the name of the old domain my-site.com. Fatal error: require_once() [function.require]: Failed opening required '/var/www/my-site.com/ow_includes/init.php' (include_path='.:/usr/share/pear:/usr/share/php') in/var/www/my-site.com/index.php on line 30 my-site.com - is my old domain
The Forum post is edited by provalenki Feb 9 '16
ross Team
ross Feb 9 '16
Please provide me the exact steps of what you did one by one. 
provalenki
provalenki Feb 9 '16

Quote from ross Please provide me the exact steps of what you did one by one. 
1. I have in the ftp-manager two directories:my-site.com (contains the files of the website) and mysite.com (empty, new domain)
2. Moved the files from my-site.com in mysite.com (cut and paste)
3. Changed the first line in config.php, instead of putting in my-site.com new website mysite.com
4. The database remains the same.

Received an error, clicking on the new address mysite.com:

Fatal error: require_once() [function.require]: Failed opening required '/var/www/my-site.com/ow_includes/init.php' (include_path='.:/usr/share/pear:/usr/share/php') in/var/www/my-site.com/index.php on line 30

In the error text the address of the old site.

The Forum post is edited by provalenki Feb 9 '16
ross Team
ross Feb 9 '16
I'm sorry but I will need access to your FTP to take a look at the issue, please pm 
ross Team
ross Feb 9 '16
Topic was moved from General Questions.
provalenki
provalenki Feb 10 '16

Quote from ross I'm sorry but I will need access to your FTP to take a look at the issue, please pm 
Thank youfor your help.
Ihave done allthese operationsover andin the end Iit was possible to move websiteto a new domain.