MyBB Community Forums

Full Version: Moving forum directory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've installed mybb to a directory called /mybb/ and it was up and running. I want to change it to my /forum/ directory, but after changing the general settings in adminCP (my forum path and cookies path), and then changing the directory name, it simply does not load and says

Warning: require_once(/public/mybb/inc/init.php): failed to open stream: No such file or directory in /public/mybb/global.php on line 19

Fatal error: require_once(): Failed opening required '/public/mybb/inc/init.php' (include_path='.:/usr/share/php5:/usr/share/php') in /public/mybb/global.php on line 19

I double checked the settings.php file and it says /forum/, there is no instance of "mybb" occurring in it. Why does it still try to load /mybb/?

I have looked at other guides and none have helped.


Also, my download did not come with on.gif, off.gif, etc. in the /images folder. Where can I get these?
move all files & folders from ~/mybb to ~/forum
open ~/inc/settings.php file through file manager at web host panel or through editor like notepad++
change board url, cookie settings based on this guidance
log into admin panel and change again board url & cookie settings

From .m. ^
(2015-01-10, 07:18 PM)geazy Wrote: [ -> ]move all files & folders from ~/mybb to ~/forum
open ~/inc/settings.php file through file manager at web host panel or through editor like notepad++
change board url, cookie settings based on this guidance
log into admin panel and change again board url & cookie settings



From .m. ^



Would it work to just change the directory name from /mybb to /forum?  I have done everything above and checked the cookies settings via your link, but it's still the same error.


This is what I've tried (latest), after undoing everything.

1) edit settings.php with new link and cookies path/domain
2) go to ACP, edit settings to update link with new link (/forum) and cookies path/domain again.
3) rename mybb directory to forum
4) error

With the settings.php file and admin cp showing the new forum information, it does not load, but if the directory is under /mybb/ it loads the admincp under /mybb/.  The main page also loads, but it is broken, with only white background and text, no images or style data showing.  

But if it's changed to /forum/ it doesn't load at all because it's still trying to find /mybb/.




I'm curious, why do changes in either of AdminCP or settings.php not effect the data in the other? I thought both of them were just using the settings.php data.
What's the forum url? Make sure you don't have a / in your board url at the end in settings.php
If anyone is willing to help me through skype, please message me with your username. Thanks
make sure you dont use a trailing slash for the board url...

Correct: http://www.domain.com/forum
Wrong: http://www.domain.com/forum/
(2015-01-11, 07:33 AM)mmadhankumar Wrote: [ -> ]make sure you dont use a trailing slash for the board url...

Correct: http://www.domain.com/forum
Wrong: http://www.domain.com/forum/

I have made sure of this. It still gives me the same error though.
^ you may PM me temporary access to forum admin panel & files (ftp). you can give your own credentials & change them later
I ended up just installing the entire thing to the new directory /forum/, thanks for the help though. I may be moving webhosts sometime in the near future, so I will let you know if I need help again .m..