G2 Installer hangs on step 6

dubmaniac

Joined: 2005-04-08
Posts: 1
Posted: Fri, 2005-04-08 16:41

After struggeling with the mysql support in php the installer stops at step 6.
The installer does not give a error and the progress bar freezes at 55%
Already used the search but no results...

Please help!
----

Gallery URL (optional):
Gallery version:2 beta
Webserver (with version):IIS6
Datatabase (with version):MYSQL 4.1.11 (win32)
PHP version (eg 4.2.1):PHP 5.0.4.4
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:XP Professional
Web browser/version:IE^6
G1 version (for migration bugs):

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-04-12 18:57

Hrm. What version of G2 are you using? If you're using 2.0 beta 1, you should try a latest nightly snapshot, since we've added a great deal if improvements since beta 1.

 
hauxon
hauxon's picture

Joined: 2005-04-16
Posts: 1
Posted: Sat, 2005-04-16 15:59

Im also stuck at Step 6. I'm trying to install beta 2 on IIS. It does see if there is a file there named config.php but nothing happens when I push the "create config file" link.

I'm suspecting it has something to do with permission to write to the config.php file. Does anyone have a clue here?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2005-04-21 01:26

Can you elaborate on "nothing happens" ? Is it that the page reloads but you don't get any errors?

 
neilk

Joined: 2005-04-20
Posts: 1
Posted: Fri, 2005-04-22 08:33

I was having the same problem -- in my case it was permissions. I have apache running under the SYSTEM user, but, my user account created the file. I changed the permission so it was readable by that account and it worked. (I'm running Windows XP - I had to enable the file security properties by going to Tools (in Explorer)->Folder Options->View and uncheck "Use simple file sharing (Recommended)". Then right click on the file and pick properties and you should have a tab to set permissions).

The way the code is written is it squishes the real error. If you have trouble, edit gallery2\install\steps\CreateConfigFileStep.class Look for
if (!$out = @fopen($configFilePath, 'w')) {

And remove the @ before the call to fopen. The next time you execute step 6, it should spit out an error.

This step relies on the PHP call to is_writable, which appears to return the incorrect information. (Its possible its a php bug- see http://us3.php.net/is_writable

-neil

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2005-04-24 23:41

Hrm. Ok, so PHP is lying to us. Damn you, PHP!

I added a better error message in this case to give people a clue where to start looking to resolve this.