1
deepak267
Secure.php file is missing in xoops 2.5.4 release
  • 2011/12/2 23:10

  • deepak267

  • Quite a regular

  • Posts: 352

  • Since: 2008/8/15


Hi,

while installing the latest xoops 2.5.4 release. I got installation error, then i found
xoops_data/data/secure.php file was missing. I am not sure if it is intentional or a release bug.

I copied the secure.php file from xoops 2.5.1a release and it resolved the issue.


Note,
during installation, i made the following directory/files writable.
include/license.php
mainfile.php
mainfile.dist.php
xoops_data/caches
xoops_data/smarty_cache
xoops_data/smarty_compile
uploads/

Hope this will save sometime for others.


Regards,
Deepak
A member of www.AquariumHomeCare.com

2
Mamba
Re: Secure.php file is missing in xoops 2.5.4 release
  • 2011/12/3 1:06

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


That should not happen.

The secure.php his been removed so it doesn't overwrite your existing one, if you have it, but if it's not there, XOOPS should create one.

Maybe you didn't set the /data directory to 777 and XOOPS couldn't create one for you.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
deepak267
Re: Secure.php file is missing in xoops 2.5.4 release
  • 2011/12/3 1:25

  • deepak267

  • Quite a regular

  • Posts: 352

  • Since: 2008/8/15


Thanks Mamba,

That explains why, I am getting some different errors

Quote:

Warning: include(header.php) [function.include]: failed to open stream: No such file or directory in /home/deepak/www/xoops-2.5.4/htdocs/modules/profile/admin/deactivate.php on line 2

Warning: include() [function.include]: Failed opening 'header.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /home/deepak/www/xoops-2.5.4/htdocs/modules/profile/admin/deactivate.php on line 2

Fatal error: Call to undefined function xoops_cp_header() in /home/deepak/www/xoops-2.5.4/htdocs/modules/profile/admin/deactivate.php on line 3



I guess this for the same reason. I will do a fresh install and see if it works.


My environment details:
XOOPS Version XOOPS 2.5.4
PHP Version 5.3.5
mySQL Version 5.5.8
Server API apache2handler
OS Linux
-------------------------------

Deepak
A member of www.AquariumHomeCare.com

4
deepak267
Re: Secure.php file is missing in xoops 2.5.4 release
  • 2011/12/3 1:41

  • deepak267

  • Quite a regular

  • Posts: 352

  • Since: 2008/8/15


Hi Mamba,

I just tried a fresh install with the above changes and the xoops_data/data folder as writable but i still get the same error ( i get a blank page in the middle of the installation process).

once again, i copied the secure.php file and it fixed the issue.

Not sure, what could be the cause.

Deepak
A member of www.AquariumHomeCare.com

5
Mamba
Re: Secure.php file is missing in xoops 2.5.4 release
  • 2011/12/4 19:48

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
I just tried a fresh install with the above changes and the xoops_data/data folder as writable but i still get the same error ( i get a blank page in the middle of the installation process).

once again, i copied the secure.php file and it fixed the issue.

"blank page in the middle of the installation process" is not detailed enough

On which exactly installation page are you getting this blank page?

Is it Windows or Linux? What version of PHP?

Did you make all directories writable, as indicated in the Installation script, or only the "/xoops_data/data" ?

It might be that you cannot access the DB from the Installer, but the security.php has already the DB info, so therefore it can access it.

Can somebody confirm it? I cannot reproduce it
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

6
redheadedrod
Re: Secure.php file is missing in xoops 2.5.4 release

As you may be aware I am currently working on some major upgrades to the install program. In this process I came across some built in error checking stuff in the Install scripts.

Here is a couple suggestions for you that I have not seen tried yet.

Fresh install...

Before you run the install program...

Make sure you have everything copied over and leave the xoops_data and xoops_lib alone.

From the main directory of the xoops file take the checksum.php and checksum.md5 and copy them to your sites root directory and call it in this manner...

http://yoursite.com/checksum.php

It will take a little while depending on how fast your system is.

(2-3 minutes is not unreasonable)

This will check your files to make sure they are all there.

Once you have done this then you can turn on some error logging for the install.

open up the following file in a text editor that is on your site.
(Edit it off site and reuploading it would be the best bet.)
install/include/common.inc.php

At lines 46-53 you will find this code.

/*
error_reporting( 0 );
if (isset($xoopsLogger)) {
    $xoopsLogger->activated = false;
}
error_reporting(E_ALL);
$xoopsLogger->activated = true;
*/


If you remove the comment tags from lines 46 and 53 this will turn on the more extensive debugging. This should help figure out what the issue is.

Since you are having issues I would leave the main folder the way it is until you make sure it works. THEN you can move the xoops_dir and xoops_lib out of document root which will require updating the secure.php file as well.

Also would not install any modules until you make sure it all installs correctly. Once you verify it works then slowly add your modules.

Good Luck!



Attending College working towards Bachelors in Software Engineering and Network Security.

Login

Who's Online

210 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

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

Latest GitHub Commits