LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 06-17-2004, 03:11 AM   #1
sy-co
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake
Posts: 28

Rep: Reputation: 15
Viewing apache via router (unresolved)


Hi

Apache (with php) is running, mysql is running, proftpd is running all starting on boot. There is no problem viewing files on apache locally

I am using a router with the apache server on 192.168.1.11 and a winME box on 192.168.1.245

I cant connect via FTP to 192.168.1.11 from the windows box neither can I see any of the files on apache.

Anyideas what I'm still to do?

Cheers

Last edited by sy-co; 06-18-2004 at 06:34 AM.
 
Old 06-17-2004, 04:11 AM   #2
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
Re: Viewing apache via router

Is any firewall in the way? Can you

$ ping 192.168.1.245 (ping winmebox)

or

C:\> ping 192.168.1.11 (ping linuxbox)

Is the FTP working locally on the linux box? Can you

$ ftp localhost

Steve
 
Old 06-17-2004, 07:33 AM   #3
sy-co
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake
Posts: 28

Original Poster
Rep: Reputation: 15
Hi steve here's the info.

no can ping from linux to windows

PING 192.168.1.245 (192.168.1.245) 56(84) bytes of data.
From 192.168.1.12 icmp_seq=1 Destination Host Unreachable

Ping from windows to linux ok (ping 192.168.1.11)

4packets sent 4 packets recieved in 0ms

Ftp server running

[s@localhost s]$ ftp localhost
Connected to localhost.
220 localhost FTP server ready
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (localhost:s):

Cheers
 
Old 06-17-2004, 08:16 AM   #4
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
Right, I imagine a firewall is blocking incomming packets to your Windows machine, it may be doing much more. Try turning of your firewall (disconnect your router from the internet if you wish) and try pointing your web browser again at

192.168.1.11:80

As for your FTP, it seems that it is not working properly at all, but I've never used an FTPD on linux, sorry :(. You may want to ask seperately about getting your FTP working.

Also, if you don't mind, try forwarding port 80 from your router and seeing if people on the outside can see your apache webpage :)?

Steve
 
Old 06-18-2004, 05:13 AM   #5
sy-co
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake
Posts: 28

Original Poster
Rep: Reputation: 15
There's no firewall, also tried disconnecting the router, still no luck.

192.168.1.11:80 give error message

'the connection was refused while attempting to contact 192.168.1.11'

I can view apache on http://localhost on the linux box only.

I had this set up and working when using MDK 9.2 and the router didn't need any adjustments so I presume the ports are being forwarded correctly by default. Bit tricky to check as I live in Japan and its all in Kanji. I've become very familiar with altavistas bablefish recently!! Like I say the router didn't require any setting changes before upgrading to MDK 10.

I tried viewing from outside but the server doesn't show.

The FTP server appears to be ok but as I can't connect to it I can't be sure. If the FTP problem still exists after I'm able to view the server from the windows box then I'll post another thread.

I just need to connect to the server from somewhere other than localhost first.

Cheers
 
Old 06-18-2004, 07:04 AM   #6
sy-co
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake
Posts: 28

Original Poster
Rep: Reputation: 15
I have discovered that I can view the linux bow from the windows box on

192.168.1.12

The router says its 192.168.1.11 so I've no idea why it should be .12 It was .11 the last time I got this to work.

Now when I view 198.192.1.12 I can only see the default apache index page. I cant see any of the folders from the windows box but I can on http://localhost on the linux box.

any ideas why?

can't connect to ftp either.
 
Old 06-20-2004, 04:12 PM   #7
edcutis
Member
 
Registered: Jun 2003
Location: USA, Missouri
Distribution: mandriva , Kubuntu, MEPIS
Posts: 140

Rep: Reputation: 15
Try opening the Mandrake Control center, click the security button, click firewall, and select "everything (no firewall)" Try it, then if it works, go back in and select Web Server and FTP as your only two services.

Remember to only allow thru the services you actually use. Close all the others.

As for your router, are you really sure "port forwarding" is opened up on port 80? Sometimes routers dump their settings when you accidentally press the reset button when picking up the box. I feel like taking the stupid button off with some pliers...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble viewing .php on local apache server using Mozilla shortname Linux - Software 2 03-25-2005 03:07 PM
Apache/php4 - disabling direct viewing of text files Paiway Linux - Networking 1 02-21-2005 10:09 PM
Apache behind linksys router :( neyoung Linux - Networking 6 02-01-2004 05:52 PM
Apache behind router? Shade Linux - Networking 12 09-08-2003 02:38 AM
About apache setup and router vlk72 Linux - Software 5 01-24-2003 10:41 AM


All times are GMT -5. The time now is 11:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration