Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2015, 06:05 AM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Restoring or installing vBulletin OSX Yosemite

Anyone here have experience and successfully restored a vB system (that was previously hosted) or installed from fresh onto OSX Yosemite?

I'm having a few issues, php, MySQL and apache seem fine but the installer fails after licence input reporting:-

Due to the following errors, the install/upgrade can not continue:•The database has failed to connect because you do not have permission to connect to the server. Please confirm the values entered in the includes/config.phpfile
•Error description: mysqli_real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known /Users/mark/Sites/test/includes/class_core.php on line 1358
I have checked both mysql via workbench and phpmyadmin and I have a blank DB that allows user root all privileges

I have checked config.php and all the relevant connection credentials are correct,

$config['Database']['dbname'] = ‘test’;

$config['MasterServer']['username'] = ‘root’;
$config['MasterServer']['password'] = ‘password’;

I'm stuck!

Thanks
Reply With Quote
  #2  
Old 01-22-2015, 12:35 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look close to the top and find this:

Code:
$config['Database']['dbtype'] = '';
Make sure you have the correct database type there. If its currently 'mysql' try 'mysqli', save and upload again. I don't know if this is your problem or not.

Also its never a good idea to have your database as test/root/password and stuff like that even if its a test server. Never use root in your vBulletin config. This may open you to potential problems.
Reply With Quote
  #3  
Old 01-22-2015, 04:02 PM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I then get a parse error. Btw, this is my own home iMac, not a hosted one so security is not an issue.
Reply With Quote
  #4  
Old 01-22-2015, 04:45 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by marcopolo View Post
Thanks, I then get a parse error. Btw, this is my own home iMac, not a hosted one so security is not an issue.
I realize its a home server that still does not matter, you can still get hacked and still have a security problem from using unsafe logins & passwords. Can you post the parse error you get? Cannot help without knowing the error you get.
Reply With Quote
  #5  
Old 01-23-2015, 05:47 AM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I appreciate your comments on security, be assured I know what I'm doing on that front.

I've now scrapped the MAC route and configured my 2008r2 server. tested a vb new install and it's fine but the attempt to get the restore of my original forum is still an issue.

Created a new DB based on config.php DB name, accessed mysqldumper and restored the last DB to it and it went through fine. Attempted to launch the forum directly on the server and get Database error (I used all the original vB files that were created from the hosted cpanel full backup)
Reply With Quote
  #6  
Old 01-23-2015, 09:48 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Need to know what the error was.
Reply With Quote
  #7  
Old 01-23-2015, 02:12 PM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, changed config.php dtype from mysql to mysqli and same in message in browser, which is simply:-

Database error followed by 'The database has encountered a problem'

Nothing reported in mysql logs or server event logs
Reply With Quote
  #8  
Old 01-23-2015, 02:20 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you check $config['MasterServer']['servername'] and $config['MasterServer']['port']? The message in the first post kind of sounds like it's failing looking up the servername.
Reply With Quote
  #9  
Old 01-23-2015, 03:14 PM
marcopolo marcopolo is offline
 
Join Date: Dec 2005
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Did you check $config['MasterServer']['servername'] and $config['MasterServer']['port']? The message in the first post kind of sounds like it's failing looking up the servername.
They are set the same as my test vb forum which is working fine in a sub folder

--------------- Added [DATE]1422033874[/DATE] at [TIME]1422033874[/TIME] ---------------

Ok, this is bizzare, now when I launch http://localhost/vbulletin it's loading my old hosts website holding page

--------------- Added [DATE]1422034745[/DATE] at [TIME]1422034745[/TIME] ---------------

We're sorted, not sure what went on but we're up and URL settings sorted!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04110 seconds
  • Memory Usage 2,244KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete