xoops forums

Opterongeek

Just popping in
Posted on: 2005/11/30 23:52
Opterongeek
Opterongeek (Show more)
Just popping in
Posts: 61
Since: 2004/11/22
#1

Install Failed

I did a search on my issues before posting this, and either I didn't search correctly, or there's no information directly associated with this.

I am running PHP 5, MySQL 5 and Apache 2.x on Windows XP. (Intranet purpose).

I can't get the XOOPS installation to complete. I'm using phpmyadmin and it looks like the database was created, but if I leave it blank to create its own, it doesn't work and it prompts me to enter a database name. Here's the results if I use the database name that I entered using phpmyadmin:

File ../mainfile.php overwritten by ../mainfile.dist.php.
Failed writing constant C:/Program Files/Apache Group/Apache2/htdocs.
Failed writing constant http://localhost.
Failed writing constant mysql.
Failed writing constant xoops.
Failed writing constant localhost.
Failed writing constant root.
Failed writing constant *xpasswordhiddenx.
Failed writing constant xoops.
Failed writing constant 0.
Failed writing constant 1.
Failed writing constant 2.
Failed writing constant 3.
Failed writing constant 1.


* - edited to remove my password, since I do like to keep those things private. ;)

Things look alright to me, but this is having issues for some reason... anyone care to take a stab at it? I'm local to the system, so I can edit anything and everything.

jdseymour

Friend of XOOPS
Posted on: 2005/11/30 23:56
jdseymour
jdseymour (Show more)
Friend of XOOPS
Posts: 3782
Since: 2004/11/11
#2

Re: Install Failed

I am trying to get more information in This Thread. I do not believe that XOOPS currently works with the newly released MySQL 5 version.

I would suggest trying MySQL 4.1 and see if the install completes.

skalpa

Quite a regular
Posted on: 2005/12/1 1:07
skalpa
skalpa (Show more)
Quite a regular
Posts: 300
Since: 2003/4/16
#3

Re: Install Failed

This is due to PHP5. The problem will be corrected in the next release.
In the meantime, you can edit /install/class/mainfilemanager.php
and change:
Quote:
$content = fread($file, filesize($this->path) );
fclose($file);

to
Quote:
clearstatcache();
$content = fread($file, filesize($this->path) );
fclose($file);


Also, jd's right about MySQL5. I'd suggest you use MySQL4.0.x . Full 4.1 / 5.0 compat is planned but it's not finished yet.

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)

nshlan

Just popping in
Posted on: 2005/12/20 8:36
nshlan
nshlan (Show more)
Just popping in
Posts: 13
Since: 2005/12/17
#4

Re: Install Failed

I received the exact same error message that started this thread when running Windows Server 2003/IIS6/PHP v5.1.1/Xoops 2.0.13.2/ I tried using MySQL v5.0.17 and v4.1.16...the error occured each time. The only way I got it to install was by downgrading to PHP 4.4.1 and MySQL 4.0.26. Aftr the site was setup I successfully upgraded mySQL back to 4.1.16....I haven't tried MySQL 5 yet.

rowdie

Just can't stay away
Posted on: 2005/12/20 20:23
rowdie
rowdie (Show more)
Just can't stay away
Posts: 846
Since: 2004/7/21
#5

Re: Install Failed

Did you try editing the file /install/class/mainfilemanager.php as Skalpa suggested?

(I'm just curious to know whether it worked for you)

ITProfessor

Just popping in
Posted on: 2006/1/24 5:59
ITProfessor
ITProfessor (Show more)
Just popping in
Posts: 1
Since: 2006/1/24
#6

Re: Install Failed

Skalpa's suggested change allowed me to bypass the same hurdle, and installation completed successfully.

vinceo11

Just popping in
Posted on: 2006/1/26 20:35
vinceo11
vinceo11 (Show more)
Just popping in
Posts: 2
Since: 2006/1/26
#7

Re: Install Failed

holy cow thats the same problem im having...im going to try this when I get home...

tazeo

Just popping in
Posted on: 2006/2/17 1:37
tazeo
tazeo (Show more)
Just popping in
Posts: 5
Since: 2006/2/16
#8

Re: Install Failed

Thank you a thousand times. I was starting to think evil thoughts about XOOPS, and really getting dissapointed at the whole thing last night.

Maybe the fix should be part of the Help file - Just a suggestion.

But I am on my way now, and Hap-Hap-Happy

harrygg

Just popping in
Posted on: 2006/8/10 10:03
harrygg
harrygg (Show more)
Just popping in
Posts: 4
Since: 2005/12/30
#9

skalpa 10x

10x to stalpa your solution made a revolution