Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP4 // Apache 2.0 // mySQL not working as expected
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
P-man
n00b
n00b


Joined: 07 Mar 2005
Posts: 11

PostPosted: Wed Sep 21, 2005 10:45 pm    Post subject: PHP4 // Apache 2.0 // mySQL not working as expected Reply with quote

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
View user's profile Send private message
Ph0eniX
Guru
Guru


Joined: 24 Sep 2004
Posts: 502
Location: New York, U.S.

PostPosted: Thu Sep 22, 2005 1:34 am    Post subject: Re: PHP4 // Apache 2.0 // mySQL not working as expected Reply with quote

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
View user's profile Send private message
P-man
n00b
n00b


Joined: 07 Mar 2005
Posts: 11

PostPosted: Thu Sep 22, 2005 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ph0eniX
Guru
Guru


Joined: 24 Sep 2004
Posts: 502
Location: New York, U.S.

PostPosted: Thu Sep 22, 2005 5:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum