The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Access denied for user 'apache' after moving to new host
Hello,
I am having a weird problem that just started after moving web hosts. I am getting "Access denied for user 'apache'@'xx.xx.xx.xx' (using password: NO)" error displayed at the very top of ONLY the index.php page. No other page displays this error message. it is important to note that my DB is not hosted on the local host, and the forums work fine other then that one message that is displayed. There are no htaccess files, nor php.ini system settings that have a default DB Host stated. I also have two other VB Sites on this same server and none of them are having this issue, All using the same remote database server (with different Databases). Here is the top few lines of the header - the error message is displayed before even the html tag is rendered. PHP Code:
My previous web host was a windows 2003 server, using php5 and mysql 4.1 - and this problem did not occur. My new host is a Centos5 x86_64 host using php5 and mysqli library with mysql 5.0 - and now this problem occurs. PHP Safe mode is not enabled. I have tried setting error reporting to none, and have also tried disabling all installed products and both do not help. Any assistance would be appreciated. |
#2
|
|||
|
|||
If you only get it on a single page, then it is probably not because of the vBulletin configuration. My guess is that there is a modification installed that has the MySQL user/pass hardcoded.
|
#3
|
|||
|
|||
It was plugin "Haggis Top Poster" that was causing the message to display. Once I disabled that Plugin the error message went away.
This is the plugin code that caused my error message problem. PHP Code:
|
#4
|
||||
|
||||
Use this code instead:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|