User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,607 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,492 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1174 | Replies: 3
Reply
Join Date: Nov 2007
Posts: 2
Reputation: shackow is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
shackow shackow is offline Offline
Newbie Poster

doc root in windows virtual hosting

  #1  
Nov 8th, 2007
i try to install software called kbpublisher on my website and i need "document root" to configar
this software
www.basma.sy/db

thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Location: Budapest
Posts: 252
Reputation: fatihpiristine has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 14
fatihpiristine's Avatar
fatihpiristine fatihpiristine is offline Offline
Posting Whiz in Training

Re: doc root in windows virtual hosting

  #2  
Nov 8th, 2007
check it in control panel.. or prepare a php file and set the error_reporting E_ALL n do some mistake on the page n it ll be able to see full path of ur website
Reply With Quote  
Join Date: Sep 2007
Location: Buenos Aires
Posts: 30
Reputation: chmazur is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
chmazur's Avatar
chmazur chmazur is offline Offline
Light Poster

Re: doc root in windows virtual hosting

  #3  
Nov 8th, 2007
Can you copy the 'config.inc.php' script??

ch.-
Reply With Quote  
Join Date: Nov 2007
Posts: 2
Reputation: shackow is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
shackow shackow is offline Offline
Newbie Poster

Re: doc root in windows virtual hosting

  #4  
Nov 10th, 2007
<?php
// +---------------------------------------------------------------------------+
// | This file is part of the KnowledgebasePublisher package |
// | KnowledgebasePublisher - web based knowledgebase publisher tool |
// | |
// | Author: Evgeny Leontev <eleontev@gmail.com> |
// | Copyright (c) 2005 Evgeny Leontev |
// | |
// | For the full copyright and license information, please view the LICENSE |
// | file that was distributed with this source code. |
// +---------------------------------------------------------------------------+


/* GENERAL */
$conf['db_host'] = "localhost";
$conf['db_base'] = "kb";
$conf['db_user'] = "root";
$conf['db_pass'] = "";
$conf['db_driver'] = "mysql"; // no other were tested
$conf['tbl_pref'] = 's_';

$conf['session_name'] = 'gdfrtsvfdr'; // session name for admin area
$conf['lang'] = 'en'; // see admin/lang/ - for available languages
// or check on http://sourceforge.net/projects/kbpublisher


/* PATHS */
// if you need write this manually, may required on windows or for cron jobs
//$_SERVER['DOCUMENT_ROOT'] = 'c:/Inetpub/wwwroot';
//$_SERVER['HTTP_HOST'] = 'domain.com'

// admin path
$conf['home_dir'] = '/kb/admin/'; // path to admin dir without DOCUMENT_ROOT

// client path
$conf['client_home_dir'] = '/kb/'; // path to kb dir without DOCUMENT_ROOT
$conf['fck_upload_dir'] = '/kb_upload/'; // where FCK editor place uploaded images (relative to DOCUMENT_ROOT)

// extra path
$conf['extra_home_dir'] = '/kb_extra/';


/* OTHERS */ // some configs 1 = yes, 0 = no
$conf['debug_info'] = 0; // display $_GET, $_SESSION, $_POST and also set displaying all errors
$conf['debug_speed'] = 0; // display page generating speed
$conf['debug_db'] = 0; // display all sent sql (adodb format)
$conf['demo_mode'] = 0; //


$conf['app_width'] = '980'; // main box width you can use % (in admin).
$conf['auth_check_ip'] = 0; // on every request ip will be checked with saved one on login
$conf['auth_expired'] = 60; // time in minutes after that if no activity authentication will be deleted (in admin)
$conf['use_https'] = 0; // not tested
$conf['limit'] = 10; // default records per page (in admin)
$conf['limit_range'] = array(10, 20, 40); // default limit range per page (in admin)


$conf['use_mod_rewrite'] = 0; // this force client side to use "Search engine friendly URL"
// it should work automatically but if does not try set it to 1


/* IN MOST CASES THERE IS NO NEED TO EDIT ANYTHING BELOW THIS LINE */
/* --------------------------------------------------------------- */

/* PATHS */
// admin path
$conf['root_dir'] = $_SERVER['DOCUMENT_ROOT'] . $conf['home_dir'];
$conf['home_path'] = 'http://' . $_SERVER['HTTP_HOST'] . $conf['home_dir'];

// client path
$conf['client_root_dir'] = $_SERVER['DOCUMENT_ROOT'] . $conf['client_home_dir'];
$conf['client_home_path'] = 'http://' . $_SERVER['HTTP_HOST'] . $conf['client_home_dir'];
$conf['site_address'] = $_SERVER['HTTP_HOST'];

// extra path
$conf['extra_root_dir'] = $_SERVER['DOCUMENT_ROOT'] . $conf['extra_home_dir'];
$conf['php_path'] = '/usr/local/bin/php'; // probably could be required in cron job for example


$win = (substr(PHP_OS, 0, 3) == "WIN");
$include_separator = ($win) ? ';' : ':';
$include_path = array();


/* DON'T MODIFY */
$conf['product_name'] = 'KBPublisher';
$conf['product_www'] = 'http://www.kbpublisher.com/';
$conf['product_version'] = '2.0.1';
$conf['home_path'] = ($conf['use_https']) ? str_replace('http', 'https', $conf['home_path']) : $conf['home_path'];

// in some cases we have double slash
$conf['root_dir'] = str_replace('//', '/', $conf['root_dir']);
$conf['client_root_dir'] = str_replace('//', '/', $conf['client_root_dir']);
$conf['extra_root_dir'] = str_replace('//', '/', $conf['extra_root_dir']);


define('APP_ROOT_DIR', $conf['root_dir']);
define('APP_HOME_PATH', $conf['home_path']);

define('APP_CLIENT_DIR', $conf['client_root_dir']);
define('APP_CLIENT_PATH', $conf['client_home_path']);
define('APP_SITE_ADDRESS', $conf['site_address']);

define('APP_LIB_DIR', $conf['root_dir'] . 'lib/');
define('APP_MODULE_DIR', $conf['root_dir'] . 'modules/');
define('APP_TMPL_DIR', $conf['root_dir'] . 'template/');
define('APP_EMAI_TMPL_DIR', $conf['root_dir'] . 'template_email/');
define('APP_CACHE_DIR', $conf['root_dir'] . 'cache/');

define('APP_LANG', $conf['lang']);
define('APP_MSG_DIR', $conf['root_dir'] . 'lang/');
define('APP_MSG_LANG_DIR', $conf['root_dir'] . 'lang/'.$conf['lang'].'/');

define('APP_DEMO_MODE', $conf['demo_mode']);

define('APP_EXTRA_MODULE_DIR', $conf['extra_root_dir']);



$include_path[] = ini_get('include_path');
$include_path[] = APP_LIB_DIR;
$include_path[] = APP_LIB_DIR . 'Pear';

ini_set('include_path', implode($include_separator, $include_path));
ini_set('display_errors', 1);
//ini_set('arg_separator.output', '&amp;');

if($conf['debug_info']) {
ini_set('error_reporting', E_ALL);
} else {
//ini_set('display_errors', 0);
ini_set('error_reporting', E_ALL ^ E_NOTICE);
//ini_set('error_reporting', E_ALL ^ (E_NOTICE | E_WARNING));
//ini_set('error_reporting', E_ALL ^ (E_ERROR | E_WARNING | E_PARSE | E_NOTICE));
}
?>
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 7:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC