Forums / Installing on a Linux/Unix Server / Page layout different on remote computer

Page layout different on remote computer

Locked
Results 1 to 20 of 23
This thread is locked. New replies are disabled.
28 Jan 2010, 19:30
#1
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Page layout different on remote computer

Running Latest Zen-Cart on RHEL5 with latest MySQL etc....

Everything installed just fine and I can get to Admin and Shopping cart on the Linux box itself. However, when trying to access the same using a different computer on the LAN, I get either a blank page or cannot be found.

Installed to /var/www/html/Zen and all files and folders are under Zen. I tried to copy the index.php over to /var/www/html but no dice. Renamed the index.php to index.html and got the actual text within the index.html/php file.

If I leave the /var/www/html folder empty, I do get the Apache welcome screen.

What might I be missing?

Thx
28 Jan 2010, 19:33
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Page layout different on remote computer

Was rhis installed to a domain name?
What manager do you have for virtual host additions
28 Jan 2010, 19:40
#3
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Re: Page layout different on remote computer

kobra:

Was rhis installed to a domain name?
What manager do you have for virtual host additions



I did not install this to a domain name as I was just trying this out to see if I COULD install without any major glitches before I go live. :)


As far as I know, I haven't installed any manager for virtual host additions. I guess that makes perfect sense...

What is a good virtual host manager to use on RHEL5?

DUH!!!!

Ok, it has been many years since I worked with the Apache virtual host conf... I can't remember (Senior Moment) how to get to the html config page in order to configure the virtual hosts..
28 Jan 2010, 19:59
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Page layout different on remote computer

I did not install this to a domain name as I was just trying this out to see if I COULD install without any major glitches before I go live. :)

check the /includes/configure.php file for where this was setup/installed
  // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
  // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
  define('HTTP_SERVER', 'http://www.???????????.com');
  define('HTTPS_SERVER', 'https://www.???????????.com');

been many years since I worked with the Apache virtual host conf.

shell in as root and I believe this is at /etc
28 Jan 2010, 21:52
#5
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Re: Page layout different on remote computer

Isn't there a gui that is included with Apache?
29 Jan 2010, 16:20
#6
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Re: Page layout different on remote computer

Not sure where I need to be with regards to this post but, When I open either the admin or the customer pages on the server itself, everything looks great. When I go to the virtual site from a remote computer, all I see is a basic text layout on any browser.


Latest version of Zen Cart, RHEL5, Latest MySQL. Set the security like the instructions stated.

This is probably something stupid but I'm asking anyway..

Thanks in advance..

Z
29 Jan 2010, 16:29
#7
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,564
Plugin Contributions:
0

Re: Page layout different on remote computer

The URL?
29 Jan 2010, 16:41
#8
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Re: Page layout different on remote computer

Right now, I have this on a local LAN. I am able to call the site up an any browser and on any machine. However, I am not getting the pretty graphics. I am only getting the pretty graphics on the server.

My virtual host is testsite.shamrockcom.cc and internal DNS is properly resolving on the LAN. Once I have this issue resolved, I'll make it public..


Hope I answered your question.
29 Jan 2010, 17:30
#9
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Re: Page layout different on remote computer

It is almost like the permissions are off somehow. I've gone through and set everything for 777 and 644 as directed but no dice.
29 Jan 2010, 19:43
#10
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Re: Page layout different on remote computer

Apache Virtual host resolves internally to catalog.domain.com. RHEL5 Zen Cart Host displays all pages correctly. Other client computers using any other browser display only text and links. No pictures or anything else.

When I click on any link on the main page through the client system on the LAN, I get the error:

HTTP Status 404 - /Zen/index.php

type Status report

message /Zen/index.php

description The requested resource (/Zen/index.php) is not available.


I have tried to edit the httpd.conf using the AllowOverride Limit without any luck and I have gone through and set the permissions as directed. It seems to me that there is somewhere a perm issue but I am not sure where else to look.

Any ideas would be a great help.

Thanks:(
29 Jan 2010, 20:04
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Page layout different on remote computer

MODERATOR NOTE: Your multiple threads on the same topic have been merged into one.
29 Jan 2010, 20:09
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Page layout different on remote computer

You need:
a) name resolution working properly so *all* computers everywhere can see the server and its domains
b) server configured to use the domain name in your vhost
c) your Zen Cart configure.php files set to use the publicly-reachable domain name

http://www.zen-cart.com/forum/showthread.php?t=146848

If you're looking for help in properly setting up a homespun webserver to run websites either casually or professionally, I suggest taking that discussion to a forum which specializes on that topic, like webhostingtalk.com

The only part of your problem that's related to Zen Cart is the configure.php files needing the correct publicly-accessible domain name.
29 Jan 2010, 20:25
#13
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Re: Page layout different on remote computer

DrByte:

You need:
a) name resolution working properly so *all* computers everywhere can see the server and its domains
b) server configured to use the domain name in your vhost
c) your Zen Cart configure.php files set to use the publicly-reachable domain name

http://www.zen-cart.com/forum/showthread.php?t=146848

If you're looking for help in properly setting up a homespun webserver to run websites either casually or professionally, I suggest taking that discussion to a forum which specializes on that topic, like webhostingtalk.com

The only part of your problem that's related to Zen Cart is the configure.php files needing the correct publicly-accessible domain name.


Name resolution is working properly as I can hit the ZenCart server by FQDN from any computer. (catalog.domain.com)

Virtual server is configured to use vhost name.

Where in the configure.php do I need to edit the server statement?
29 Jan 2010, 20:27
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Page layout different on remote computer

If you look in the file, you'll see that the first define in the file is for HTTP_SERVER, which has the domain name that your Zen Cart is setting in all its URL links.
29 Jan 2010, 20:33
#15
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Re: Page layout different on remote computer

Ok,

I edited both configure.php files and restarted Apache. is there anything else I should restart? Not sure where to restart Zen Cart.
29 Jan 2010, 20:34
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Page layout different on remote computer

There is no "restart" for Zen Cart. None is needed. Nor is it necessary to restart Apache when editing Zen Cart files.
29 Jan 2010, 20:38
#17
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Re: Page layout different on remote computer

Ok, I wasn't sure..
29 Jan 2010, 20:45
#18
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Re: Page layout different on remote computer

So, the only configure.php that I need to edit would be the store version, correct?
29 Jan 2010, 20:55
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Page layout different on remote computer

As you can see by actually looking at the 2 configure.php files there are 6 places where you need to have reachable URLs depending on whether you're using SSL or not.
In the non-admin configure.php file there is HTTP_SERVER and HTTPS_SERVER
In the admin configure.php file there are four HTTPx_xxxx_SERVER settings.

Set all according to your intended use.

Normally, if you install Zen Cart by actually using the domain name you're using on the server, those values will all be automatically set appropriately as a result of your answers to the questions asked during the zc_install installation/setup process.
If you change your server configuration, including vhosts and domain names, after you've installed Zen Cart, you'll need to manually edit those settings yourself.
29 Jan 2010, 21:03
#20
zombie63 avatar

zombie63

New Zenner

Join Date:
Jan 2010
Posts:
15
Plugin Contributions:
0

Re: Page layout different on remote computer

Copy that... Is there supposed to be an "AllowOverride Limit" under the vhost config in Apache?

Is the .htaccess file only accessable through an ftp client? Couldn't see that file to rename with hopes that it would resolve my issue.


Thanks