Fresh Install of 5.2.3 problems

Posted by Jael 
Fresh Install of 5.2.3 problems
December 08, 2007 03:59PM
Hello,

I am a newbie, and I am attempting to install Phorum 5.2.3. I am receiving the following error when attempting to begin the admin.php installer:

Quote

"The database connection failed. Please check your database configuration in include/db/config.php. If the configuration is okay, check if the database server is running."

I have double checked the config.php and checked that the db is set up properly (though I have to go through someone for that step - I am new to this type of thing). However, I am still getting the above error. If I change the page that displays if there is a problem, I get the correct down page. So... something isn't right, but it's not that the config.php isn't being seen. As far as my friend and I can tell, the database and config are set up properly.

I also checked to be sure the file names were maintained (ie: PhorumInputForum.php). Is there something else to check, or do I delete everything (again - see the history below) and start over?

The history: I had decided to install Phorum 5.1.25 and had just begun the template edits when I realised I should check in with the Phorum community regarding which version I should really use. CBill suggested that I install 5.2.2, and ts77 mentioned that the rc1 was scheduled. I decided to install 5.2.2 at that point. However, since 5.2.3rc1 was released, I actually attempted to install this version. Since I had nothing other than some formatting done, I did not back up anything. I copied everything up to the server, but the admin.php wouldn't start up. My friend suggested that we clear everything and do a brand new install, which is what we did this afternoon. So in theory, no artifacts should remain from the initial install of 5.1.25 or of the first attempt at 5.2.3, and the database should be clear.

We do have another site running on the same server, and that one is not experiencing issues so I don't think the problem is on the server side.

I would appreciate any suggestions. I don't mind doing a clean sweep again, but before I do that, I want to make sure that is the best choice at this point.

Thank in advance,
Jael

- another member of the 'enough information to be dangerous' group
Re: Fresh Install of 5.2.3 problems
December 08, 2007 07:27PM
Normally this error message tells you that the database connection settings are wrong. So my first advice would be to triple check. If you have shell access on the machine that is running the webserver, then you can also verify the connection parameters by using the mysql command line interface:
mysql -u theuser -h thehost -p thedatabase
This command will ask for the password. Enter it and see if you can connect to the database.

One thing that was added to the db config for this new release, is the "charset" configuration parameter in config.php. Maybe you could try if you can connect if you comment out this parameter:
// 'charset' => 'utf8',


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Fresh Install of 5.2.3 problems
December 08, 2007 10:54PM
Thank you for your note Maurice.

I deleted everything again (just to be sure) and uploaded the files for Phorum. I did copy the edited config.php up with everything else, as well as my edited template. Other than that file and folder, all files are exactly like the zipped download.

We checked (repeatedly and from different IPs) the existence of the db; it is patiently waiting to be used. Three people looked at the config.php and made sure there weren't typos. I am still getting the same error.

I am using cyberwebhosting.net as my server. They are running MySQL 5.0.41-community-log and PHP 5.2.3. The other site we host with them uses php. The charset parameter being used is utf8.

I am wondering (okay, hoping because I _really_ want to use the 5.2 version of Phorum) if there is a bug of some sort that I have found. The features I want are in 5.2, though I was able to successfully install 5.1.25. I was playing with the template at the time I decided to switch, so it was indeed successfully installed.

I am happy to ask questions of the folks at cyberweb; they've been helpful in the past. Is there anything to ask about, other than any errors in the logs?

Thanks again for the help,
Jael



Edited 1 time(s). Last edit at 12/08/2007 10:58PM by Jael.
Re: Fresh Install of 5.2.3 problems
December 09, 2007 05:18AM
Did you try commenting out the charset line in the config? Since that is about the only thing that I can think of that is changed in regards to the database code.

I can't think of anything special to ask the support people. MySQL connections from PHP code are they daily business, so they should be able to help you.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Fresh Install of 5.2.3 problems
December 09, 2007 09:04AM
Thanks again for your quick comments.

I did try commenting out the charset line but I still had the same problem. I will send them an email and hopefully they will find something in the logs. I'll let you know what I find out.

Jael

- another member of the 'enough information to be dangerous' group
Re: Fresh Install of 5.2.3 problems (and 5.2.6)
January 12, 2008 09:55PM
Hello again,

We have not yet heard back from our contact at CWH. He poked around some, didn't see anything and thought it was odd. He said he'd take another look later and we've not heard from him (much to our dismay and in-spite of follow up emails).

I uploaded 5.2.6 and hoped that the database would be recognised with this version. It was not, so I uploaded 5.1.25 again in a different folder. Nothing was changed other than a new folder created for the 5.1.25. All names, passwords, etc, are the same in the config.php (using the config.php for the appropriate version). The database is recognised with 5.1.25 but not with any of the 5.2.x versions.

I am rather confused on this. Does anyone have a direction for me to look for a fix? I'm rather sad about the whole thing. This version obviously works for other folks.

Thanks in advance,
Jael

- another member of the 'enough information to be dangerous' group
Re: Fresh Install of 5.2.3 problems (and 5.2.6)
January 12, 2008 09:58PM
The one thing I can think of is that we auto detect mysqli in 5.2. If there is something wrong with the server's PHP install and mysqli is not working, but is there, that would explain why 5.2 will not work while 5.1 does work. You can set 'mysql_php_extension' => 'mysql' in the config.php and see if that fixes it. If it does, tell your host to fix mysqli on your server.

Brian - Personal Blog
Re: Fresh Install of 5.2.3 problems (and 5.2.6)
January 12, 2008 10:51PM
Thanks for such a quick response. Here is what I tried (the appropriate text is changed in the 'real' config file). Perhaps I misunderstood you though? It is still giving me an error and since I am new, I'm not sure that I'm following you correctly.

Quote

'type' => 'mysql',
'name' => 'phorum5--',
'server' => 'localhost--',
'user' => 'phorum5--',
'password' => 'phorum5--',
'table_prefix' => 'phorum',
'mysql_php_extension' => 'mysql',

I appreciate any additional help.

Jael

- another member of the 'enough information to be dangerous' group
Re: Fresh Install of 5.2.3 problems (and 5.2.6)
January 13, 2008 02:38AM
could you send me an ftp-login to the 5.2 phorum by PM maybe? I'd like to take a look.


Thomas Seifert
Re: Fresh Install of 5.2.3 problems (and 5.2.6)
January 13, 2008 03:45AM
server "localhost--"? Is that what you actually have in your config.php file or is that something you mocked up for posting on this forum? If you have exactly that in your config, then I can see why things go wrong. It should probably be "localhost" instead.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Fresh Install of 5.2.3 problems (and 5.2.6)
January 13, 2008 09:08AM
That's just there for the purposes of privacy. The ones with dashes were the ones I edited; sorry for the confusion.

I should have said:
Quote

'type' => 'mysql',
'name' => 'myname',
'server' => 'IP address',
'user' => 'myname',
'password' => 'mypassword',
'table_prefix' => 'phorum',
'mysql_php_extension' => 'mysql',

And the 5.1.25 version was the following but editing the 5.1.25 config sample file (this is the one that worked):
Quote

'type' => 'mysql',
'name' => 'myname',
'server' => 'IP address',
'user' => 'myname',
'password' => 'mypassword',
'table_prefix' => 'phorum',

Thanks though! Sometimes it's the simple things that get missed. I appreciate the help.

Jael

- another member of the 'enough information to be dangerous' group
Re: Fresh Install of 5.2.3 problems
February 01, 2008 07:13PM
So... Did you fix the problem... Im having the same exacto problem. Im also new so if you could explain I would greatly appreceate it.
Re: Fresh Install of 5.2.3 problems
February 02, 2008 05:19AM
In general, this message means that the wrong connection parameters were entered in config.php, so double check and triple check the values you have in there. If you cannot get this to work, then contact your hosting provider and find out with them what you have to fill in for server, name, user and password.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Fresh Install of 5.2.3 problems
February 02, 2008 07:40AM
Thnks!
Re: Fresh Install of 5.2.3 problems
February 02, 2008 09:05PM
I did just get this problem fixed tonight while in the chat. Thanks again, TallyHo, for your suggestion regarding the server info.

It was indeed an error in the config.php file. However, the problem was that I believed my host and entered the server info they provided. After moving the server info back to the default 'localhost', it worked just fine. I am now finishing the setup.

I greatly appreciate all the help that Phorum people gave me. The chat room was very helpful, and folks were extremely patient.

Good luck with your site.

Thanks again,
Jael

- another member of the 'enough information to be dangerous' group
Your IP address, domain or ISP has been blocked. Please contact the forum administrators.
Sorry, only registered users may post in this forum.

Click here to login