vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Restoring or installing vBulletin OSX Yosemite (https://vborg.vbsupport.ru/showthread.php?t=316837)

marcopolo 01-22-2015 06:05 AM

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

HM666 01-22-2015 12:35 PM

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.

marcopolo 01-22-2015 04:02 PM

Thanks, I then get a parse error. Btw, this is my own home iMac, not a hosted one so security is not an issue.

HM666 01-22-2015 04:45 PM

Quote:

Originally Posted by marcopolo (Post 2533958)
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.

marcopolo 01-23-2015 05:47 AM

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)

ozzy47 01-23-2015 09:48 AM

Need to know what the error was.

marcopolo 01-23-2015 02:12 PM

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

kh99 01-23-2015 02:20 PM

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.

marcopolo 01-23-2015 03:14 PM

Quote:

Originally Posted by kh99 (Post 2534120)
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!


All times are GMT. The time now is 11:44 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.01057 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete