1
libervis
Can't write to mainfile.php
  • 2005/8/11 1:03

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Hello. I am sure this is a minor issue and that I am missing something so I hope and guess it'll be a quick answer.

I cannot edit my mainfile.php file. As soon as I edit and save and then read it again it reverts back to what it was, no changes that I made are present.

I need to edit mainfile.php as part of the autologin hack by GIJOE, but since mainfile.php wont accept changes the hack is incomplete and wont work.

What's it about? I know mainfile.php is being somehow generated by XOOPS and is not entirely static in that sense, so how do I get it to apply those changes I need to apply to it? How do you edit mainfile.php?

I am using XOOPS 2.2 (soon to upgrade to 2.2.1).

Thanks for the help
Daniel
XOOPS Site: Libervis.com :: For a Free World

-- Libervis Network --

2
Dave_L
Re: Can't write to mainfile.php
  • 2005/8/11 1:09

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


XOOPS modifies mainfile.php when you run the install script. After that, it never changes it.

If you can't edit it, it's probably because its file permissions are set to read-only.

3
libervis
Re: Can't write to mainfile.php
  • 2005/8/11 1:38

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Oh man, could I be more stupid.. Permissions even crossed my mind and I still somehow didn't look. So yeah, it was set to 444 and now I changed to 644 and it's ok.

Thanks Dave!
Daniel
XOOPS Site: Libervis.com :: For a Free World

-- Libervis Network --

4
Dave_L
Re: Can't write to mainfile.php
  • 2005/8/11 19:40

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7




Remember to change it back to 444 when you're finished.

5
libervis
Re: Cant write to mainfile.php
  • 2005/8/11 19:49

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Yeah, XOOPS already reminded me of that.

Still, autologin hack doesn't work yet.. but that's a topic for another thread.

Thanks
Daniel
XOOPS Site: Libervis.com :: For a Free World

-- Libervis Network --

Login

Who's Online

455 user(s) are online (347 user(s) are browsing Support Forums)


Members: 0


Guests: 455


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits