[RESOLVED] httpd won't install

General support questions

[RESOLVED] httpd won't install

Postby Guerreiro » 2012/05/01 20:40:40

Hey everybody, hi docter Nick, well not but I do greet you all.

I bought a brand new VPS, and now I am wanting to turn this thing into my beastie and the first step I wanted to undertake was install httpd. (Apache)

I see it on the mirrors site and all, but when I run yum install httpd the following occurs:


Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
No package httpd available.
Error: Nothing to do

I am awfully new at this whole thing, so I would be more than grateful if someone here could help me out. I also already switched to the baseurl, but that does not seem to do anything. I could have done that step wrong though.

Yours sincerely,

##### UPDATE #####

So I just did wget from the mirror installed that rpm and found out that my VPS already had httpd installed I just completely looked over it. Now I have double config files, yet luckily RPM keeps the original. I am now loading the modules I need because that is something they forgot. :D
Guerreiro
 
Posts: 6
Joined: 2012/05/01 20:34:54

Re: httpd won't install

Postby pschaff » 2012/05/01 20:54:40

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Arbitrarily changing the repository configurations is not recommended. First please put things back the way they were, then provide more information about your system by running "./getinfo.sh package" and showing us the output file.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: httpd won't install

Postby kyrunner » 2012/05/01 20:55:17

What happens when you run this command


sudo /etc/init.d/httpd start
kyrunner
 
Posts: 30
Joined: 2011/09/26 16:34:22

[RESOLVED] httpd won't install

Postby toracat » 2012/05/01 21:02:23

Guerreiro wrote:

I bought a brand new VPS, and now I am wanting to turn this thing into my beastie and the first step I wanted to undertake was install httpd. (Apache)

It is entirely possible that your hoster has done certain modifications to the system. Please see CentOS wiki articles, OtherSpins and BrokenVserver for more details.
User avatar
toracat
Forum Moderator
 
Posts: 6695
Joined: 2006/09/03 16:37:24
Location: California, US

Re: httpd won't install

Postby Guerreiro » 2012/05/01 22:20:45

pschaff wrote:
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Arbitrarily changing the repository configurations is not recommended. First please put things back the way they were, then provide more information about your system by running "./getinfo.sh package" and showing us the output file.


Repository configurations are back to default mirrorlist. http://pastebin.com/fkWHPaFH there is the getinfo. :)
Guerreiro
 
Posts: 6
Joined: 2012/05/01 20:34:54

Re: httpd won't install

Postby Guerreiro » 2012/05/01 22:22:33

kyrunner wrote:
What happens when you run this command


sudo /etc/init.d/httpd start



Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
That is what is saying now, I am now manually loading the modules in there that are standard. Also something else, now the httpd package does show up. :S Not sure why though. Thanking you all already (the problem is not fixed yet) for the goddamn fast answers. :)
Guerreiro
 
Posts: 6
Joined: 2012/05/01 20:34:54

Re: httpd won't install

Postby Guerreiro » 2012/05/01 22:30:28

toracat wrote:
Guerreiro wrote:

I bought a brand new VPS, and now I am wanting to turn this thing into my beastie and the first step I wanted to undertake was install httpd. (Apache)

It is entirely possible that your hoster has done certain modifications to the system. Please see CentOS wiki articles, OtherSpins and BrokenVserver for more details.


I read those documents, and unless I am mistaken it does seem like I have genuine CentOS on my VPS. :) The packages contain changes because I made them. Also I am not a total newbie at Linux so you can get a bit technical with me. Just do not forget too many steps and I will be all right. :)
Guerreiro
 
Posts: 6
Joined: 2012/05/01 20:34:54

Re: httpd won't install

Postby pschaff » 2012/05/01 23:55:22

Guerreiro wrote:
...
I read those documents, and unless I am mistaken it does seem like I have genuine CentOS on my VPS. :) The packages contain changes because I made them. Also I am not a total newbie at Linux so you can get a bit technical with me. Just do not forget too many steps and I will be all right. :)


The following line in /etc/yum.conf is the source of the issue with "yum install httpd", and also an argument that you do not have real CentOS, unless you inserted it:
Code: Select all
exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php* bind-chroot*

I strongly suspect some Source Installs that came with some sort of hosting panel software - also in line with toracat's suspicions.

You are also running quite an ancient CentOS-6.0 kernel that has many bugs and security vulnerabilities. A reboot to kernel-2.6.32-220.13.1.el6.x86_64 is overdue.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: httpd won't install

Postby vonskippy » 2012/05/02 00:01:36

In all likelihood, his VPS is running a Control Panel, which excludes all of those packages AND the kernel from being updated OUTSIDE the control panel.

Side stepping the control panel and running OS level updates (or messing with the config files) is SURE to bork the control panel.

The OP's questions should be directed to his VPS provider, not the CentOS community.
User avatar
vonskippy
 
Posts: 685
Joined: 2006/12/30 03:00:04
Location: Western Slope Colorado

Re: httpd won't install

Postby pschaff » 2012/05/02 00:10:55

Indeed I should have issued my usual disclaimer that "advice from here may be hazardous to the health of your system"; however, the running kernel and the installed kernel do seem to be real CentOS, and there is no kernel in the excludes. I'd say the jury is out on the kernel borking the (presumed) control panel, but it is not out of the question.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Next

Return to CentOS 6 - General Support

Who is online

Users browsing this forum: Pantela and 7 guests