Zen Cart Logo
Forums / Installing on a Windows Server / Zen Cart will work with Xitami Webserver!

Zen Cart will work with Xitami Webserver!

Locked

Views: 2,006

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Mar 2007, 3:59 PM
#1
vpelss avatar

vpelss

New Zenner

Join Date:
Mar 2007
Posts:
1
Plugin Contributions:
0

Zen Cart will work with Xitami Webserver!

Zen Cart works with Xitami. However the install portion of the script fails with Xitami for the following reason:
(This is from PHP help file under 'header'.)

Note: HTTP/1.1 requires an absolute URI as argument to Location: including the scheme, hostname and absolute path, but some clients accept relative URIs. You can usually use $_SERVER['HTTP_HOST'], $_SERVER['PHP_SELF'] and dirname() to make an absolute URI from a relative one yourself:

<?php /* Redirect to a different page in the current directory that was requested */ $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $extra = 'mypage.php'; header("Location: http://$host$uri/$extra"); exit; ?>

Basicaly Xitami is failing because the header_php.php files under \zc_install\includes\modules\pages\ all use relative paths vice absolute when using PHP's header command.


My fix is:

Using a grep program, replace all files containing
"header('location: "
(trailing space is important!)

in the directory
\zc_install\includes\modules\pages\

with

$host = $_SERVER['HTTP_HOST'];$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\');header("Location: http://$host$uri/

Then you must change the closing ' character near the end of each line with a " character to match the opening character!

Maybe the Zen Cart team could make this a part of there next version?

http://www.emogic.com

4 Nov 2007, 2:00 AM
#2
weluvparrots avatar

weluvparrots

New Zenner

Join Date:
Nov 2007
Posts:
1
Plugin Contributions:
0

Re: Zen Cart will work with Xitami Webserver!

Well, I would like to try the Zen Cart, however, I purchased something off of, https://www.emogic.com and I was ripped off. If Zen Cart has anything to do with emogic.com or the Scriptman. I will just have to stay clear. :cry:

4 Nov 2007, 2:19 AM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,643
Plugin Contributions:
0

Re: Zen Cart will work with Xitami Webserver!

Many people use the free program and we, the Zen Cart developers have no interest in, or association with the shops using the software. I am sorry you have had a problem.