[RESOLVED] httpd won't install

General support questions
Guerreiro
Posts: 6
Joined: 2012/05/01 20:34:54

[RESOLVED] httpd won't install

Post by 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 [i]yum install httpd[/i] 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

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: httpd won't install

Post by 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 [b]not[/b] recommended. First please put things back the way they were, then [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]provide more information about your system[/url] by running "./getinfo.sh package" and showing us the output file.

kyrunner
Posts: 30
Joined: 2011/09/26 16:34:22
Contact:

Re: httpd won't install

Post by kyrunner » 2012/05/01 20:55:17

What happens when you run this command


sudo /etc/init.d/httpd start

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

[RESOLVED] httpd won't install

Post by toracat » 2012/05/01 21:02:23

[quote]
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)[/quote]
It is entirely possible that your hoster has done certain modifications to the system. Please see CentOS wiki articles, [url=http://wiki.centos.org/AdditionalResources/OtherSpins]OtherSpins[/url] and [url=http://wiki.centos.org/TipsAndTricks/BrokenVserver]BrokenVserver[/url] for more details.

Guerreiro
Posts: 6
Joined: 2012/05/01 20:34:54

Re: httpd won't install

Post by Guerreiro » 2012/05/01 22:20:45

[quote]
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 [b]not[/b] recommended. First please put things back the way they were, then [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]provide more information about your system[/url] by running "./getinfo.sh package" and showing us the output file.[/quote]

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

Post by Guerreiro » 2012/05/01 22:22:33

[quote]
kyrunner wrote:
What happens when you run this command


sudo /etc/init.d/httpd start[/quote]


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

Post by Guerreiro » 2012/05/01 22:30:28

[quote]
toracat wrote:
[quote]
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)[/quote]
It is entirely possible that your hoster has done certain modifications to the system. Please see CentOS wiki articles, [url=http://wiki.centos.org/AdditionalResources/OtherSpins]OtherSpins[/url] and [url=http://wiki.centos.org/TipsAndTricks/BrokenVserver]BrokenVserver[/url] for more details.[/quote]

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. :)

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: httpd won't install

Post by pschaff » 2012/05/01 23:55:22

[quote]
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. :)[/quote]

The following line in /etc/yum.conf is the source of the issue with "yum install httpd", and also an argument that you do [b][i]not[/i][/b] have real CentOS, unless you inserted it:
[code]exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php* bind-chroot*[/code]
I strongly suspect some [url=http://wiki.centos.org/PackageManagement/SourceInstalls]Source Installs[/url] that came with some sort of hosting panel software - also in line with [b]toracat[/b]'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.

User avatar
vonskippy
Posts: 839
Joined: 2006/12/30 03:00:04
Location: Western Slope Colorado

Re: httpd won't install

Post by 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.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: httpd won't install

Post by 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 [i]seem[/i] to be real CentOS, and there is no [b]kernel[/b] 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.

Post Reply