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

my httpd service wont start/restart possibly because i have nothing in my usr/share/php/ directory how do i restore this paerticular directory using yum in ssh on centOS? if i have virtual host paths in ssl.conf configurred improperly that wouldnt stop httpd from starting? i need to fix this too but i think its the directory

share|improve this question

migrated from Apr 28 '11 at 9:31

This question came from our site for professional and enthusiast programmers.

Have you checked the error log yet? – Ignacio Vazquez-Abrams Apr 28 '11 at 6:46
up vote 0 down vote accepted

It would be a bit peculiar to find binary files in /usr/share - and anything else related to PHP would not prevent the webserver from starting.

Show us your error_log

share|improve this answer
hi, the error log showed nothing past 5 days ago, since apache hasnt been able to start. however i just removed apache/php/mysql all at once and then reinstalled and now the service is going again. im sure i already did that but maybe the order was important, probably the dependency issue. – jskye Apr 28 '11 at 12:54

yum install php

yum install mysql

yum install apache


yum update php

share|improve this answer
> yum install php gives conflict between zend-server-php-5.2 and zend-server-php-5.3. > yum install zend-server-php-5.3 tells me that this is installed. > yum repolist shows zend, zend_noarch, addons, atomic, base, c5-testing, extras, turbopanel-base, turbopanel-centos5, updates > apache2ctl start gives command not found start/restart Apache 2 in turbopanel services does nothing. What command will tell me whats wrong with httpd? Last line of the httpd log file from 5days ago was [Sat Apr 23 10:10:29 2011] [notice] caught SIGTERM, shutting down – jskye Apr 28 '11 at 7:04
mysql 5.1.56... already installed and latest version yum install httpd gives packages httpd- already installed and latest update but there is still nothing in usr/share/php but httpd directory is in /etc/ does php in usr/share need to be restored? – jskye Apr 28 '11 at 7:08
try above urls thanks – Roshan Apr 28 '11 at 7:27

Here's an untested answer:

rpm -qf /usr/share/php

yum remove whatever package that gives you. From the path it almost definitely looks like you'll want PHP.

yum install package

share|improve this answer
this didnt work but thanks anyhow cookie – jskye Apr 28 '11 at 7:32

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.