|
From: Victor S. <vic...@gm...> - 2009-11-30 14:08:46
|
On Mon, Nov 30, 2009 at 3:08 PM, Victor Stone <vic...@gm...> wrote:
> to be honest, it's possible nobody has tried a ccHost install on Win
> for a few years.
>
> What you're describing below looks like a problem in the environment -
> as in: perhaps php is not 100% installed properly in apache. Instead
> of processing the php script it's just dumping index.php out to your
> screen. To be sure everything is good put file called info.php with
> the following:
>
> <? phpinfo(); ?>
>
> And then browse the /info.php to see everything is happy. Make sure
> there is a mysql section in the php info dump.
>
> VS
>
> On Mon, Nov 30, 2009 at 12:51 AM, Geoff <geo...@gm...> wrote:
>>
>> Hello,
>>
>> I previously setup cchost on ubuntu with your help. As soon as i upgraded the file you suggested it worked right away.
>> Now I am trying to get it going on a Win XP install and am having no luck. I installed php,mysql and apache manually (and as a test i tried with XAMPP) and all with same results.
>>
>> When i go to install i get a page of garbled text
>>
>> ""
>> ccHost has not been properly upgraded. Please follow these steps for a successful upgrade.'); } die('ccHost has not been properly installed. Please follow these steps for a successful setup.'); } /* * All ccHost includes require this define to prevent direct * web access to them. */ define('IN_CC_HOST', true); /* * The .cc-ban.txt file is written by doing 'Account Management' * from the user's profile. We don't assume that ccHost is * running under Apache, otherwise we would do this through * Deny in .htaccess */ if( file_exists('.cc-ban.txt') ) require_once('.cc-ban.txt'); /* * We make a special include for debug so that modules can turn * it on as quickly as possible. */ require_once('cchost_lib/cc-debug.php'); /* * Logging errors to a file this will help ccHost developers * when things go wrong on your site */ CCDebug::LogErrors( $cc_error_level ); /* * We catch errors and handle them according log file settings */ CCDebug::InstallErrorHandler(true); /* * Internaitionalization requires (for now) that gettext be * compiled into PHP */ if( !function_exists('gettext') ) require_once('cchost_lib/ccextras/cc-no-gettext.inc'); /* * Include core modules and extras that come with the * ccHost package */ require_once('cchost_lib/cc-includes.php'); $cc_extras_dirs = 'cchost_lib/ccextras'; include('cchost_lib/cc-inc-extras.php'); require_once('cchost_lib/cc-custom.php'); require_once('cchost_lib/cc-template-api.php'); /* * Configuration initialized here */ CCConfigs::Init(); /* * We don't want to encourage ccHost installations to have * their installation directories open to the public. We * check it here after Configs::Init because the admin can * disable the site while doing other work (like a SVN * update) */ if( file_exists('ccadmin') ) { die('' . _('ccHost installation is not complete.') . ' ' . _('For security reasons, you should rename "ccadmin".') . ''); } /* * Pick up 3rd party PHP modules */ if( !empty($CC_GLOBALS['extra-lib']) ) { $cc_extras_dirs = $CC_GLOBALS['extra-lib']; include('cchost_lib/cc-inc-extras.php'); } /* * User is logged in after this call */ CCUser::InitCurrentUser(); /* * Don't generate the page if the browser already has * the latest version */ cc_check_if_modified(); /* * Let all the modules know that config is set * and user has been logged in. */ CCEvents::Invoke(CC_EVENT_APP_INIT); /* * Process incoming URL */ CCEvents::PerformAction(); /* * Show the resulting page */ require_once('cchost_lib/cc-page.php'); CCPage::Show(); /* * Shut down the session */ CCDebug::InstallErrorHandler(false); CCEvents::Invoke(CC_EVENT_APP_DONE); ?>
>>
>> ""
>>
>> I click on link to follow steps and get a message at the top
>>
>> ""
>> ccHost has detected \'../cc-host-db.php\' exists. Please move this file out of the way before proceeding with visiting your current URL/path for successful installation. '); } chdir('..'); if( !empty($_REQUEST['rewritehelp']) ) get_rewrite_help(); $step = empty($_REQUEST['step']) ? '1' : $_REQUEST['step']; if( intval($step) == 4 ) { // we have to login before headers are sent do_login(); } $install_title = 'ccHost Installation'; include( dirname(__FILE__) . '/cc-install-head.php'); $stepfunc = 'step_' . $step; $stepfunc(); print(''); function step_1() { $v = split('\.',phpversion()); if( intval($v[0]) < 4 ) { $vmsg = "It doesn't look like you're running on PHP 4, you can't run ccHost until you upgrade."; } else { $vmsg = "It looks like you're running on a supported version of PHP"; } $id3suggest = $_SERVER['DOCUMENT_ROOT'] . '/getid3'; include( dirname(__FILE__) . '/cc-install-intro.php' ); } function step_1a() { ?>
>>
>> ""
>>
>> Also i remember from installing on ubuntu that page was formated nice and did not look like this. Also in the section that shows you your php.ini settings and the suggested values looks like this
>>
>> ""
>> etting NameDescriptionCurrent
>> ValueSuggested
>> Value
>> $n{$d['m']}
>>
>> You're almost done, there's one more step...
>>
>> ""
>>
>> I have a .pdf printout of the complete page - wasnt sure if i could attach here. Please help me get this going on XP
>>
>> PS -- the cHost has detected \'../cc-host-db.php\' exists. error (error #2) I searched everywhere for that file and can not find it
>> --
>> __________________
>> Violence breeds violence
>> we need a world court
>> not a republican with his hands covered in oil and military hardware lecturing us on world security!
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Cctools-cchost mailing list
>> Cct...@li...
>> https://lists.sourceforge.net/lists/listinfo/cctools-cchost
>>
>
|