1
r0ny01
I can see the portal fine locally but I have problem viewing it remotely
  • 2004/9/23 15:07

  • r0ny01

  • Just popping in

  • Posts: 3

  • Since: 2004/9/23


Hi, first of all congrats XOOPS for making such a fine php portal. I am having trouble viewing the portal remotely I get like an html page with a button and the information all located on the left of the window I am using:

Slackware 10 Linux 2.4.26
PHP 4.3.7
Mysql 4.0.20
Apache 1.3.31

hope you can help! thanks!

2
wcrwcr
Re: I can see the portal fine locally but I have problem viewing it remotely
  • 2004/9/23 15:23

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi r0ny01

Could you be a little bit more especific, so the people will help for shure

Did you also look at the left on the "Xoops Documentation" section?

Waiting.......
Regards

3
r0ny01
Re: I can see the portal fine locally but I have problem viewing it remotely
  • 2004/9/23 15:59

  • r0ny01

  • Just popping in

  • Posts: 3

  • Since: 2004/9/23


Thanks for the fast reply
well I can see the portal locally as in http://localhost/html/
but when I try to access remotely from home through the ip I can't see it in php all I see is html code with a button.
I currently am on a network and when I access it from another computer on this network the same happens. I'm gonna post screenshots so you guys can see what the problem is.
local XOOPS screenshot
lan & remote XOOPS screenshot
PD. it has nothing to do with the port because I checked every config file on my apache and php also I can see the same on windows and on linux (my home) from the lan-xoops.png picture
hope you or someone can help thanks!

4
sbkiller
Re: I can see the portal fine locally but I have problem viewing it remotely
  • 2004/9/23 16:10

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Remember, php code will never able to run on client side. You need to run it on the server side. Try XSAS

5
sbkiller
Re: I can see the portal fine locally but I have problem viewing it remotely
  • 2004/9/23 16:13

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Linux can run with the apache, php 5 etc.

But windows doesn't have those things, you could be you need it to be running in the background.

6
r0ny01
Re: I can see the portal fine locally but I have problem viewing it remotely
  • 2004/9/23 17:15

  • r0ny01

  • Just popping in

  • Posts: 3

  • Since: 2004/9/23


errr
I am trying to access it remotely see for yourself that it's very different on the screenshots on the lan screenshot I'm trying to access THE server which is 192.168.1.58 and I get the same page as if I was accesing it remotely let's say, my home for example. the windows machine is not running it locally it's trying to access via the network the index.php
thanks

7
wcrwcr
Re: I can see the portal fine locally but I have problem viewing it remotely
  • 2004/9/23 21:16

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi r0ny01

I?m not a lan/php/ etc guru, but looking to your screenshots, seems to me that is something wrong with the render process of your templates.

It seems that must be something wrong with your server installation trhat could be breaking your "outside" connections. Did you find anything wierd with .htacces file or something like this?


Sorry for my lack of assistence.

Good luck

8
cklee
Re: I can see the portal fine locally but I have problem viewing it remotely
  • 2004/9/24 1:53

  • cklee

  • Just popping in

  • Posts: 1

  • Since: 2004/9/24


I suspect your XOOPS_URL in mainfile.php is defined wrongly.
for instant, if you define XOOPS_URL as "http://localhost/html", you may face some broken links for images, css etc. Do a "View Source" on your remote machine you will be able to see that.

try to edit the XOOPS_URL in mainfile.php as below:
define('XOOPS_URL', "http://".$_SERVER['HTTP_HOST']."/html");

and try again.


Chee Kean

9
DonXoop
Re: I can see the portal fine locally but I have problem viewing it remotely

Correct. It is the mainfile.php setting for XOOPS_URL. I can't see your sample pics but by the description this is your problem.

You can visualize the problem when you are on any machine other than the server. All the internal links in XOOPS are referring to http://localhost/xxxxxxx which is your current machine, not the remote XOOPS server.

This is a DNS issue. Change the mainfile.php config from localhost to a real host name (http://www.yourdomain.com or whatever). From the internet this hostname must resolve to the internet IP of your firewall/router (you do have a firewall between the internet and everything inside right?). From inside your local network this hostname must resolve to the internal IP of the server (192.168.x.x or whatever).

You can use a regular DNS and a dummy DNS on the inside or the Hosts file of the inside machine(s).

If you only have one web server process then you're done. If you run multiple VirtualHosts at the server then its config must match as well.

10
wcrwcr
Re: I can see the portal fine locally but I have problem viewing it remotely
  • 2004/9/24 3:45

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi all
Coming back, trying to learn.

Nice tip.

Thanks too

Login

Who's Online

203 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits