LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Please, I need help setting up the FEDORA 20 server? unable to access server (https://www.linuxquestions.org/questions/linux-newbie-8/please-i-need-help-setting-up-the-fedora-20-server-unable-to-access-server-4175497444/)

cyberdome 03-07-2014 07:10 PM

Please, I need help setting up the FEDORA 20 server? unable to access server
 
I have configured everything on my FEDORA 20 server.

I have installed LAMP.

apache, mysql, and php, I have all the services runnig.

My laptop is in the same network with the Fedora server. when I type in the local IP 192.168 on my laptop browser. I can't access the web files stored on my server.

I am unable to access the web pages from my laptop on the browser?

In my Router I have forwarded port 80.

I have so confused.

I have already got a domain name from no-ip website.

I am so confused. I don't know what else could be wrong.
what am I doing please, any help is appreciated.

RockDoctor 03-08-2014 07:54 AM

Assuming you're running Apache on port 80 of the server, is port 80 open in the server's firewall?

btmiller 03-08-2014 09:18 AM

Also, 192.168 is not an IP address -- an IPv4 address has 4 octets, e.g. 192.168.1.2.

Please check the results of "ifconfig -a" and "iptables -L" on the server (the latter checks if a firewall is running). Can you connect to the server via port 22 for SSH?

cyberdome 03-08-2014 10:54 AM

Quote:

Originally Posted by btmiller (Post 5131099)
Also, 192.168 is not an IP address -- an IPv4 address has 4 octets, e.g. 192.168.1.2.

Please check the results of "ifconfig -a" and "iptables -L" on the server (the latter checks if a firewall is running). Can you connect to the server via port 22 for SSH?

Sorry, that was a typo, it is actually 192.168.1.5 on the server. ifconfig displays correct internal LAN IP 192.168.1.15 gateway 192.168.1.1. I can access the web pages locally via localhost or 127.0.0.1. but unable to access externally. Definitely something with the Iptables. where is the Iptables file located in the FEDORA 20 server. I tried doing cat iptables in /etc/sysconfig , it shows nothing but jibberish. when I try to view the contents. its all garbles.

unSpawn 03-08-2014 11:12 AM

Generally speaking if you would want to see the current active firewall rules you'd just execute 'iptables-save'. But IIRC Fedora nowadays installs a 'firewalld' service by default which aims to confuse those accustomed to the old bare 'iptables' interface (just as much as having to look at the monstrosity that is an UFW rule set). If you want old school behaviour you can install the 'iptables-services' package, disable firewalld.service and enable iptables.service through systemctl and then configure /etc/sysconfig/iptables.

cyberdome 03-08-2014 02:40 PM

Quote:

Originally Posted by unSpawn (Post 5131132)
Generally speaking if you would want to see the current active firewall rules you'd just execute 'iptables-save'. But IIRC Fedora nowadays installs a 'firewalld' service by default which aims to confuse those accustomed to the old bare 'iptables' interface (just as much as having to look at the monstrosity that is an UFW rule set). If you want old school behaviour you can install the 'iptables-services' package, disable firewalld.service and enable iptables.service through systemctl and then configure /etc/sysconfig/iptables.

thanks. I had to open port 80 on my server, I had to add port 80 on the iptables config file.

thanks everyone for the response and comments.


All times are GMT -5. The time now is 07:13 PM.