1
joandarcy
cannot write into mainfile.php after CHMOD 777
  • 2005/8/9 18:36

  • joandarcy

  • Just popping in

  • Posts: 8

  • Since: 2005/7/29


I tried to install v2.2, status given:

Checking file and directory permissions..
Directory uploads/ is writable.
Directory cache/ is writable.
Directory templates_c/ is writable.
File mainfile.php is writable.
No errors detected.


Then, when I confirmed the submitted data, after filling all the db name..bla,bla, bla.. Error shown:

Saving configuration data..
Could not write into mainfile.php. Please check the file permission and try again.

What happened?? Used WS_FTPHome to upload, did CHMOD 777 to the respected folders & file [cache, uploads, template_c, mainfile.php] but as if there were no changes to the files.

Then, I updated to 2.2.1 , still give me the error message cant write into mainfile.php. pls help!!!!! What could I do wrong?

Thx!

2
morgolis
Re: cannot write into mainfile.php after CHMOD 777
  • 2005/8/9 18:50

  • morgolis

  • Just popping in

  • Posts: 4

  • Since: 2005/8/3 1


Your problem is likely SELinux if you're running a Red Hat type of distro.

To get around this, just chown apache mainfile.php

This should get you around the problem. Once it's updated, just chown it back to whoever owned it before.

3
joandarcy
Re: cannot write into mainfile.php after CHMOD 777
  • 2005/8/9 18:53

  • joandarcy

  • Just popping in

  • Posts: 8

  • Since: 2005/7/29


I am using WinXP HomeEd.
What does 'chown' means and how to do that??

Quote:

morgolis wrote:
Your problem is likely SELinux if you're running a Red Hat type of distro.

To get around this, just chown apache mainfile.php

This should get you around the problem. Once it's updated, just chown it back to whoever owned it before.

4
Dave_L
Re: cannot write into mainfile.php after CHMOD 777
  • 2005/8/9 19:45

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


chmod and chown are Linux commands. They don't apply to Windows. On my XOOPS test site on Win2K, I have to change file permissions through Windows Explorer.

5
jctsup1
Re: cannot write into mainfile.php after CHMOD 777
  • 2005/8/9 20:07

  • jctsup1

  • Not too shy to talk

  • Posts: 146

  • Since: 2002/5/23


Are you running IIS or Apache? If you are running IIS, you will need to give the IUSR_MachineName (MachineName being your computers name) MODIFY permissions. You will need to disable Simple File Sharing in order to set NTFS permissions - Open Explorer, go to Tools Options & go to the view tab. Now scroll all the way down to the bottom & un check Simple File Sharing.
Jeffrey C. Tindillier, CIW
Microsoft MVP - IIS
--------------------------------------------
IIS Tips, Tricks & Resources
http://www.iis-resources.com

6
joandarcy
Re: cannot write into mainfile.php after CHMOD 777
  • 2005/8/10 3:04

  • joandarcy

  • Just popping in

  • Posts: 8

  • Since: 2005/7/29


I am running Apache. Does ur instruction applies to Apache . WinXP?

Quote:

jctsup1 wrote:
Are you running IIS or Apache? If you are running IIS, you will need to give the IUSR_MachineName (MachineName being your computers name) MODIFY permissions. You will need to disable Simple File Sharing in order to set NTFS permissions - Open Explorer, go to Tools Options & go to the view tab. Now scroll all the way down to the bottom & un check Simple File Sharing.

7
joandarcy
Re: cannot write into mainfile.php after CHMOD 777
  • 2005/8/10 4:09

  • joandarcy

  • Just popping in

  • Posts: 8

  • Since: 2005/7/29


i manage to solve the prob. contacted d web host to assist!

appreciate ur help, guys! thx

8
fkleow
Re: cannot write into mainfile.php after CHMOD 777
  • 2005/10/13 17:40

  • fkleow

  • Just popping in

  • Posts: 2

  • Since: 2005/8/8 5


hi, i'm having the same problem, hopefully your guys can help me, i'm using Win Xp. thank you

Login

Who's Online

318 user(s) are online (251 user(s) are browsing Support Forums)


Members: 0


Guests: 318


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