1
gigiloo
Could not write into mainfile.php
  • 2005/1/28 4:06

  • gigiloo

  • Just popping in

  • Posts: 2

  • Since: 2005/1/28


My platform:
XP Pro
IIS
Php
MySQL
Xoops 2.0.9.2



I'm new in Xoops. I try to install but when come to step 6 screen, it show this message:

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


What should I do now?

2
m0nty
Re: Could not write into mainfile.php
  • 2005/1/28 4:08

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24



3
jctsup1
Re: Could not write into mainfile.php
  • 2005/1/28 4:32

  • jctsup1

  • Not too shy to talk

  • Posts: 146

  • Since: 2002/5/23


Make sure that the IUSR account has "write & modify" permissions on mainfile.php.

4
Pappa
Re: Could not write into mainfile.php
  • 2005/1/29 20:45

  • Pappa

  • Just popping in

  • Posts: 15

  • Since: 2005/1/29


Gigiloo, I am having the same problem exactly.
Exact same setup versions...
XP Pro,MySQL 4.1,IIS v5.1,PHP v4.3.1, XOOPS 2.0.9.2

I am also getting this error msg at the top of my screen:

Warning: copy(../mainfile.php): failed to open stream: Permission denied in c:\inetpub\wwwroot\install\class\mainfilemanager.php on line 52

I have tried to fix the permission using MySQL Control Center, Navicat, & MySQL Admin. Everything I ses shows that I have full access to all databases. I am able to log in to these SQL editors just fine, which tells me I must have this setup correctly for the most part. I also made sure directory & file are not read-only. I am basically at superuser status, but still cant overwrite the mainfilemanager.php file.

Not sure where to go from here...

I have a compleated site I did with easyphp w/apache, but I don't think I can publish it. I think easyphp is only for testing purposes. Otherwise, this would be easy as pie. Easyphp rocks, well easy to use..

Any help would be great.

5
m0nty
Re: Could not write into mainfile.php
  • 2005/1/29 21:00

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


mainfilemanager.php is not the file that needs the permission..


mainfile.php needs to be writable (located in the root folder)

6
Pappa
Re: Could not write into mainfile.php
  • 2005/1/29 21:17

  • Pappa

  • Just popping in

  • Posts: 15

  • Since: 2005/1/29


mainfile.php shows as writable(not read-only), and reports writable in step 3.

I get the error in step 6 saying:

Warning: copy(../mainfile.php): failed to open stream: Permission denied in c:\inetpub\wwwroot\install\class\mainfilemanager.php on line 52

&

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

7
jctsup1
Re: Could not write into mainfile.php
  • 2005/1/30 1:37

  • jctsup1

  • Not too shy to talk

  • Posts: 146

  • Since: 2002/5/23


If you are using Windows XP, setting NTFS permissions as I have stated above requires a couple of steps.

Open Windows Explorer. Go to Tools|Folder Options. Now click the View Tab. Uncheck Simple File Sharing which is the last option.

Now go back to your XOOPS directory. Right click on Mainfile.php. Go to Properties. Now click the Security Tab. You will have to add the IUSR_MachineName (MachineName being the name of your computer) and give that account Modify permissions ---- this will get rid of the error all you guys are running into.

If you are still running into issues, I suggest you visit my site & there is a Install XOOPS on IIS guide listed on the homepage.

8
Pappa
Re: Could not write into mainfile.php
  • 2005/1/30 5:24

  • Pappa

  • Just popping in

  • Posts: 15

  • Since: 2005/1/29


You are awesome. That fixed the problem, but I fell right into another. Sry :(

But now I get this msg: On paart 6
Notice: Use of undefined constant XOOPS_ROOT_PATH - assumed 'XOOPS_ROOT_PATH' in c:\inetpub\wwwroot\install\index.php on line 258

FOLLOWED BY: On part 9 (Last part I think)
Could not connect to the database server.

Now I'm not a pro at MySQL, but as far as I know, I have sufficiant permissions. I used Navicat software and set them that way. It shows all access to the user I created and all are granted to the database I created.

Ideas?

Login

Who's Online

329 user(s) are online (264 user(s) are browsing Support Forums)


Members: 0


Guests: 329


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