1
Xetox
Server Crash
  • 2005/11/30 15:12

  • Xetox

  • Just popping in

  • Posts: 71

  • Since: 2005/10/28


Ok first let me start off with a background of what has happened.

Last week, the person that I host with got hacked and lets just say it was not pretty. So Myself and A friend stought out a reseller host and found a good one for a decent price. Luckly I have all my sites backuped :)

I got the most important one up firsthttp://newoakvineyards.com since that is the one that brings my family the most money :)

Now I am trying to gethttp://gasperinofamily.com back up witch is a XOOPS site. I installed XOOPS fresh and then backed up a copy of it. Then I copied my intire old site over top of it minus cgi-bin and templates_c directory. Imported my database and hoped for the best. I guess I did not do enough hoping.

When I got the site now I get this.

XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.

Any help would be greatly appreciated.

Thanks again.
Xetox

2
highlander
Re: Server Crash
  • 2005/11/30 15:33

  • highlander

  • Not too shy to talk

  • Posts: 151

  • Since: 2004/12/5


Hi Xetox,

You need to check the settings in mainfile.php

good luck, Highlander
So, I'm in the park wondering why frisbees get larger as they get closer when suddenly, it hits me...
www.AnimalPedigree.com

3
Xetox
Re: Server Crash
  • 2005/11/30 16:05

  • Xetox

  • Just popping in

  • Posts: 71

  • Since: 2005/10/28


Here is what my mainfile.php looks like...what should I remove?

<?php
// $Id: mainfile.dist.php,v 1.7.6.3 2005/05/21 15:38:20 mithyt2 Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <https://xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  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.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //

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

    
// XOOPS Physical Path
    // Physical path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_ROOT_PATH', '/hsphere/local/home/xetox/gasperinofamily.com');
    
define('XOOPS_ROOT_PATH''/hsphere/local/home/xetox/gasperinofamily.com');

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

    
define('XOOPS_CHECK_PATH''1');
    
// 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');

    
// Table Prefix
    // This prefix will be added to all new tables created to avoid name conflict in the database. Please change this to something different than 'xoops'.
    
define('XOOPS_DB_PREFIX''xoops');

    
// Database Hostname
    // Hostname of the database server. If you are unsure, 'localhost' works in most cases.
    
define('XOOPS_DB_HOST''216.157.145.45');

    
// Database Username
    // Your database user account on the host
    
define('XOOPS_DB_USER''xetox_****');

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

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

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

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

    if (!isset(
$xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
        require 
XOOPS_ROOT_PATH."/include/common.php";
    }
}
?>

4
Bender
Re: Server Crash
  • 2005/11/30 17:28

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Check out this thread. Especially page 2 of it:

Emergency!! Please help!!
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

5
Xetox
Re: Server Crash
  • 2005/11/30 18:17

  • Xetox

  • Just popping in

  • Posts: 71

  • Since: 2005/10/28


Ok now this is what I have for my mainfile.php

I changed the XOOPS_CHECK_PATH TO 0 AND CHANGED MY XOOPS_ROOT_PATH TO /home/xetox/gasperinofamily.com like it should have been.

Now I get a bank page.

6
Xetox
Re: Server Crash
  • 2005/11/30 19:47

  • Xetox

  • Just popping in

  • Posts: 71

  • Since: 2005/10/28


Update, I am past the error messages now, but now all I have is my header and banners at top, can get any blocks to show up? http:gasperinofamily.com if you want to look at what I am talking about.

But if you hit the mod itself its fine. just no side blocks.

http://gasperinofamily.com/modules/myalbum/

7
Xetox
Re: Server Crash
  • 2005/11/30 20:06

  • Xetox

  • Just popping in

  • Posts: 71

  • Since: 2005/10/28


More Info to go on. When I change themes everything is fine. I know this theme works cause I had it up before. Butwhen I run in debug mode with that theme loaded this is what I get.

Warning [Xoops]: Smarty error: unable to read resource: "karate_redux_blue/theme_blockleft.html" in file class/smarty/Smarty.class.php line 1084
Warning [Xoops]: Smarty error: unable to read resource: "karate_redux_blue/theme_blockleft.html" in file class/smarty/Smarty.class.php line 1084
Warning [Xoops]: Smarty error: unable to read resource: "karate_redux_blue/theme_blockleft.html" in file class/smarty/Smarty.class.php line 1084
Warning [Xoops]: Smarty error: unable to read resource: "karate_redux_blue/theme_blockcenter_c.html" in file class/smarty/Smarty.class.php line 1084
Warning [Xoops]: Smarty error: unable to read resource: "karate_redux_blue/theme_blockcenter_c.html" in file class/smarty/Smarty.class.php line 1084
Warning [Xoops]: Smarty error: unable to read resource: "karate_redux_blue/theme_blockcenter_c.html" in file class/smarty/Smarty.class.php line 1084
Warning [Xoops]: Smarty error: unable to read resource: "karate_redux_blue/theme_blockcenter_c.html" in file class/smarty/Smarty.class.php line 1084
Warning [Xoops]: Smarty error: unable to read resource: "karate_redux_blue/theme_blockright.html" in file class/smarty/Smarty.class.php line 1084
Warning [Xoops]: Smarty error: unable to read resource: "karate_redux_blue/theme_blockright.html" in file class/smarty/Smarty.class.php line 1084
Warning [Xoops]: Smarty error: unable to read resource: "karate_redux_blue/theme_blockright.html" in file class/smarty/Smarty.class.php line 1084

8
Arowana
Re: Server Crash
  • 2005/11/30 20:14

  • Arowana

  • Friend of XOOPS

  • Posts: 323

  • Since: 2004/8/6 2


download XOOPS 2.2.3a and upload all BUT mainfile.php.

might want the change the mainfile.php so your url is

'http://www.gasperinofamily.com'

then run

http://www.gasperinofamily.com/updatexoops.php

if you still cannot get to the admin section. After running the update I had to clear out the template_c file again close all browsers and reopen.

MAKE SURE YOU BACK UP YOUR ENTIRE DATABASE AND WEBSITE BEFORE TAKING MY STEPS.
Arowana

9
rowdie
Re: Server Crash
  • 2005/12/1 5:20

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


'unable to read resource' normally means the folder permissions aren't set correctly.

Check the permissions on cache, uploads and templates_c directories.

Login

Who's Online

165 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

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

Latest GitHub Commits