PDA

View Full Version : Moving VB4 to a different Directory.


zelnik
08-01-2013, 04:10 PM
Hi Guys,

Posting here as I hope someone can point me in the right direction.

I was to move my forum to a different directory on the same server domain.

I understand it is as simple as Options -> Site Name / URL / Contact Details.

I've changed "Forum URL" and "Homepage URL" to the new directory hit save then renamed the directory using FTP program and when I go to the new directory I get a 500 error.

I had VBSEO installed until recently but have no successfully uninstalled that and I have disabled all addons via the config.php.

I have attachments and avatars as files but I can't find an option to change the url to those so I doubt it's that.

Any advice would be really appreciated! :)

Lynne
08-01-2013, 07:20 PM
Did you remove the .htaccess file for vbseo?

zelnik
08-01-2013, 07:56 PM
Yes Lynn I did, well the second time around and still nothing.

Lynne
08-01-2013, 10:13 PM
A 500 error is a server error, so something should be in your error_logs (if you don't know where they are, ask your host). What is in there?

And, what type of Friendly URLs are you using? Can you see any of the pages of your forum? Link please.

zelnik
08-02-2013, 06:05 AM
Lynne the only PHP Fatal error I can see in the error logs is:

Fri Aug 02 07:15:38 2013] [error] [client 86.xx.xx.xx] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/vb.php' (include_path='.:') in /var/www/vhosts/mydomain.com/httpdocs/forum/includes/class_bootstrap_framework.php on line 99

But that is calling on the original directory name of "forum" not the new one?

URLS are the standard one in VB now that vBSEO has been fully uninstalled and no can not see any pages on the forum nor the admincp. It's just lucky I keep an old tab open with the old adminCP in where i add it back to /forum/ and rename the directory back that I can access the forum otherwise I'd be locked out.

mokujin
08-02-2013, 10:10 AM
Maybe chmod is incorrect.

enforcer786
08-03-2013, 12:48 PM
What I did when I needed to move my forum to a different directory was that I went into my VPS panel, in my case parallels and changed it so that my domain wasn't /httpdocs/ it was /httpdocs/folder/

zelnik
08-05-2013, 08:03 AM
Maybe chmod is incorrect.

CHMOD is correct as I just rename the directory and it works if i rename is back.

I've enabled error messages in the config.php and I get this when trying to access (with plugins disabled via config.php)

Warning: require_once(/vb.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/mysite.es/httpdocs/forum/includes/class_bootstrap_framework.php on line 99

Fatal error: require_once() [function.require]: Failed opening required '/vb.php' (include_path='.:') in /var/www/vhosts/mysite.es/httpdocs/forum/includes/class_bootstrap_framework.php on line 99

mokujin
08-05-2013, 10:37 AM
This error means file vb.php was not found in vb folder , you should reupload it.

zelnik
08-05-2013, 10:57 AM
that's because it's still looking for it in the old directory and not the new so obviously something is not updating the new folder name hence the problem.