on installing (or trying to) Habari 0.2Dev
Yesterday the Habari folks released the second developer release. So I downloaded it and set it up on my localhost.
Things were pretty buggy (thus, the developer release). It would double post when you edited it, and it wouldn't work at all in Safari (my localhost give it the url http://localhost:8888/habari and Safari reads it as http://localhost:8888:8888/habari which, you know, doesn't work.
So I decided today to upload the script to my web host to see if the problems were because of my localhost setup.
At least I can say I tried.
I can't install 0.2. I had 0.1 working, but I deleted that one. But 0.2... hmmmm.
After I fill in the details on the install page, I have to panic. Seriously. It tells me to.
Panic! No database connection class appears to be found for the connection string specified. Please check config.php
Config.php is fine. All the details are there. But no database is installed. (Even if I give it a non-existing database, I get the same error.)
So I looked up my phpinfo(). Ah, there may be a problem....
Details:
System - apache - mysql - php
MAMP - 2.0 - 5.0.19 - 5.1.6
Site5 - 1.3.37 - 4.1.21 - 5.2
The Habari wiki says it may require Apache2 or lighttpd. But 0.1dev seemed to work on apache 1.3. So I'm a bit confused.
It doesn't appear to be a corrupt or missing script; wrong type of error. I don't think it's a permissions problem. So I'm thinking it's the apache version.
Which I don't think I can change at site5. And they don't support lighttpd. I wonder if any other Habari users/testers are on site5 and have this problem.
And this leaves me with a couple of choices if I can't get this to work on site5. I can forget Habari or I can change hosts. (Dawn's cringing right now.)
I think I'll coin the term "Habari Hero" or "Habari Helper" and see what they say about this. 

Comments
david
10 August 2007 - 4:25am
Permalink
I replied on the habari_user
I replied on the habari_user list (where this conversation should probably continue).
But PHP5 is set in my public folder so even this website is using PHP5.
Owen (not verified)
10 August 2007 - 2:20am
Permalink
Did you ever get this sorted
Did you ever get this sorted out?
Looking at your settings, your Site5 version numbers are also showing that you're running PHP 4.1.12, which is definitely a problem. In order to make PHP5 run on Site5, you need to add a configuration string to your .htaccess. Perhaps you deleted this or overwrote it on the new install?
The information for setting up PHP5 on Site5 is on the Habari wiki.
david
5 August 2007 - 6:23pm
Permalink
this is a weird one. The
this is a weird one. The path is correct. (Well, I'm 99% sure it is.)
$db_connection= array(
'connection_string'=>'mysql:host=localhost;dbname=xxx_habari',
'username'=>'xxx_habari',
'password'=>'xxx',
'prefix'=>'habari_'
);
// $locale = '{$locale}';
Odd indeed.
And thanks for the invite! I finally figured out how to add you as a contact!
And, incidently, MT is my backup choice for hosts if site5 stops meeting my needs. Are you on the grid or the DV plan? Like it?
miklb (not verified)
5 August 2007 - 5:27pm
Permalink
Take a look at your config
Take a look at your config file. Make sure it didn't write twice to the string. I know when I was installing the DR1 release to test things for the upgrade, I accidentally put the wrong path to the db, (left localhost, media temple has a different path), it wrote both paths. Deleting the config and running again fixed the problem. Also, Owen has posted in your thread that he got a DR2 install working on his Site5 server, so I'm sure there's a fix.
p.s., invite sent!
Add new comment