Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > General Hosting/Server Discussions

Reply
 
Thread Tools
Just moved hosts.. worked fine for a bit... Details »»
Just moved hosts.. worked fine for a bit...
Version: , by majoreyeswater majoreyeswater is offline
Developer Last Online: Mar 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-17-2006 Last Update: Never Installs: 0
 
No support by the author.

then....


There seems to have been a problem with the database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.

We apologise for any inconvenience.


This is the error that I find in viewing the page source:


Database error in vBulletin :

mysql_connect(): Can't connect to MySQL server on 'localhost' (10061)
D:\domains\weareleeds.com\wwwroot\includes\class_c ore.php on line 279

MySQL Error :
Error Number :
Date : Thursday, August 17th 2006 @ 05:10:52 PM
Script : http://www.weareleeds.com/index.php
Referrer :
IP Address : 80.3.160.9
Username :
Classname : vb_database
-->




This is what I have within my \includes\config.php


// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
$config['Database']['dbtype'] = 'mysql';

// ****** DATABASE NAME ******
// This is the name of the database where your vBulletin will be located.
// This must be created by your webhost.
$config['Database']['dbname'] = 'forum';

// ****** TABLE PREFIX ******
// Prefix that your vBulletin tables have in the database.
$config['Database']['tableprefix'] = '';

// ****** TECHNICAL EMAIL ADDRESS ******
// If any database errors occur, they will be emailed to the address specified here.
// Leave this blank to not send any emails when there is a database error.
$config['Database']['technicalemail'] = 'admin@weareleeds.com';

// ****** FORCE EMPTY SQL MODE ******
// New versions of MySQL (4.1+) have introduced some behaviors that are
// incompatible with vBulletin. Setting this value to "true" disables those
// behaviors. You only need to modify this value if vBulletin recommends it.
$config['Database']['force_sql_mode'] = true;



// ****** MASTER DATABASE SERVER NAME AND PORT ******
// This is the hostname or IP address and port of the database server.
// If you are unsure of what to put here, leave the default values.
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 5533;
// $config['MasterServer']['port'] = 3306;

// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = '*****';
$config['MasterServer']['password'] = '*****';

// ****** MASTER DATABASE PERSISTENT CONNECTIONS ******
// This option allows you to turn persistent connections to MySQL on or off.
// The difference in performance is negligible for all but the largest boards.
// If you are unsure what this should be, leave it off. (0 = off; 1 = on)
$config['MasterServer']['usepconnect'] = 0;


I changed the port from the default of 3306 as my host advised that is what their settings are, and obviously I have edited out the username and password. Like I said, worked for a bit, then the above happened. All help appreciated.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-22-2006, 04:27 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its possible since they made the change they haven't reloaded IIS or restarted the server.
Reply With Quote
  #13  
Old 08-23-2006, 12:04 PM
majoreyeswater majoreyeswater is offline
 
Join Date: Jan 2006
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
Its possible since they made the change they haven't reloaded IIS or restarted the server.
Unfortunately, they've restarted twice. Sooo annoying when you don't have access to the server, so much for saving me money, it's costing me a fortune in time.

Their last response was:
"Just changed the extensions location in php.ini from .\ to c:\php4\extensions and phpinfo() doesn't seem to display anything about GD despite a reboot"

I've looked through the phpinfo() output and indeed, GD is not refernced anywhere... you can see this here: PHP info output and I can't pickup GD in admincp at all, so don't know what this might be...
Reply With Quote
  #14  
Old 08-25-2006, 09:05 AM
I-Web's Avatar
I-Web I-Web is offline
 
Join Date: Mar 2004
Location: localhost
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just looking thru phpinfo and noticed a few anomolies......

Quote:
Configuration File (php.ini) Path C:\WINDOWS
is part of yours when it should read......
Quote:
Configuration File (php.ini) Path C:\WINDOWS\php.ini
also noticed he has 2 installations of php as seen in ENV[Path]

Quote:
C:\\PHP4;C:\\PHP5;
also looking at info the php.ini is situated in C:\\PHP5\\php.ini
Reply With Quote
  #15  
Old 08-25-2006, 09:46 AM
majoreyeswater majoreyeswater is offline
 
Join Date: Jan 2006
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for that, I am taking it up with my hosts as I type. Should the php.ini file be situated in the Windows directory at all, especially is later on it is suggesting it is on \PHP5\ - am a little confused by that.

UPDATE:

I have just had a response from the hosting service, although I am getting more than slightly concerned that they don't really know what they are doing:

We have PHP4 and PHP5, some customers prefer one or the other and our control panel allows them to choose which.

PHP4 is in C:\PHP4
PHP5 is in C:\PHP5

Neither should be using a php.ini in C:\Windows. In fact there isn't such a file in that location. They should use their own .ini in their respective directories.

I don't know how (or why) PHP4 could be picking up the .ini for PHP5. I also don't know if there is any way of forcing it to use the correct one. Any ideas?


My set up is pointing to the PHP4 option and rather than change my own board settings, I rather keep the config as it is and get them to correct the PHP config so as simple things like GD lib will actually work.

I'm out of my depth at the moment and short of taking this all back in house, or moving it elsewhere and inconveniencing my users yet again, I could do with some other pointers.

All your inputs and efforts are appreciated.
Reply With Quote
  #16  
Old 08-25-2006, 03:22 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why is because they failed to set the ini dir via the registry. which needs to be set.
Reply With Quote
Reply

Thread Tools

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 11:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04233 seconds
  • Memory Usage 2,251KB
  • Queries Executed 22 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete