Installation on Windows

Permalink
I am trying to install C5 on a Windows XP box with Apache, PHP5 (with pdo and mysqli), and MySQL5. I have used this machine for the last year to develop PHP applications, so that part is working, but there seems to be one missing link...

I enter the information on the installation screen and click install. Then it chugs for a bit and dies at an empty white screen.

When I try to go to the home page, I found that it is dying to access the GetRow method. Walking through, I get there through these files:
/config/app.php line 13
/models/config.php line 69
/models/config.php line 37

I removed the '@' from /models/config.php line 47 and recieve the error 'Call to member function GetRow() on a non-object in /models/config.php'

Any suggestions?

Thanks

SkyBlueSofa
 
andrew replied on at Permalink Reply
andrew
Is this with the version 5.0.0 that's on SourceForge or the newer version, the 5.1.0RC1? If it's with 5.0.0 could you try and reinstall with the release candidate?

That's a very cool user avatar, by the way.
SkyBlueSofa replied on at Permalink Reply
SkyBlueSofa
I just got the latest zip. The path in the zip file is concrete5.1.0RC1/concrete/....

I am brand new to C5. I've been using CakePHP, but I'm looking for something a little more lightweight and out of the box.

Is there a way to turn the error messages on and off? Cake does this for development/testing/production servers. If I could see the errors as they happen, I might be able to work my way through it.
andrew replied on at Permalink Reply
andrew
Interesting - unfortunately error messages should be on during the entire installation process - you found one of the few places we're using the @ symbol (although we probably ought to remove it entirely since if it errors you'll want to know it.)

Could you try editing libraries/loader.php. There's line in there that's

$_dba = @NewADOConnection($dsn);

could you try removing the '@' symbol from that?
SkyBlueSofa replied on at Permalink Reply
SkyBlueSofa
It's not even getting to that point. On line 121-133:
if ($dsn) {
   ...
} else {
   return false;
}


It does the 'else' branch of the condition, so $dsn never gets set.

Now, if I manually set the $server, $username, $password, and $database variables, I get to a 'Sign into Concrete' page.

Does all this help?
SkyBlueSofa replied on at Permalink Reply
SkyBlueSofa
Andrew,

With hardcoded db information, the site seems to work perfectly.

Is the db information supposed to go into the site.php file?

What else goes in that file?
andrew replied on at Permalink Reply
andrew
If you open up the config/ directory in your web root, do you have a file named "site.php" ? Does it have anything in it? (It should - this file should be written during installation.)
wizardontherun replied on at Permalink Reply
wizardontherun
i using win2003 iis and php

<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'user');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'database');
define('BASE_URL', 'http://www.mysite.com');
define('DIR_REL', '');
define('PASSWORD_SALT', 'some salt stuff');
?>
wizardontherun replied on at Permalink Reply
wizardontherun
everthing installed fine, only thing is the file upload, single or flash seems to work but no uploaded file or db entry. still looking for a way to fix/find the problem for it. but everything else works great.
SkyBlueSofa replied on at Permalink Reply
SkyBlueSofa
I added the code you provided to the site.php file, updated it to match my environment.

Now it works just fine.

Any idea why the php code was not written to the site.php file? The site.php file existed, but was empty.
andrew replied on at Permalink Reply
andrew
Unfortunately I think the system needs to write this file because it generates a password salt when it does so. If it doesn't you'll never be able to login.
wizardontherun replied on at Permalink Reply
wizardontherun
i just posted the structure of my working site.php without the real info.

Frank
MichaelBruno replied on at Permalink Reply
MichaelBruno
please help. im having a problem on a client's site. its a windows hosting atmosphere. is it possible to install like this? i cant seem to get it to want to install. what is the url i would view to install it??