Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1) Changed ssh port
2) disabled root login through ssh
3) Installed few firewalls
4) block everything in iptables except 80,8080 and ssh port
5) Finally installed apache php mysql and phpmyadmin
Started the services but when hitting the ipaddress in the browser, i don't see any output
I have just added a index.html in /var/www/html/index.html
SSH has nothing to do. I just wanted to tell whatever i did in the order.
httpd is running
I guess, I should have missed some settings or something should be blocking 80. I am not able to find those things
When i type the ip address in the url (domain is not configured to nameservers right now)
I am getting the following
Quote:
Oops! Google Chrome could not connect to xxx.xxx.xxx.xxx
When i ping my ip address, I am getting result
Quote:
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=1 ttl=64 time=0.019 ms
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=2 ttl=64 time=0.032 ms
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=3 ttl=64 time=0.024 ms
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=4 ttl=64 time=0.012 ms
so what are your iptables rules? does netstat show apache is listening? can you telnet to the port from your client? can you connect from the server itself?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.