1
Cordman
WARNING: File root:/pathtodir/mainfile.php
  • 2004/4/1 12:09

  • Cordman

  • Just popping in

  • Posts: 4

  • Since: 2004/3/26


I installed XOOPS on a server running Apache. All works well, except when I go to the Admin page, I get the following error: WARNING: File root:/pathtodir/mainfile.php is writeable by the server.
Please change the permission of this file for security reasons. in Unix (444), in Win32 (read-only)

When I chmod the file to 444 as recommended, it does not "stick", it just goes back to 644 and I get the above arror as above. Just for the heck of it, I made the file read-only and that was a mistake. Any ideas?

2
Dave_L
Re: WARNING: File root:/pathtodir/mainfile.php
  • 2004/4/1 12:14

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Is your server Linux or Windows?

3
Cordman
Re: WARNING: File root:/pathtodir/mainfile.php
  • 2004/4/1 14:36

  • Cordman

  • Just popping in

  • Posts: 4

  • Since: 2004/3/26


Linux

4
phatty
Re: WARNING: File root:/pathtodir/mainfile.php
  • 2004/4/1 16:43

  • phatty

  • Just popping in

  • Posts: 70

  • Since: 2004/3/9 2


Contact your hosting provider, somehow they have not given you permission to CHMOD files or they did an upgrade and forgot to enable. This exact same thing happened to me and after a little convincing they checked into it and bingo!

Jeff

5
Cordman
Re: WARNING: File root:/pathtodir/mainfile.php
  • 2004/4/2 17:31

  • Cordman

  • Just popping in

  • Posts: 4

  • Since: 2004/3/26


Thanks Jeff,

I can CHMOD with no problems, but I cannot CHMOD 444. Like I said, if I do it reverts back to 644 and then I get the error. I'll inquire about it as you suggested though. Thanks

6
Stewdio
Re: WARNING: File root:/pathtodir/mainfile.php
  • 2004/4/2 18:59

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Download your copy then delete it off your server and reupload. After this you should be able to place proper perms on it. Just a short term fix till you get a hold of your provider.

7
Cordman
Re: WARNING: File root:/pathtodir/mainfile.php
  • 2004/4/3 22:21

  • Cordman

  • Just popping in

  • Posts: 4

  • Since: 2004/3/26


I found a thread on my host's forum. They will not allow chmod 444. They say it's a security issue and I can't argue due to being ignorant about it. Anyway, here is a post in the thread on the forum

<begin post>
well, obviously your configure.php file is not chmod properly. You have to use this script

<?php
chmod('includes/configure.php', 0444);
?>

save it as protect.php, and put it in your catalog directory. Call it from your browser and you're all set.

</end post>

All I did was changed 'includes/configure.php' to 'mainfile.php' and it works. Not sure if this is the right thing to do, but like I say, it works. Any thoughts? Does anyone see a problem with this?

8
Dave_L
Re: WARNING: File root:/pathtodir/mainfile.php
  • 2004/4/3 22:32

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I don't understand why changing file permissions to 444 could be a security issue, considering that they let you change permissions to 644.

I see no problem with the method you used.

Login

Who's Online

168 user(s) are online (100 user(s) are browsing Support Forums)


Members: 1


Guests: 167


alain01,

more...

Donat-O-Meter

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

Latest GitHub Commits