1
peterr
Protector - error messages
  • 2011/3/30 5:38

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Running a freshly installed XOOPS 2.5.0 , and have installed Protector from the system / modules part of XOOPS.

Continuing to get these error messages ..

404 - /public_html/modules/protector/css
referer: http://example.com/modules/protector/admin/index.php?page=advisory

404 - /public_html/XOOPS_TRUST_PATH
referer: http://example.com/modules/protector/admin/index.php?page=advisory

As Protector comes "with" XOOPS 2.5.0 , I am reporting this as an XOOPS core bug. Some info ..

I have this structure ..

/home/username/
/home/username/public_html
/home/username/secretpathname/
/home/username/secretpathname/renamed_xoops_data
/home/username/secretpathname/renamed_xoops_lib

Here is the mainfile.php ...

// XOOPS Physical Paths

    // Physical path to the XOOPS documents (served) directory WITHOUT trailing slash

    
define('XOOPS_ROOT_PATH''/home/username/public_html');

    
// For forward compatibility

    // Physical path to the XOOPS library directory WITHOUT trailing slash

    
define('XOOPS_PATH''/home/username/secretpathname/renamed_xoops_lib');

    
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash

    
define('XOOPS_VAR_PATH''/home/username/secretpathname/renamed_xoops_data');

    
// Alias of XOOPS_PATH, for compatibility, temporary solution

    
define("XOOPS_TRUST_PATH"XOOPS_PATH);

    
// URL Association for SSL and Protocol Compatibility

    
$http 'http://';

    if (!empty(
$_SERVER['HTTPS'])) {

        
$http = ($_SERVER['HTTPS']=='on') ? 'https://' 'http://';

    }

    
define('XOOPS_PROT'$http);

    
// XOOPS Virtual Path (URL)

    // Virtual path to your main XOOPS directory WITHOUT trailing slash

    // Example: define('XOOPS_URL', 'http://example.com');

    
define('XOOPS_URL''http://example.com');


When I look at admin | protector , it seems the paths are looking okay. For example, where you define IP's to ban, it has the full pathname correctly.

The 'security advisor' TAB in protector has a link up the top which says "Check php files inside TRUST_PATH are private (it must be 404,403 or 500 error" , and that link is resolved incorrectly. It has resolved to http://example.com/secretpathname/renamed_xoops_lib/modules/protector/public_check.php , which is wrong, it should be /home/username/secretpathname/renamed_xoops_lib/modules/protector/public_check.php

Thanks,

Peter

2
Mamba
Re: Protector - error messages
  • 2011/3/30 5:50

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Peter, make a simple test:

1) move renamed_xoops_lib and renamed_xoops_data to:
/home/username/public_html

2) update mainfile.php with the new paths

3) clear cache

4) Try to run XOOPS again.

If it works OK, it means that you don't have a proper access to the /home/username/secretpathname/ directory, and you should talk to your host provider.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
peterr
Re: Protector - error messages
  • 2011/3/30 6:05

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Hi Mamba,

I'd be hesitant to do those 4 steps, as XOOPS is running just fine. I only have the core XOOPS installed, plus installed Protector from the core. Have added/installed xreaggregator which is running okay (except a 404 there, minor).

I can actually 'do' everything okay in XOOPS, no problems, just that the server logs are filling up with 404's from Protector. :)

I did the install as XOOPS wanted it, that is, when any path had the wrong perms, I corrected it until it was okay, then proceeded.

I just logged in via SFTP and the permissions on /home/username/secretpathname/ directory are 755 , so that is okay.

I'm thinking that either ..

(i) Protector is doing this in other sites, and people don't take any notice of 404's

OR

(ii) Protector can handle ..

/home/username/public_html
/home/username/renamed_xoops_data
/home/username/renamed_xoops_lib

BUT (maybe) not ..

/home/username/public_html
/home/username/secretpathname/
/home/username/secretpathname/renamed_xoops_data
/home/username/secretpathname/renamed_xoops_lib

Although the path names are resolved just fine in mainfile.php

Thanks,

Peter

4
Mamba
Re: Protector - error messages
  • 2011/3/30 6:22

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
I'd be hesitant to do those 4 steps, as XOOPS is running just fine.

There is no risk involved. Instead of moving, just copy the renamed_xoops_lib and renamed_xoops_data to:
/home/username/public_html.

By changing the paths in mainfile.php you're controlling which directories are being accessed by XOOPS, and you can see if the Protector works correctly in /home/username/public_html.

After that, you can change the paths back to /home/username/secretpathname/ in mainfile.php and you're done.

Just make sure that you clear cache each time after the path changes in mainfile.php
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

353 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 353


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