Hi Guys,
I know that there has been a lot written about this already. But I have been beating myself for about 2 weeks (well during the evening), trying to do a first time install of Zencart 1.5.
I am running on a LAMP stack on Ubuntu 12.04. I have managed to configure Virtual Hosting to work. This is so that I can work with Joomla and Drupal for test sites and I was planning on doing the same with Zencart. Makes things a bit easier for me than having to hassle of using a test site online with all the permission issues etc..
Anyhow, I went through the install documentation and did everything mentioned pre-install - essentially renaming the dist-configure.php to configure.php. Hit the URL and got presented with the install screen. However when I click the hyperlink "click here to begin installation" (prosume that will install it for me) I get the following error:
Code:
ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing.
I saw the post up on the ubuntu forum (http://ubuntuforums.org/showthread.php?t=1703807) as well as the one on the zen forum (http://www.zen-cart.com/showthread.p...-date-timezone).
I have tried at length to go through these, but they don't seem to make any difference. As near as I can see it I have set the date.timezone setting. I even went to the length of dumping a small file which runs the function to see what I set. This shows the default timezone set as "Europe/London". As far as I can see it I have set it correctly in the php.ini (located at /etc/php5/apache2), I set it to:
Code:
date.timezone = "europe/London"
I have also tried adding it in the application_top.php file under zencart/includes. I included it in the file as follows:
Code:
<?php
/**
* application_top.php Common actions carried out at the start of each page invocation.
*
* Initializes common classes & methods. Controlled by an array which describes
* the elements to be initialised and the order in which that happens.
* see {@link http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details.
*
* @package initSystem
* @copyright Copyright 2003-2011 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: application_top.php 19731 2011-10-09 17:20:30Z wilt $
*/
/**
* inoculate against hack attempts which waste CPU cycles
*/
@ini_set('date.timezone', 'Europe/London');
$contaminated = (isset($_FILES['GLOBALS']) || isset($_REQUEST['GLOBALS'])) ? true : false;
$paramsToAvoid = array('GLOBALS', '_COOKIE', '_ENV', '_FILES', '_GET', '_POST', '_REQUEST', '_SERVER', '_SESSION', 'HTTP_COOKIE_VARS', 'HTTP_ENV_VARS', 'HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_POST_FILES', 'HTTP_RAW_POST_DATA', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS');
$paramsToAvoid[] = 'autoLoadConfig';
$paramsToAvoid[] = 'mosConfig_absolute_path';
$paramsToAvoid[] = 'hash';
$paramsToAvoid[] = 'main';
Has anyone got any ideas where I am going wrong or any log files I could try looking in? I attached a few screendumps to kinda show that I am not making it all up!
I would appreciate any help in advance because this is really starting to do my head in.
I like to think that I reasonably technically proffiant, I have moved and clonded drupal installs easily, and I have done the same thing with Joomla and I am not affraid to get my hands dirty. Beginning to doubt myself a lot at the moment...
...anyhow, thanks in advance of any posts / suggestions.
Mark.
Bookmarks