Problem installing Apache httpd on CentOS 6.5

Issues related to applications and software problems
Post Reply
pingpong
Posts: 17
Joined: 2012/09/23 15:26:59

Problem installing Apache httpd on CentOS 6.5

Post by pingpong » 2014/02/25 20:52:29

I installed httpd, but it cannot start and cannot connect in web browser.

I cannot uninstall it, (try to uninstall and re-install). tried update it, but still is not working.

Below is some info:

[root@localhost ~]# curl http://localhost
curl: (7) couldn't connect to host

[root@localhost ~]# /sbin/service httpd status
[root@localhost ~]#

It doesn't display anything

[root@localhost ~]# chkconfig --level 235 httpd on
error reading information on service httpd: Invalid argument

[root@localhost ~]# /sbin/service httpd start
[root@localhost ~]#

try to start it, it deosn't display anyting

[root@localhost ~]# yum info httpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.sov.uk.goscomb.net
* extras: mirror.sov.uk.goscomb.net
* updates: centos.serverspace.co.uk
Installed Packages
Name : httpd
Arch : x86_64
Version : 2.2.15
Release : 29.el6.centos
Size : 2.9 M
Repo : installed
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
: web server.

The OS frozen the first time I try to install Apache web (yum install httpd -y), I forcelly restart it.

Thanks in advance. Any idea?

bislinkscom
Posts: 8
Joined: 2014/02/24 14:05:14

Re: Problem installing Apache httpd on CentOS 6.5

Post by bislinkscom » 2014/02/25 22:53:38

Did you check your firewall settings?

Is port 80 open through the firewall?

You may also try Virtualmin GPL which does it all for you and even provides a browser based interface to maintain your entire machine/server besides other things.....

Virtualmin URL:
http://virtualmin.com

bislinkscom
Posts: 8
Joined: 2014/02/24 14:05:14

Re: Problem installing Apache httpd on CentOS 6.5

Post by bislinkscom » 2014/02/25 22:56:34

Also check if networking is enabled and active (It is disabled by default).

This FAQ might help too

http://wiki.centos.org/FAQ/CentOS6

pingpong
Posts: 17
Joined: 2012/09/23 15:26:59

Re: Problem installing Apache httpd on CentOS 6.5

Post by pingpong » 2014/02/25 23:03:41

bislinkscom wrote:Also check if networking is enabled and active (It is disabled by default).

This FAQ might help too

http://wiki.centos.org/FAQ/CentOS6
I can visit internet from CentOS guest. I can also connect to Windows host from CentOS guest.

I tried the link below:

http://www.techotopia.com/index.php/Con ... Web_Server

Any idea?

pingpong
Posts: 17
Joined: 2012/09/23 15:26:59

Re: Problem installing Apache httpd on CentOS 6.5

Post by pingpong » 2014/02/26 12:43:22

I fixed that by re-installing os.

Post Reply