What's the command to restart httpd it keeps saying it's failing when I restart it in Cpanel.
Printable View
What's the command to restart httpd it keeps saying it's failing when I restart it in Cpanel.
Execute the following command in ssh as the root user:
/etc/init.d/httpd restart
Regards,
It says that it's not started....Quote:
Originally Posted by B-Z-M
Okay, execute the following command to start it:Quote:
Originally Posted by hostwatch
/etc/init.d/httpd start
Regards,
This is what I got...Quote:
Originally Posted by B-Z-M
root@server [~]# /etc/init.d/httpd start
Syntax error on line 210 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/lib/libmysqlclient.so.14: version `libmysqlclient_14' not found (required by /usr/local/apache/libexec/libphp4.so)
/etc/init.d/httpd start: httpd could not be started
root@server [~]#
You need to recompile php in this case, the issue is between php and mysql. Did you update mysql after your last php compilation?
Regards,
No, I never do that, I just send a email to my support department and they do that... I dont know, it was working fine then all of a sudden it stopped.Quote:
Originally Posted by B-Z-M
My guess is you upgraded MySQL a while back but have not added another site since, once you added another website to the server Apache will have been restarted and hit the problem.
Dan
Ask them if they have upgraded/updated mysql, if so that should be the cause. Ask them to recompile php, when they are done try and start up apache again. Post here with the results.
Good luck,
That would be it, do you know how I would fix this?Quote:
Originally Posted by RazorBlue - Dan
Did you try recompiling php, that will most likely fix the error. PHP and MYSQL are having a conflict on the server, a php recompile should do the job.
Any idea on how and where to get the information to do this?Quote:
Originally Posted by B-Z-M
What control panel are you running? If any ...
Dan
if it's a cpanel server with a regular php install ie not phpsuexec just do this.
wget http://us3.php.net/get/php-4.4.4.tar...om/this/mirror
tar -zxvf php-4.4.4.tar.gz
cd php-4.4.4
strings `which php` | grep ./configure | sed s#"'"#""#g
copy paste the ./configure line it outputs including the ./configure part and press enter.
once configure finishes without error
type make
then when make finishes type make install
/etc/init.d/httpd restart
If configure or make exit with error stop and ask us about it.
It is a cpanel server, as stated on the original post.Quote:
Originally Posted by RazorBlue - Dan
Regards,