View previous topic :: View next topic |
Author |
Message |
P-man n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Mar 2005 Posts: 11
|
Posted: Wed Sep 21, 2005 10:45 pm Post subject: PHP4 // Apache 2.0 // mySQL not working as expected |
|
|
This is most obviously an inner networking issue. I know this and will freely admit it.
Here are my stats:
Apache/2.0.54
mysqladmin Ver 8.40 Distrib 4.0.25, for pc-linux-gnu on x86_64
PHP 4.4.0 (cli) (built: Sep 11 2005 10:03:17)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
I have a router with IP address 216.xxx.xxx.xxx on the outside and 192.168.1.1 on the inside.
Port forwarding is turned on to forward my web port (let us call it 80?) to my internal machine. 192.168.1.244
I can connect to my Apache service running on port 80 and even connect to my phpBB boards and phpmyadmin. I can hit the initial php page but when I try and change pages from the initial page from my php based boards it tries to route any external machine (not on local LAN) to 192.168.1.244 as opposed to my 216 address. This of course will always fail from the internet.
I am feeling this is a php variable I am missing or is not passing properly but am not sure what I am missing.
This should be an easy one. Any ideas?
Thanks,
P-man |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ph0eniX Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/103802685344eb685847e81.jpg)
Joined: 24 Sep 2004 Posts: 502 Location: New York, U.S.
|
Posted: Thu Sep 22, 2005 1:34 am Post subject: Re: PHP4 // Apache 2.0 // mySQL not working as expected |
|
|
That's because the links in in your pages are using absolute paths rather than relative paths. It's a design issue. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
P-man n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Mar 2005 Posts: 11
|
Posted: Thu Sep 22, 2005 2:06 pm Post subject: |
|
|
That seems kinda silly that phpBB out of the box would use hard links to my server. I will investigate further. thank you! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ph0eniX Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/103802685344eb685847e81.jpg)
Joined: 24 Sep 2004 Posts: 502 Location: New York, U.S.
|
Posted: Thu Sep 22, 2005 5:22 pm Post subject: |
|
|
I've never used phpBB so I can't tell you but look at the URL of the links while you're on the LAN. If they have the hostname or local IP address of the server then there you go. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|