Problemas na instalação do vqmod
Enviado: 20 Jun 2012, 13:49
Boa tarde amigos, estou tentando instalar o vqmod, mas o problema é o seguinte: não consigo instalar na pasta principal(Web) do domínio principal da minha hospedagem(UolHost
. / Windows).
Curiosamente em uma subpasta, ou em algum subdominio FUNCIONA e INSTALA sem problemas!!!
Fiz um esqueminha abaixo :

O código fonte, é o padrão do vqmod:
index:
<?php
/**
* UGRSR
*
* @package Simple vQmod OpenCart install script
* @author Jay Gilford - http://jaygilford.com/
* @copyright Jay Gilford 2011
* @version 0.2
* @access public
*
* @information
* This file will perform all necessary file alterations for the
* OpenCart index.php files both in the root directory and in the
* Administration folder. Please note that if you have changed your
* default folder name from admin to something else, you will need
* to edit the admin/index.php in this file to install successfully
*
* @license
* Permission is hereby granted, free of charge, to any person to
* use, copy, modify, distribute, sublicense, and/or sell copies
* of the Software, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software
*
* @warning
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESSED OR IMPLIED.
*
*/
// Counters
$changes = 0;
$writes = 0;
// Load class required for installation
require('ugrsr.class.php');
// Get directory two above installation directory
$opencart_path = realpath(dirname(__FILE__) . '/../../');
// Verify path is correct
if(!$opencart_path) die('COULD NOT DETERMINE CORRECT FILE PATH');
// Create new UGRSR class
$u = new UGRSR($opencart_path);
// remove the # before this to enable debugging info
#$u->debug = true;
// Set file searching to off
$u->file_search = false;
// Add both index files to files to include
$u->addFile('index.php');
// Pattern to add vqmod include
$u->addPattern('~// Startup~', '// VirtualQMOD
require_once(\'./vqmod/vqmod.php\'); ----------------------------------------LINHA 60
$vqmod = new VQMod();
// VQMODDED Startup');
$result = $u->run();
$writes += $result['writes'];
$changes += $result['changes'];
$u->clearPatterns();
$u->resetFileList();
// Rename the admin part of the text below if you've
// changed your admin folder name
$u->addFile('admin/index.php');
// Pattern to add vqmod include
$u->addPattern('~// Startup~', '//VirtualQMOD
require_once(\'../vqmod/vqmod.php\');
$vqmod = new VQMod();
// VQMODDED Startup');
$result = $u->run();
$writes += $result['writes'];
$changes += $result['changes'];
$u->addFile('index.php');
// Pattern to run required files through vqmod
$u->addPattern('/require_once\(DIR_SYSTEM \. \'([^\']+)\'\);/', 'require_once($vqmod->modCheck(DIR_SYSTEM . \'$1\'));');
// Get number of changes during run
$result = $u->run();
$writes += $result['writes'];
$changes += $result['changes'];
// output result to user
if(!$changes) die('VQMOD ALREADY INSTALLED!');
if($writes != 4) die('ONE OR MORE FILES COULD NOT BE WRITTEN');
die('VQMOD HAS BEEN INSTALLED ON YOUR SYSTEM!');
Peço encarecida e desesperadamente a ajuda de vocês!!

Curiosamente em uma subpasta, ou em algum subdominio FUNCIONA e INSTALA sem problemas!!!
Fiz um esqueminha abaixo :

O código fonte, é o padrão do vqmod:
index:
<?php
/**
* UGRSR
*
* @package Simple vQmod OpenCart install script
* @author Jay Gilford - http://jaygilford.com/
* @copyright Jay Gilford 2011
* @version 0.2
* @access public
*
* @information
* This file will perform all necessary file alterations for the
* OpenCart index.php files both in the root directory and in the
* Administration folder. Please note that if you have changed your
* default folder name from admin to something else, you will need
* to edit the admin/index.php in this file to install successfully
*
* @license
* Permission is hereby granted, free of charge, to any person to
* use, copy, modify, distribute, sublicense, and/or sell copies
* of the Software, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software
*
* @warning
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESSED OR IMPLIED.
*
*/
// Counters
$changes = 0;
$writes = 0;
// Load class required for installation
require('ugrsr.class.php');
// Get directory two above installation directory
$opencart_path = realpath(dirname(__FILE__) . '/../../');
// Verify path is correct
if(!$opencart_path) die('COULD NOT DETERMINE CORRECT FILE PATH');
// Create new UGRSR class
$u = new UGRSR($opencart_path);
// remove the # before this to enable debugging info
#$u->debug = true;
// Set file searching to off
$u->file_search = false;
// Add both index files to files to include
$u->addFile('index.php');
// Pattern to add vqmod include
$u->addPattern('~// Startup~', '// VirtualQMOD
require_once(\'./vqmod/vqmod.php\'); ----------------------------------------LINHA 60
$vqmod = new VQMod();
// VQMODDED Startup');
$result = $u->run();
$writes += $result['writes'];
$changes += $result['changes'];
$u->clearPatterns();
$u->resetFileList();
// Rename the admin part of the text below if you've
// changed your admin folder name
$u->addFile('admin/index.php');
// Pattern to add vqmod include
$u->addPattern('~// Startup~', '//VirtualQMOD
require_once(\'../vqmod/vqmod.php\');
$vqmod = new VQMod();
// VQMODDED Startup');
$result = $u->run();
$writes += $result['writes'];
$changes += $result['changes'];
$u->addFile('index.php');
// Pattern to run required files through vqmod
$u->addPattern('/require_once\(DIR_SYSTEM \. \'([^\']+)\'\);/', 'require_once($vqmod->modCheck(DIR_SYSTEM . \'$1\'));');
// Get number of changes during run
$result = $u->run();
$writes += $result['writes'];
$changes += $result['changes'];
// output result to user
if(!$changes) die('VQMOD ALREADY INSTALLED!');
if($writes != 4) die('ONE OR MORE FILES COULD NOT BE WRITTEN');
die('VQMOD HAS BEEN INSTALLED ON YOUR SYSTEM!');
Peço encarecida e desesperadamente a ajuda de vocês!!