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

link|improve this question
Have you checked the error log yet? – Ignacio Vazquez-Abrams Apr 28 '11 at 6:46
feedback

migrated from stackoverflow.com Apr 28 '11 at 9:31

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

3 Answers

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

link|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
feedback

yum install php

yum install mysql

yum install apache

or

yum update php

link|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-2.2.8.1....centos.i386 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
show 3 more comments
feedback

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

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

Your Answer

 
or
required, but never shown

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