xoops forums

magic2k4

Just popping in
Posted on: 2014/10/27 11:39
magic2k4
magic2k4 (Show more)
Just popping in
Posts: 7
Since: 2004/12/23
#1

Could not open mainfile.php for reading

I am half way through the install page and I get this error at the save configuration:

********************************
Saving your system configuration
Could not open mainfile.php for reading
********************************

I have no idea how to fix this.Thanks.


I'm sure this is pretty obvious to some of the experts on here hense why I am posting, as I cant for the life of me figure out whats wrong? Any ideas would be apprecatied.

luciorota

Module Developer
Posted on: 2014/10/27 11:42
luciorota
luciorota (Show more)
Module Developer
Posts: 197
Since: 2007/4/20
#2

Re: Could not open mainfile.php for reading

if your site is on a unix/linux server you should check for file permissions and owner...

magic2k4

Just popping in
Posted on: 2014/10/27 11:47
magic2k4
magic2k4 (Show more)
Just popping in
Posts: 7
Since: 2004/12/23
#3

Re: Could not open mainfile.php for reading

Yes, I am running it on a raspberry pi running raspbian. Ive checked this, and all appears to be ok but if it is like you say, I dont know how to correct it.

Mamba

Moderator
Posted on: 2014/10/27 14:16
Mamba
Mamba (Show more)
Moderator
Posts: 10770
Since: 2004/4/23
#4

Re: Could not open mainfile.php for reading

We never tested it on RPi, therefore no guarantees that it will run there.

Few questions:

1) did you originally copy the mainfile.php from /extras

2) if not, did XOOPS create a new mainfile.php in the root directory?

3) If there is now a mainfile.php file, what is the content of it?

Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

dbman

Friend of XOOPS
Posted on: 2014/10/27 23:33
dbman
dbman (Show more)
Friend of XOOPS
Posts: 172
Since: 2005/4/28
#5

Re: Could not open mainfile.php for reading

Just tested this, same error... fixed by copying mainfile.php from extras folder to the xoops install folder and applying read, write, execute permissions (chmod 777).

Mamba

Moderator
Posted on: 2014/10/28 10:42
Mamba
Mamba (Show more)
Moderator
Posts: 10770
Since: 2004/4/23
#6

Re: Could not open mainfile.php for reading

Quote:
fixed by copying mainfile.php from extras folder

So is it working now?

I am very curious how will XOOPS work on Raspberry Pie....
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs