xoops forums

Dante7237

Friend of XOOPS
Posted on: 10/11 16:59
Dante7237
Dante7237 (Show more)
Friend of XOOPS
Posts: 287
Since: 2008/5/28
#1

New 2.5.9 install path problem

It's been a while but not that long.
Like the subject says fresh 2.5.9 install, updated mainfile to reflect the lib and data paths, but installer looks in wrong folder and declares them missing.

What did I forget? hehehe

Bleekk

Theme Designer
Posted on: 10/12 10:38
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 922
Since: 2002/12/14
#2

Re: New 2.5.9 install path problem

Are you sure you have overwritten the old mainfile with the new one? Look if the mainfile is writable

Dante7237

Friend of XOOPS
Posted on: 10/12 11:14
Dante7237
Dante7237 (Show more)
Friend of XOOPS
Posts: 287
Since: 2008/5/28
#3

Re: New 2.5.9 install path problem

Yeah, I have.
The installer keeps looking in cms root instead of what I declared in mainfile.

Dante7237

Friend of XOOPS
Posted on: 10/12 11:46
Dante7237
Dante7237 (Show more)
Friend of XOOPS
Posts: 287
Since: 2008/5/28
#4

Re: New 2.5.9 install path problem

So I looked at my last cms install and noticed a difference in mainfile names.
The previous installed cms had the file named "mainfile.php".

The 2.5.9 install has the file named as "mainfile.dist.php".
Renaming the file to "mainfile.php" throws a server error on access....

I recall some subtle thing about this, just not exactly what.

(I will mention here that the installer guide has 0 info about editing this file before install. Which makes those instructions useless to newcomers.)

Mamba

Moderator
Posted on: 10/13 9:06
Mamba
Mamba (Show more)
Moderator
Posts: 10465
Since: 2004/4/23
#5

Re: New 2.5.9 install path problem

1) the install process creates the "mainfile.php" for you. If you don't have it, i.e. that the installation was NOT successful. You do NOT use/modify the "mainfile.dist.php" - that's only for XOOPS.

2) During installation, you specify where the lib and data paths are, so the system can check if they exist. If they are not, the process will not continue. So making changes after the installation manually is risky, unless you know what you're doing.

My recommendation: install again, with the correct paths provided to XOOPS during installation.
Support XOOPS => DONATE
Use 2.5.9 | Docs | Modules | Bugs

Dante7237

Friend of XOOPS
Posted on: 10/13 10:20
Dante7237
Dante7237 (Show more)
Friend of XOOPS
Posts: 287
Since: 2008/5/28
#6

Re: New 2.5.9 install path problem

As long as I've used xoops the mainfile needed to be edited to reflect paths "before" the installer runs.
So you're telling me that the installer will prompt me for input rather than expecting paths to be present in mainfile?

geekwright

Quite a regular
Posted on: 10/13 16:21
geekwright
geekwright (Show more)
Quite a regular
Posts: 227
Since: 2010/10/15
#7

Re: New 2.5.9 install path problem

Quote:

Dante7237 wrote:
...
So you're telling me that the installer will prompt me for input rather than expecting paths to be present in mainfile?


Right! There is no mainfile.php before the installer runs. Enter the correct paths when prompted, and it will verify them. After that, the installer will create the new mainfile.php once all the needed information has been gathered.

Here is the relevant documentation on GitBook.

Dante7237

Friend of XOOPS
Posted on: 10/14 12:07
Dante7237
Dante7237 (Show more)
Friend of XOOPS
Posts: 287
Since: 2008/5/28
#8

Re: New 2.5.9 install path problem

Thanks for the help guys.
I just replaced the mainfile with an empty stock one and the installer still fails at step 4.
There is no prompt for input, and it continues to look in cms root for the lib and data folders.

Shux. I just noticed the fields on step 4 are editable. It isn't exactly easy to tell..
Gimme a second.

Yup, that was it.... hahaha
Thanks again.

Mamba

Moderator
Posted on: 10/15 4:54
Mamba
Mamba (Show more)
Moderator
Posts: 10465
Since: 2004/4/23
#9

Re: New 2.5.9 install path problem

Good to hear that everything is working now!
Support XOOPS => DONATE
Use 2.5.9 | Docs | Modules | Bugs