1
jimbofoxman
500 Server Error

Version 2.2.3 Final according to the changelog.txt file.

I moved the site within my domain. I did this one before but I can remember having this issue.

Basically I moved all the files from the root to a new directory.

from http://www.domainname.com

to http://www.domainname.com/newdirectory

Then I went in, CHMOD the mainfile.php and just added "/newdirectory" to the appropriate places. CHMOD the mainfile.php back to 444 and got the 500 Server Error.

I emptied the cache and template_c folders as well.

Don't know if it's a .htaccess file thing (moved it as well)

It does have

RedirectMatch "^/xoops/?$" "http://www.domainname.com/"

This was for the original install I did several years ago where I installed it first in the xoops directory then moved it to the root.

There is something installed in the root so I can't tell the redirect to redirect from the root or they'd never see the main site.

Any thoughts? THANKS



2
jimbofoxman
Re: Delete all posts/comments from user

That hack worked perfect for me too!



3
jimbofoxman
Re: Editor in blocks

Well I give up..........I figured out how to drag the edit area larger..........but it has the stupid background in there. So I tried some CSS thing, but screwed up the blockadmin screen. So I restored the files and re-edited the first two files and it's still the same old no frills editor. I quit!



4
jimbofoxman
Re: Editor in blocks

Ok, I did the first two steps and now Tiny Editor shows up. BUT..........I have only one line of text visible making it hard to see what the content is. All the menus and stuff are there.........just only space enough for one line of content to work on.

Anyone know how to make the area taller?



5
jimbofoxman
Re: Protector - Cleaning up per the advisor

As soon as I put that line in my .htaccess file I get a 500 server error.



6
jimbofoxman
Re: Protector - Cleaning up per the advisor

Also, I checked with my host about php.ini and they said I can do it. So where should this file be located? In the same directory as my mainfile.php? I've tried it in my root, xoops_lib and xoops_data folders and I still get...

'allow_url_fopen' on   Not secure


Suggestions?



7
jimbofoxman
Re: Protector - Cleaning up per the advisor

Ok, on to the remaining issues

1. What should really be in my .htaccess file? Right now the only thing in mine is;

RedirectMatch "^/xoops/?$" "http://www.ipmskalamazoo.org"


Which I don't think is needed anymore. I originally setup XOOPS in the XOOPS directory on root to test and setup prior to dumping the old site files. So I think that is a old remnant from the past.

2. If I add the global register off line to it, all I get is a 500 server error. So I am lost on what to do with that.

I know I have to dump the xoops_lib file out of root still to solve that problem as well.




8
jimbofoxman
Re: Protector - Cleaning up per the advisor

Thanks guys, that worked. Uploaded the latest version of protector from GIJoe's site and she's working now.



9
jimbofoxman
Re: Protector - Cleaning up per the advisor

Well I don't know.....

If I take both the @ symbols out, I get....(same for taking the If's out)

Quote:
Fatal error: Using $this when not in object context in /home/ipmskala/www/www/xoops_lib/modules/protector/class/protector.php


If I leave the if's in and put @'s on everyone..........another blank page.

I'm sure it's just something stupid.......seems to be my normal problem.



10
jimbofoxman
Protector - Cleaning up per the advisor

The security advisor has several things for me to do, and I am trying to update my mainfile.php with the bit about precheck and postcheck. So in the 2.3.3 update, I updated the mainfile.dist.php.protector file with my information (as follows) but as soon as I do, I get a blank page on my website.

<?php
/**
 * XOOPS main configuration file
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright   The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license     http://www.fsf.org/copyleft/gpl.html& ...  public license
 * @version     $Id: mainfile.dist.php 2540 2008-11-29 20:15:08Z dhcst $
 */

if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
    
define("XOOPS_MAINFILE_INCLUDED"1);

    
// XOOPS Physical Paths

    // Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
    
define("XOOPS_ROOT_PATH""/home/ipmskala/www/www");

    
// For forward compatibility
    // Physical path to the XOOPS library directory WITHOUT trailing slash
    
define("XOOPS_PATH""/home/ipmskala/www/www/xoops_lib");
    
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
    
define("XOOPS_VAR_PATH""/home/ipmskala/www/www/xoops_data");
    
// Alias of XOOPS_PATH, for compatibility, temporary solution
    
define("XOOPS_TRUST_PATH"XOOPS_PATH);

    
// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define("XOOPS_URL", "http://url_to_xoops_directory");
    
define("XOOPS_URL""http://www.ipmskalamazoo.org");

    
// Shall be handled later, don't forget!
    
define("XOOPS_CHECK_PATH"0);
    
// Protect against external scripts execution if safe mode is not enabled
    
if ( XOOPS_CHECK_PATH && !@ini_get("safe_mode") ) {
        if ( 
function_exists("debug_backtrace") ) {
            
$xoopsScriptPath debug_backtrace();
            if ( !
count($xoopsScriptPath) ) {
                 die(
"XOOPS path check: this file cannot be requested directly");
            }
            
$xoopsScriptPath $xoopsScriptPath[0]["file"];
        } else {
            
$xoopsScriptPath = isset($_SERVER["PATH_TRANSLATED"]) ? $_SERVER["PATH_TRANSLATED"] :  $_SERVER["SCRIPT_FILENAME"];
        }
        if ( 
DIRECTORY_SEPARATOR != "/" ) {
            
// IIS6 may double the  chars
            
$xoopsScriptPath str_replacestrpos$xoopsScriptPath"\\") ? "\\" DIRECTORY_SEPARATOR"/"$xoopsScriptPath);
        }
        if ( 
strcasecmpsubstr($xoopsScriptPath0strlen(XOOPS_ROOT_PATH)), str_replaceDIRECTORY_SEPARATOR"/"XOOPS_ROOT_PATH)) ) {
             exit(
"XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
        }
    }

    
// Database
    // Choose the database to be used
    
define("XOOPS_DB_TYPE""mysql");

    
// Set the database charset if applicable
    
if (defined("XOOPS_DB_CHARSET")) die();
    
define("XOOPS_DB_CHARSET""");

    
// Table Prefix
    // This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default "xoops".
    
define("XOOPS_DB_PREFIX""xxxxxx");

    
// Database Hostname
    // Hostname of the database server. If you are unsure, "localhost" works in most cases.
    
define("XOOPS_DB_HOST""localhost:/tmp/mysql5.sock");

    
// Database Username
    // Your database user account on the host
    
define("XOOPS_DB_USER""xxxxx");

    
// Database Password
    // Password for your database user account
    
define("XOOPS_DB_PASS""xxxxx");

    
// Database Name
    // The name of database on the host. The installer will attempt to create the database if not exist
    
define("XOOPS_DB_NAME""xxxxx");

    
// Use persistent connection? (Yes=1 No=0)
    // Default is "Yes". Choose "Yes" if you are unsure.
    
define("XOOPS_DB_PCONNECT"0);

    
define("XOOPS_GROUP_ADMIN""1");
    
define("XOOPS_GROUP_USERS""2");
    
define("XOOPS_GROUP_ANONYMOUS""3");

    
// Temporary solution for extra protector module. To be refactored
    // Set the following value as true if you want to enable protector module
    
$ENABLE_PROTECTOR true;

    if ( !empty(
$ENABLE_PROTECTOR) ) {
        @include 
XOOPS_TRUST_PATH '/modules/protector/include/precheck.inc.php';
    }
    if (!isset(
$xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }
    if ( !empty(
$ENABLE_PROTECTOR) ) {
        @include 
XOOPS_TRUST_PATH '/modules/protector/include/postcheck.inc.php';
    }
}
?>


If I put back the mainfile.php without the precheck and postcheck it goes back to working fine. What stupid mistake am I missing? Good file below;

<?php
/*
 You may not change or alter any portion of this comment or credits
 of supporting developers from this source code or any supporting source code 
 which is considered copyrighted (c) material of the original comment or credit authors.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

/**
 * XOOPS main configuration file
 *
 * See the enclosed file license.txt for licensing information.
 * If you did not receive this file, get it at http://www.fsf.org/copyleft/gpl.html
 *
 * @copyright   The XOOPS project https://xoops.org/
 * @license     http://www.fsf.org/copyleft/gpl.html& ... Public License (GPL)
 * @version        $Id: mainfile.dist.php 2024 2008-08-31 03:24:12Z phppp $
 */

if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
    
define'XOOPS_MAINFILE_INCLUDED');

    
// XOOPS Physical Paths
    
    // Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
    
define'XOOPS_ROOT_PATH''/home/ipmskala/www/www' );

    
// For forward compatibility
    // Physical path to the XOOPS library directory WITHOUT trailing slash
    
define'XOOPS_PATH''/home/ipmskala/www/www/xoops_lib' );
    
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
    
define'XOOPS_VAR_PATH''/home/ipmskala/www/www/xoops_data' );
    
// Alias of XOOPS_PATH, for compatibility, temporary solution
    
define("XOOPS_TRUST_PATH"XOOPS_PATH);

    
// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define( 'XOOPS_URL', 'http://www.ipmskalamazoo.org' );
    
define'XOOPS_URL''http://www.ipmskalamazoo.org' );

    
define'XOOPS_CHECK_PATH');
    
// Protect against external scripts execution if safe mode is not enabled
    
if ( XOOPS_CHECK_PATH && !@ini_get("safe_mode") ) {
        if ( 
function_exists("debug_backtrace") ) {
            
$xoopsScriptPath debug_backtrace();
            if ( !
count($xoopsScriptPath) ) {
                 die(
"XOOPS path check: this file cannot be requested directly");
            }
            
$xoopsScriptPath $xoopsScriptPath[0]["file"];
        } else {
            
$xoopsScriptPath = isset($_SERVER["PATH_TRANSLATED"]) ? $_SERVER["PATH_TRANSLATED"] :  $_SERVER["SCRIPT_FILENAME"];
        }
        if ( 
DIRECTORY_SEPARATOR != "/" ) {
            
// IIS6 may double the  chars
            
$xoopsScriptPath str_replacestrpos$xoopsScriptPath"\\") ? "\\" DIRECTORY_SEPARATOR"/"$xoopsScriptPath);
        }
        if ( 
strcasecmpsubstr($xoopsScriptPath0strlen(XOOPS_ROOT_PATH)), str_replaceDIRECTORY_SEPARATOR"/"XOOPS_ROOT_PATH)) ) {
             exit(
"XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
        }
    }

    
// Database
    // Choose the database to be used
    
define'XOOPS_DB_TYPE''mysql' );

    
// Set the database charset if applicable
    
if (defined("XOOPS_DB_CHARSET")) die();
    
define'XOOPS_DB_CHARSET''' );

    
// Table Prefix
    // This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default "xoops".
    
define'XOOPS_DB_PREFIX''xxxxx' );

    
// Database Hostname
    // Hostname of the database server. If you are unsure, "localhost" works in most cases.
    
define'XOOPS_DB_HOST''localhost:/tmp/mysql5.sock' );

    
// Database Username
    // Your database user account on the host
    
define'XOOPS_DB_USER''xxxxx' );

    
// Database Password
    // Password for your database user account
    
define'XOOPS_DB_PASS''xxxxx' );

    
// Database Name
    // The name of database on the host. The installer will attempt to create the database if not exist
    
define'XOOPS_DB_NAME''xxxxx' );

    
// Use persistent connection? (Yes=1 No=0)
    // Default is "Yes". Choose "Yes" if you are unsure.
    
define'XOOPS_DB_PCONNECT');

    
define'XOOPS_GROUP_ADMIN''1' );
    
define'XOOPS_GROUP_USERS''2' );
    
define'XOOPS_GROUP_ANONYMOUS''3' );
    
    if (!isset(
$xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }

}
?>


I am sure it is something stupid. I know I gotta fix the data and lib directories too.




TopTop
(1) 2 3 4 ... 29 »



Login

Who's Online

64 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 64


more...

Donat-O-Meter

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

Latest GitHub Commits