Not reading config.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wes2000
    New Member
    • Dec 2007
    • 1
    • 3.6.x

    [Forum] Not reading config.php

    Hello,

    I was switching my database to a new one, and I have changed the information out in my config.php file, but it is not reading it. I am getting:

    Error description: Access denied for user 'oldforumuser'@'localhost' to database 'oldforumdb'

    If I remove the user from the db in hosting panel. But when I download the config.php out of my ftp, I see that these values are in fact changed:

    $config['Database']['dbname'] = 'newforumdb';
    $config['MasterServer']['username'] = 'newforumuser';
    $config['MasterServer']['password'] = 'password';

    I do not understand why it is still trying to use the old information when the new information is there. I tried to update the counters and tables, but it still will not budge. I also tried to put the install folder back in and start over, but it still tries to load the old info.

    Any ideas would be appreciated,
    Thanks.
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    Are you sure you are uploading the new edited config.php file to the correct directory? And, did you make sure it is called just config.php instead of the default config.php.new ?

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment

    • IBxAnders
      Senior Member
      • Aug 2001
      • 1172
      • 4.0.x

      #3
      Unless your server has some really wicked content caching (which is possible) vB will always read config.php; so you are most likely not actually writing the changes.

      You can always rename config.php to see if the error message changes - if it doesn't well - you are somewhere east of where you need to be...
      anders | vbulletin team | check out the new vbulletin facebook app
      Proudly vBulletin'ing since 2001
      Please be my friend!
      http://www.twitter.com/inetskunkworks
      vBulletin Performance Articles:
      Click here to read

      Comment

      Related Topics

      Collapse

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎