0

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

1

3 Answers 3

0

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

1
  • 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, 2011 at 12:54
0

yum install php

yum install mysql

yum install apache

or

yum update php

7
  • > 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, 2011 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, 2011 at 7:08
  • remove zend-server-php-5.2
    – Roshan
    Apr 28, 2011 at 7:29
0

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

1
  • this didnt work but thanks anyhow cookie
    – jskye
    Apr 28, 2011 at 7:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .