Installed apache server , can't connect from outside (using CentOS in WMware )


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Installed apache server , can't connect from outside (using CentOS in WMware )
# 1  
Old 11-30-2010
Installed apache server , can't connect from outside (using CentOS in WMware )

Hello all
I installed apache in CentOS 5.5 ,after searching the web for tips on configuration
I did the fallowing stuff to unable connecting the http server from outside.
In /etc/httpd/conf/httpd.conf I changed the Listen value to 0.0.0.8011
Then checked with then check with: netstat -anp and I do see the apache listen on this port
Configured the httpd as service: chkconfig --levels 235 httpd on
Enable ports with : semanage port -a -t http_port_t -p tcp 8011
In iptables I set
iptables -A INPUT -d 10.1.15.1 -p tcp --dport 8011 -j ACCEPT
/etc/init.d/iptables save active
Restart the server
But still can't connect from outside , even with telnet <ip> <port> I can't connect .
By the way FTP and ssh do work great with this ip .
# 2  
Old 11-30-2010
I would say if netstat reports its listening (on 0.0.0.0) then its likely the firewall. I would try simply turning off the firewall temporarily, check connectivity, and turn it back on again. This would then prove the hypothesis....
# 3  
Old 11-30-2010
yes this is what i did and its working

iptables -A INPUT -p tcp -m tcp --dport <port> -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
service iptables save
/etc/init.d/iptables restart
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to connect to a DB installed on another host using shell script?

Hi Experts There are two hosts say A and B. On host B, Oracle DB is installed and running. I am trying to check if the DB on host B is up and running fine from a script on host A. Is this possible. I tried using commands like sql plus but those doesn't seem to help. Could you please guide. (8 Replies)
Discussion started by: harishshankar
8 Replies

2. UNIX for Advanced & Expert Users

CentOS VPS Server Apache Alias

All, We have a hosted CentOS 6 VPS server, using CPanel to install/config the domains/subdomains and installed osTicket in: my.domain.com/tkng/ We are trying to define the following Apache alias: my.domain.com/tickets which has to point to: my.domain.com/tkng/upload/ CPanel... (0 Replies)
Discussion started by: TBotNik
0 Replies

3. Hardware

Can be Installed WMware EXSi on Sun Fire 445 sparc?

Can be Installed WMware EXSi on Sun Fire 445 sparc? I need to virtualize VMware EXSi on Sun Fire 445 for implement Windows, I can do? (2 Replies)
Discussion started by: abelop
2 Replies

4. IP Networking

Linux centos, can't connect whois.tucows.com

Hello, when i tried to get whois on an .com domain, it automatically used tucows whois, it appears it cant connect that server, please how can i fix it, so it dont fail or use another server? whois mydomainname.com -f + whoisout=' ' I have: Linux * 2.6.18-348.3.1.el5.028stab106.2 #1... (5 Replies)
Discussion started by: postcd
5 Replies

5. Web Development

Connect C#(App) + Exim en Centos

Hi everyone, Today i'm faceing a problem, that really hope for some help. I'm working in a Web application developed in C#(DB SQL Server 2012, IDE VS 2010), so i've hired two VPS (Virtual Private Server), one with Windows Server 2012 where it's running my app and the other VPS in Centos.... (1 Reply)
Discussion started by: Newer
1 Replies

6. Cybersecurity

Apache server trying to connect with unknown ip:80

OK, so I've been learning my way through Fedora trying to progress to LFS and FreeBSD. I have a Fedora 14 machine running Apache 2.2.17, and about 2 days ago, I came across the server and saw a black screen blazing through text so fast I couldn't read it. I didn't know if it was a crash or I'd been... (1 Reply)
Discussion started by: Eotnak
1 Replies

7. Solaris

Not able to connect (ping & http) to windows 2003 (with IIS installed) from Solaris9 Machine(Tomcat)

hi Am trying to connect from Solaris 9 installed Sun server and having Tomcat 5.5.9 installed on top of it to Windows 2003 server with IIS installed for web application. Scenarios am facing are 1. From Sun system am able to ping and telnet ip with port 80 of windows 2000 system which is... (2 Replies)
Discussion started by: aemunathan
2 Replies

8. Solaris

apache installed or not

How to check out apache is installed in unix box ? i don't have execute for httpd -v command and also i don't have 'apache' directory under /usr/local but i could able to see many httpd processes running on the server. (2 Replies)
Discussion started by: Masanamuthu
2 Replies

9. UNIX for Dummies Questions & Answers

Which modules are installed for APACHE?

Is there some way I can tell which modules I have installed for APACHE? Would it be in httpd.conf? (2 Replies)
Discussion started by: mojoman
2 Replies

10. Solaris

How to identify which type of Apache is installed?

Hi, I need to find out which type of Apache is installed. following is the list of Apache types Covalent, IBM HTTP, HP Apache-based, Oracle, Stronghold and may be some other as well. If anyone know how to figure out this, please share it with me. Thanks Sarwan (3 Replies)
Discussion started by: sarwan
3 Replies
Login or Register to Ask a Question