Koozali.org: home of the SME Server

TCExam (assessment, e-exam, CBT) Installation help

Offline ronaldson40

  • ****
  • 96
  • +0/-0
TCExam (assessment, e-exam, CBT) Installation help
« on: January 01, 2008, 01:14:58 PM »
Hi

We are planning to recruit some employees for our office. So we thought of testing them using some MCQ and other questions.

So I came across this product - TCExam which is basically a CBT software.
http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcexam

Their Minimum requirements are
Code: [Select]

    * A web server (e.g.: Apache [http://httpd.apache.org/], Microsoft® IIS [http://www.microsoft.com]).
    * PHP 5 (http://www.php.net) - required
    * The following libraries:
          o PHP GD Library 2.0.1 (http://www.boutell.com/gd) - required for true color images and plots
            This library will be installed with:
                + libpng 1.2.2 - PNG immages support
                + jpegsrc.v6b - JPEG images support
    * One of the following databases:
          o MySQL 4.1+ (http://www.mysql.com)
                + Please check the following link if you experienced authentication problems: http://dev.mysql.com/doc/mysql/en/Old_client.html
          o PostgreSQL 8+ (http://www.postgresql.org)
    * At least 20MB for the program files and 10MB for the database

For help with the installation and configuration of the web server and the required libraries please refer to the specific manuals.

The clients need to be equipped with a common web browser with XHTML 1.0 and JavaScript 1.2 support.

As per their site requirements, TCExam needs php5 to run.So I followed the instructions on the following site to install the CGI version of php5
http://sme.firewall-services.com/spip.php?article46

Now I have placed the TCExam folder (named as 'tc') in the html folder of the primary ibay.
i.e /home/e-smith/files/primary/html/tc/


In the custom templates folder for php5 (/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf), I have placed the following files
80php5-cgi 90tc

80php5-cgi contains:
Code: [Select]
ScriptAlias /php5-cgi /usr/bin/php5

<Directory /usr/bin/php5>
       order deny,allow
       deny from all
       allow from all
       Options ExecCGI
</Directory>

90tc has
Code: [Select]
<Directory /home/e-smith/files/primary/html/tc>
       AddHandler php5-cgi .php
       Action php5-cgi /php5-cgi/php
</Directory>



The install instructions are on this page
http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcexam_guide

Before I begin the install, they require me to add two lines to the php.ini in the /etc/php5/php.ini file, i.e
Code: [Select]
For the correct use of TCExam, PHP has to be configured to support the systems and libraries indicated above; Some parameters of PHP must also be set like this:

on php.ini

    * arg_separator.output = "&amp;"
    * magic_quotes_gpc = On


or in the Apache module (/etc/httpd/conf/httpd.conf):

<IfModule mod_php5.c>
php_value arg_separator.output "&amp;"
php_value magic_quotes_gpc On
</IfModule>

SO I added these lines.

Next I chmod -R 0777

Code: [Select]
    * install/
    * shared/config/tce_db_config.php
    * shared/config/tce_paths.php

Then I run the installation using the browser
http://192.168.1.2/tc/install/install.php
Where 192.168.1.2 is my SME



For my host URL I give http://192.168.1.2
For relative URL I give /tc/
For Absolute I give /home/e-smith/files/primary/html/tc/

Install goes well. I get all OK

Code: [Select]
TCExam 5 - Installation

This is the installation script of TCExam 5 by Tecnick.com S.r.l.

Please wait, this installation may take a while...

    * start TCExam installation............[OK]
    * start database installation.........[OK]
          o create or empty database........[OK]
          o create database tables.......... [OK]
          o fill tables with default data... [OK]
    * end database installation...........[OK]
    * start config files update...........[OK]
          o start process tce_db_config.php file:
                + open file.................[OK]
                + read file.................[OK]
                + update value 0 ...........[OK]
                + update value 1 ...........[OK]
                + update value 2 ...........[OK]
                + update value 3 ...........[OK]
                + update value 4 ...........[OK]
                + update value 5 ...........[OK]
                + update value 6 ...........[OK]
                + write file................[OK]
                + close file................[OK]
          o end process tce_db_config.php file
          o start process tce_paths.php file:
                + open file.................[OK]
                + read file.................[OK]
                + update value 0 ...........[OK]
                + update value 1 ...........[OK]
                + update value 2 ...........[OK]
                + update value 3 ...........[OK]
                + write file................[OK]
                + close file................[OK]
          o end process tce_paths.php file
    * end config files update.............[OK]
    * end TCExam installation..............[OK]

The automatic installation process is finished.

Now I go to the http://192.168.1.2/tc/admin/code/index.php page, I am getting a blank page
instead of a username and a password screen.

I have tried going through their forums, but they seemed too technical.
Some links I found
https://sourceforge.net/forum/message.php?msg_id=4258366
https://sourceforge.net/forum/message.php?msg_id=3761683

Can anyone advise, where I am going wrong?
« Last Edit: January 01, 2008, 01:17:08 PM by ronaldson40 »

Offline byte

  • *
  • 2,183
  • +2/-0
Re: TCExam (assessment, e-exam, CBT) Installation help
« Reply #1 on: January 01, 2008, 01:35:51 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: TCExam (assessment, e-exam, CBT) Installation help
« Reply #2 on: January 01, 2008, 01:42:47 PM »
Check your message logs for "open_basdir" errors. I am guessing you will have some that refer to that ibay/program. If you do check http://wiki.contribs.org/PHP#Open_basedir_restriction on how to fix it.

Bob
If you think you know whats going on, you obviously have no idea whats going on!

Offline ronaldson40

  • ****
  • 96
  • +0/-0
Re: TCExam (assessment, e-exam, CBT) Installation help
« Reply #3 on: January 01, 2008, 01:50:47 PM »
This is the message log under server-manager

Code: [Select]
Jan  1 15:38:48 datahub httpd: PHP Warning:  Wrong parameter count for set_error_handler() in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_functions_errmsg.php on line 144
Jan  1 15:38:48 datahub httpd: PHP Parse error:  parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_tmx.php on line 47
Jan  1 15:40:28 datahub httpd: PHP Warning:  Wrong parameter count for set_error_handler() in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_functions_errmsg.php on line 144
Jan  1 15:40:28 datahub httpd: PHP Parse error:  parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_tmx.php on line 47
Jan  1 15:40:29 datahub httpd: PHP Warning:  Wrong parameter count for set_error_handler() in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_functions_errmsg.php on line 144
Jan  1 15:40:29 datahub httpd: PHP Parse error:  parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_tmx.php on line 47
Jan  1 15:40:29 datahub httpd: PHP Warning:  Wrong parameter count for set_error_handler() in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_functions_errmsg.php on line 144
Jan  1 15:40:29 datahub httpd: PHP Parse error:  parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_tmx.php on line 47
Jan  1 15:40:30 datahub httpd: PHP Warning:  Wrong parameter count for set_error_handler() in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_functions_errmsg.php on line 144
Jan  1 15:40:30 datahub httpd: PHP Parse error:  parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_tmx.php on line 47
Jan  1 15:40:30 datahub httpd: PHP Warning:  Wrong parameter count for set_error_handler() in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_functions_errmsg.php on line 144
Jan  1 15:40:30 datahub httpd: PHP Parse error:  parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/e-smith/files/ibays/Primary/html/tc/shared/code/tce_tmx.php on line 47

These are the contents of the tce_tmx.php file
Code: [Select]
<?php
//============================================================+
// File name   : tce_tmx.php
// Begin       : 2004-10-19
// Last Update : 2007-04-30
// 
// Description : TMX-PHP Bridge Class
// Platform    : PHP 5
//
// Author: Nicola Asuni
// 
// (c) Copyright:
//               Nicola Asuni
//               Tecnick.com S.r.l.
//               ITALY
//               www.tecnick.com
//               info@tecnick.com
//============================================================+
 
/**
 * TMX-PHP Bridge Class (TMXResourceBundle).
 * @package com.tecnick.tmxphpbridge
 */
 
/**
 * This PHP Class reads resource text data directly from a TMX (XML) file.
 * First, the XMLTMXResourceBundle class instantiates itself with two parameters:
 * a TMX file name and a target language name. Then, using an XML parser, it
 * reads all of a translation unit's properties for the key information and
 * specified language data and populates the resource array with them (key -> value).
 *
 * @name TMXResourceBundle
 * @package com.tecnick.tmxphpbridge
 * @abstract TMX-PHP Bridge Class
 * @link http://tmxphpbridge.sourceforge.net
 * @license http://www.gnu.org/copyleft/lesser.html LGPL
 * @author Nicola Asuni [www.tecnick.com]
 * @copyright Copyright (c) 2004-2006 - Tecnick.com S.r.l (www.tecnick.com) - Via Ugo Foscolo n.19 - 09045 Quartu Sant'Elena (CA) - ITALY - www.tecnick.com - info@tecnick.com
 * @version 1.1.004
 */
class TMXResourceBundle {

/**
 * @var array Array used to contain key-translation couples.
 * @access private
 */
private $resource = array();

/**
 * @var string Current tu -> tuid value.
 * @access private
 */
private $current_key "";

/**
 * @var string Current data value.
 * @access private
 */
private $current_data "";

/**
 * @var string Current tuv -> xml:lang value.
 * @access private
 */
private $current_language "";

/**
 * @var boolean Is TRUE when we are inside a seg element
 * @access private
 */
private $segdata false;

/**
 * @var string ISO language identifier (a two- or three-letter code)
 * @access private
 */
private $language "";

/**
 * @var string filename for cache
 * @access private
 */
private $cachefile "";

/**
 * Class constructor.
 * @param string $tmxfile TMX (XML) file name
 * @param string $language ISO language identifier (a two- or three-letter code)
 * @param string $cachefile set filename for cache (leave blank to exclude cache)
 */
public function __construct($tmxfile$language$cachefile="") {
// reset array
$this->resource = array();
// set selecteed language
$this->language strtoupper($language);
// set filename for cache
$this->cachefile $cachefile;

if (file_exists($this->cachefile)) {
// read data from cache
require_once($this->cachefile);
$this->resource $tmx;
} else {
if (!empty($this->cachefile)) {
// open cache file
file_put_contents($this->cachefile"<"."?php\n".
"// CACHE FILE FOR LANGUAGE: ".substr($language,0,2)."\n".
"// DATE: ".date("Y-m-d H:i:s")."\n".
"// *** DELETE THIS FILE TO RELOAD DATA FROM TMX FILE ***\n"FILE_APPEND);
}

// creates a new XML parser to be used by the other XML functions
$this->parser xml_parser_create();
// the following function allows to use parser inside object
xml_set_object($this->parser$this);
// disable case-folding for this XML parser
xml_parser_set_option($this->parserXML_OPTION_CASE_FOLDING0);
// sets the element handler functions for the XML parser
xml_set_element_handler($this->parser"startElementHandler""endElementHandler");
// sets the character data handler function for the XML parser
xml_set_character_data_handler($this->parser"segContentHandler");
// start parsing an XML document
if(!xml_parse($this->parserfile_get_contents($tmxfile))) {
die(sprintf("ERROR TMXResourceBundle :: XML error: %s at line %d",
xml_error_string(xml_get_error_code($this->parser)),
xml_get_current_line_number($this->parser)));
}
// free this XML parser
xml_parser_free($this->parser);
if (!empty($this->cachefile)) {
// close cache file
file_put_contents($this->cachefile"\n\n// EOF ----------"."\n?".">"FILE_APPEND);
}
}
}

/**
 * Class destructor; resets $resource array.
 */
public function __destruct() {
$resource = array(); // reset resource array
}

/**
 * Sets the start element handler function for the XML parser parser.start_element_handler.
 * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler.
 * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters. 
 * @param array $attribs The third parameter, attribs, contains an associative array with the element's attributes (if any). The keys of this array are the attribute names, the values are the attribute values. Attribute names are case-folded on the same criteria as element names. Attribute values are not case-folded. The original order of the attributes can be retrieved by walking through attribs the normal way, using each(). The first key in the array was the first attribute, and so on. 
 * @access private
 */
private function startElementHandler($parser$name$attribs) {
switch(strtolower($name)) {
case 'tu': {
// translation unit element, unit father of every element to be translated. It can contain a unique identifier (tuid). 
if (array_key_exists('tuid'$attribs)) {
$this->current_key $attribs['tuid'];
}
break;
}
case 'tuv': {
// translation unit variant, unit that contains the language code of the translation (xml:lang)
if (array_key_exists('xml:lang'$attribs)) {
$this->current_language strtoupper($attribs['xml:lang']);
}
break;
}
case 'seg': {
// segment, it contains the translated text
$this->segdata true;
$this->current_data "";
break;
}
default: {
break;
}
}
}

/**
 * Sets the end element handler function for the XML parser parser.end_element_handler.
 * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler.
 * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters. 
 * @access private
 */
private function endElementHandler($parser$name) {
switch(strtolower($name)) {
case 'tu': {
// translation unit element, unit father of every element to be translated. It can contain a unique identifier (tuid). 
$this->current_key "";
break;
}
case 'tuv': {
// translation unit variant, unit that contains the language code of the translation (xml:lang)
$this->current_language "";
break;
}
case 'seg': {
// segment, it contains the translated text
$this->segdata false;
if (!empty($this->current_data) OR !array_key_exists($this->current_key$this->resource)) {
$this->resource[$this->current_key] = $this->current_data// set new array element
if (!empty($this->cachefile) AND ($this->current_language == $this->language)) {
// write element to cache file
file_put_contents($this->cachefile"\n$"."tmx['".$this->current_key."']=\"".str_replace("\"""\\\""$this->current_data)."\";"FILE_APPEND);
}
}
break;
}
default: {
break;
}
}
}

/**
 * Sets the character data handler function for the XML parser parser.handler.
 * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler.
 * @param string $data The second parameter, data, contains the character data as a string. 
 * @access private
 */
private function segContentHandler($parser$data) {
if ($this->segdata AND (strlen($this->current_key)>0) AND (strlen($this->current_language)>0)) {
// we are inside a seg element
if (strcasecmp($this->current_language$this->language) == 0) {
// we have reached the requested language translation
$this->current_data .= $data;
}
}
}

/**
 * Returns the resource array containing the translated word/sentences.
 * @return Array.
 */
public function getResource() {
return $this->resource;
}

// END OF CLASS

//============================================================+
// END OF FILE                                                 
//============================================================+
?>



Offline ronaldson40

  • ****
  • 96
  • +0/-0
Re: TCExam (assessment, e-exam, CBT) Installation help
« Reply #4 on: January 02, 2008, 12:03:09 PM »
I narrowed down the cause of the error.

In 90tc, the custom template Directory path was wrong.

Previously
Code: [Select]
<Directory /home/e-smith/files/primary/html/tc>
       AddHandler php5-cgi .php
       Action php5-cgi /php5-cgi/php
</Directory>

Now,
Code: [Select]
<Directory /home/e-smith/files/ibays/Primary/html/tc>
       AddHandler php5-cgi .php
       Action php5-cgi /php5-cgi/php
</Directory>

/ibays/ was missing. This is why TCExam was still seeing php4. In php5 set_error_handler() has one more extra parameter.

TCExam is now up and running.

Thanks for all the support


Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Re: TCExam (assessment, e-exam, CBT) Installation help
« Reply #5 on: January 18, 2008, 08:19:33 AM »
Hi all,

I am getting these error messages after installing TCExam on ibays.

Quote
: [2048] date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Manila' for 'PHT/8.0/no DST' instead | LINE: 108 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_tmx.php: [2] file_put_contents(/home/e-smith/files/ibays/tcexam/htmlcache/language_tmx_en.php) [function.file-put-contents]: failed to open stream: No such file or directory | LINE: 109 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_tmx.php: [2] file_get_contents(/home/e-smith/files/ibays/tcexam/htmlshared/config/lang/language_tmx.xml) [function.file-get-contents]: failed to open stream: No such file or directory | LINE: 123 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_tmx.php: [2] file_put_contents(/home/e-smith/files/ibays/tcexam/htmlcache/language_tmx_en.php) [function.file-put-contents]: failed to open stream: No such file or directory | LINE: 132 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_tmx.php: [8] Undefined index: t_public_index | LINE: 37 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/index.php: [8] Undefined index: hp_public_index | LINE: 38 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/index.php: [2048] date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Manila' for 'PHT/8.0/no DST' instead | LINE: 77 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_session.php: [2] session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_errmsg.php:81) | LINE: 194 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_session.php: [2] session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_errmsg.php:81) | LINE: 194 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_session.php: [2] Cannot modify header information - headers already sent by (output started at /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_errmsg.php:81) | LINE: 195 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_session.php: [2] Cannot modify header information - headers already sent by (output started at /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_errmsg.php:81) | LINE: 83 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_authorization.php: [2] Cannot modify header information - headers already sent by (output started at /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_errmsg.php:81) | LINE: 84 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_authorization.php: [8] Undefined index: m_login_wrong | LINE: 180 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_authorization.php: [8] Undefined index: t_login_form | LINE: 98 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_authorization.php: [8] Undefined index: a_meta_charset | LINE: 52 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [8] Undefined index: a_meta_language | LINE: 54 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [8] Undefined index: a_meta_language | LINE: 54 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [8] Undefined index: a_meta_dir | LINE: 54 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [8] Undefined index: a_meta_charset | LINE: 57 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [2] htmlspecialchars() [function.htmlspecialchars]: charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 | LINE: 57 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [8] Undefined index: a_meta_charset | LINE: 58 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [8] Undefined index: a_meta_charset | LINE: 60 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [2] htmlspecialchars() [function.htmlspecialchars]: charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 | LINE: 60 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [8] Undefined index: a_meta_charset | LINE: 61 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [2] htmlspecialchars() [function.htmlspecialchars]: charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 | LINE: 61 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [8] Undefined index: a_meta_charset | LINE: 62 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [2] htmlspecialchars() [function.htmlspecialchars]: charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 | LINE: 62 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [8] Undefined index: a_meta_charset | LINE: 63 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php: [2] htmlspecialchars() [function.htmlspecialchars]: charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 | LINE: 63 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/tce_xhtml_header.php

Please help.

Thanks,
Mike

Offline ronaldson40

  • ****
  • 96
  • +0/-0
Re: TCExam (assessment, e-exam, CBT) Installation help
« Reply #6 on: January 18, 2008, 11:19:38 AM »
First of all make sure your TCEXam is running on php5. You can do this by using the phpinfo() function in a empty php file and placing it in the TCEXam directory.

If your running on php5, then this error,

Code: [Select]
[2048] date() [function.date]: It is not safe to rely on the system's timezone settings.
Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set()
function. In case you used any of those methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected 'Asia/Manila' for 'PHT/8.0/no DST' instead |

can be overcome by modify your php.ini file under php5 (/etc/php5/php.ini) by inserting your appropriate timezone. Use the following link to find out how to.

http://www.webcheatsheet.com/PHP/install_and_configure.php#datesettings

Regards

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Re: TCExam (assessment, e-exam, CBT) Installation help
« Reply #7 on: January 18, 2008, 11:33:05 AM »
Thanks Ronaldson,

Here's the error now.

 [2] file_put_contents(/home/e-smith/files/ibays/tcexam/htmlcache/language_tmx_en.php) [function.file-put-contents]: failed to open stream: No such file or directory | LINE: 109 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_tmx.php: [2] file_get_contents(/home/e-smith/files/ibays/tcexam/htmlshared/config/lang/language_tmx.xml) [function.file-get-contents]: failed to open stream: No such file or directory | LINE: 123 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_tmx.php: [2] file_put_contents(/home/e-smith/files/ibays/tcexam/htmlcache/language_tmx_en.php) [function.file-put-contents]: failed to open stream: No such file or directory | LINE: 132 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_tmx.php: [8] Undefined index: t_public_index | LINE: 37 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/index.php: [8] Undefined index: hp_public_index | LINE: 38 | FILE: /home/e-smith/files/ibays/tcexam/html/public/code/index.php: [2] session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_errmsg.php:81) | LINE: 194 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_session.php: [2] session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_errmsg.php:81) | LINE: 194 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_session.php: [2] Cannot modify header information - headers already sent by (output started at /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_errmsg.php:81) | LINE: 195 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_session.php: [2] Cannot modify header information - headers already sent by (output started at /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_errmsg.php:81) | LINE: 83 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_authorization.php: [2] Cannot modify header information - headers already sent by (output started at /home/e-smith/files/ibays/tcexam/html/shared/code/tce_functions_errmsg.php:81) | LINE: 84 | FILE: /home/e-smith/files/ibays/tcexam/html/shared/code/tce_authorization.php

Offline ronaldson40

  • ****
  • 96
  • +0/-0
Re: TCExam (assessment, e-exam, CBT) Installation help
« Reply #8 on: January 18, 2008, 11:41:49 AM »

Code: [Select]
failed to open stream:

The most probable reason why this is happening is because you may not have set the permissions of the folders under question, properly.

In my case, I have used chmod 0755 on all my folders.... You can try chmod 0755 all your folder and their contents... and check if you get this error...

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Re: TCExam (assessment, e-exam, CBT) Installation help
« Reply #9 on: January 18, 2008, 11:46:50 AM »
Still same error.

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Re: TCExam (assessment, e-exam, CBT) Installation help
« Reply #10 on: January 18, 2008, 11:50:22 AM »
Hi Ronaldson,

It's working now!!! It just missed / on the path.

Best regards,
Mike

Offline ronaldson40

  • ****
  • 96
  • +0/-0
Re: TCExam (assessment, e-exam, CBT) Installation help
« Reply #11 on: January 18, 2008, 11:51:24 AM »
Thats great!!