Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to use YUM to install Apache and PHP on CentOS but keep getting these errors. Anyone know what's wrong? Thanks!

Loading mirror speeds from cached hostfile
 * c5-testing:
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.8-1.el5s2.centos set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

 Package                 Arch       Version          Repository        Size 
 httpd                   i386       2.2.8-1.el5s2.centos  c5-testing        1.0 M

Transaction Summary
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
Package perl-libapreq needs perl(Apache::Table), this is not available.
Package perl-libapreq needs perl(mod_perl) >= 1.17, this is not available.
Package perl-libapreq needs perl(mod_perl) >= 1.17, this is not available.
Package apache-devel needs apache = 1.3.41, this is not available.
share|improve this question
up vote 1 down vote accepted

You are using a testing repository (c5-testing). Have a look at the contents of your directory /etc/yum.repos.d ... normally, once you disable this repository, the issue should go away.

share|improve this answer
Thanks but still doesnt seem to work. – Scott Yu - Front-End UX Feb 23 '10 at 18:56
@Scott, any more details ? What's the output now ? – Dominik Feb 23 '10 at 19:54
sounds like some packages had been installed via this additional repository and they should have been installed via the main centos repos. You may need to uninstall any packages installed via this testing repo and reinstall them via the stable main repos. Once all previously installed packages are brought inline with the versions present in the main repo it should work. Also, disable any other non-standard repos. – CarpeNoctem Feb 24 '10 at 9:12
If you need additional packages beyond those provided in the main repos, always install yum-priorities and make sure to set the main repos at the highest priority. – CarpeNoctem Feb 24 '10 at 9:13
I decided to re-image the whole thing. Hmm.. now the problem is the thing is missing httpd.conf file. Anyone know how to recreate it? Starting httpd: fopen: No such file or directory httpd: could not open document config file /usr/local/apache/conf/httpd.conf /usr/local/apache/bin/apachectl startssl: httpd could not be started – Scott Yu - Front-End UX Feb 25 '10 at 1:39

which was the command?

Try this:

yum -y update httpd


share|improve this answer
Thanks but doesnt work. httpd is not installed at this point. I ran sudo yum install httpd – Scott Yu - Front-End UX Feb 23 '10 at 18:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.