1
chezael
Could not copy the distribution file to mainfile.php
  • 2009/1/18 11:42

  • chezael

  • Just popping in

  • Posts: 3

  • Since: 2009/1/18


Saving your system configuration

Could not copy the distribution file to mainfile.php


can someone help me out please?

I renamed the mainfile.dist.php to backup.mainfile.php and the mainfile.dist.php.protector was moved to htdocs and renamed to mainfile.dist.php

I then launched the installation procedure by loading the index.php file on the htdocs directory.

this is a clean instal. Is there a reason why this isn't working?

2
ghia
Re: Could not copy the distribution file to mainfile.php
  • 2009/1/18 12:06

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


chezael, welcome to the XOOPS forum!
Quote:
this is a clean instal.
You never had a XOOPS before then?Quote:
I renamed the mainfile.dist.php to backup.mainfile.php and the mainfile.dist.php.protector was moved to htdocs and renamed to mainfile.dist.php
Why did you do that?
You have to follow meticulously the installation procedure as described in the release notes.

3
chezael
Re: Could not copy the distribution file to mainfile.php
  • 2009/1/18 12:17

  • chezael

  • Just popping in

  • Posts: 3

  • Since: 2009/1/18



Installing Protector in XOOPS 2.3.2
-----------------------------------
We also highly recommend the installation of the PROTECTOR module which will bring additional security protection and logging capabilities to your site:

To install Protector module for the first time with a new installation of XOOPS 2.3.2, copy /extras/mainfile.dist.php.protector to /htdocs/mainfile.dist.php BEFORE installing XOOPS.


because it it said I should do that? unless, that line didn't mean I should have replaced the original mainfile.dist.php with the protector one.

Moreover, I tried installing without replacing the protector file and I still got the same problem.

4
chezael
Re: Could not copy the distribution file to mainfile.php
  • 2009/1/18 13:38

  • chezael

  • Just popping in

  • Posts: 3

  • Since: 2009/1/18


can anyone help, this is really important :(

5
sarahmx
Re: Could not copy the distribution file to mainfile.php
  • 2009/1/18 15:52

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


try to re-install without copying the mainfile.dist.php.protector ..just install as usual

you can edit your mainfile.php later to include the protector precheck-postcheck line later... (refer mainfilemainfile.dist.php.protector )

i think the installation guide 2.3 should be rewrite

6
Rheas
Re: Could not copy the distribution file to mainfile.php
  • 2009/1/25 6:17

  • Rheas

  • Just popping in

  • Posts: 43

  • Since: 2003/2/21


I have exactly the same problem. "Could not copy the distribution file to mainfile.php"

I have tried a clean install with protector and without.

mainfile.php is writeable.

running IIS on SBS2003

7
ghia
Re: Could not copy the distribution file to mainfile.php
  • 2009/1/26 1:23

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


In IIS you have two kinds of permissions. One is by the file system and is the regular Windows access permission (right click in file manager).
The other is a permission instated by IIS and configurable in the IIS manager.
Both have to allow for writing.

8
Rheas
Re: Could not copy the distribution file to mainfile.php
  • 2009/1/26 20:06

  • Rheas

  • Just popping in

  • Posts: 43

  • Since: 2003/2/21


thx ghia,
wiped directories at www and databse,
added 2.32b htdocs and did protector fix (mainfile.dist.php)
renamed xoops_dirs to ????_dirs

added root to administrators
reset permissions in OS
created datadir and added IWAM and root at parent with full permissions(MySQL\Data diirectory)

reset permissions in IIS; added write enabled at cache, templates_c,uploads and ????_data and subdirs.
added write to mainfile.php

install gets thru Step#7 (configsave)
hits error #500 at Step#8 (tablescreate)
although db.opt has been written)

is there a protector edit that I am missing?


9
ghia
Re: Could not copy the distribution file to mainfile.php
  • 2009/1/26 23:58

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Try once with the post and precheck for Protector commented out in mainfile.php and do a search for IIS on the forum for more advice on installing XOOPS with it.

(In general Apache is easier and runs also on Windows eg XAMPP)

10
sarahmx
Re: Could not copy the distribution file to mainfile.php
  • 2009/1/27 0:12

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Hi....

i just tried the unyet release 2.33rc in svn (clean install)

i have the same error "could not copy the distibution file to mainfile.php" when i do this


1. copy mainfile.dist.php.protector to root and leave the mainfile.dist.php intact
2. delete mainfile.dist.php and replace it with mainfile.dist.php.protector in root


Quote:


5.If you need to install protector module,
Replace the file mainfile.dist.php in your XOOPS root directory with /extras/mainfile.dist.php.protector.



if i install as usual without copying the mainfile.dist.php.protector file from the extras folder i can install XOOPS successfully...i then include the precheck and post check manually



p/s: the new XOOPS installtion process rocks...you guys should try it...



Login

Who's Online

318 user(s) are online (112 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