Page 1 of 1

Apache web not starting after yum update install

Posted: Fri Oct 19, 2007 8:53 am
by calderwood
I installed atomic yum, then installed php-mcrypt, php-mhash, (these required that I install php-common, php-domxml, php-xml. I've re-booted the server, but still have no http sites - email seems ok.

I then did a total yum update which appeared to have completed successfully. Re-booted, but still no apache web server service.

Plesk version psa v8.2.1_build82070918.10 os_CentOS 4.2
Operating system Linux 2.6.9-42.0.3.ELsmp

# apachectl graceful
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs

# apachectl restart
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs

Named file not starting.

Posted: Fri Oct 19, 2007 10:12 am
by calderwood
I've narrowed it down to the /etc/init.d/named not starting

0: /usr/local/psa/admin/plib/common_func.php3:156
psaerror(string 'Unable to make action: Unable to manage service by dnsmng: dnsmng: Service /etc/init.d/named failed to start')
1: /usr/local/psa/admin/htdocs/server/restart_services.php:28

Anyone got an idea as to where I go from here.

Posted: Fri Oct 19, 2007 10:14 am
by scott
That sounds to me like something else is running on port 443, most likely malware of some kind.

Started with update

Posted: Fri Oct 19, 2007 10:37 am
by calderwood
This started with the yum update. I tried to check PHP version but got 100's of errors - many pointing to php4 - do I need to do some manual changes somewhere. Looks like ioncube loader and php4

How do I check port 443 or close it down?

Posted: Fri Oct 19, 2007 11:10 am
by Highland
Try

Code: Select all

#netstat --listen
#netstat -an

Problem fixed - php.ini wrong

Posted: Fri Oct 19, 2007 11:44 am
by calderwood
I found the error in the php.ini - it was still pointing to extensions=/php4 - changed it to /php/modules and most everything loaded. Also deleted the Zend info from the php.ini - Apache is working again and the 443 port error went away. Ran the port stat - nothing on 443. I'm still getting two errors in php:

# php -version
Failed loading /usr/lib/php/ioncube/ioncube_loader_lin_.so: /usr/lib/php/ioncube/ioncube_loader_lin_.so: cannot open shared object file: No such file or directory
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/sitebuilder.so' - /usr/lib/php/modules/sitebuilder.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.2.3 (cli) (built: Aug 27 2007 08:18:18)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies

Is there anything else I should run from the atomic update?

Thanks for your help.

ioncube ini

Posted: Fri Oct 19, 2007 12:49 pm
by calderwood
I found the ini file that is pointing to ioncube-loader, but there is no matching file, there are files with 5.3.0 in the name. Should I update the ioncube.ini to point to that file loader?

Posted: Fri Oct 19, 2007 6:00 pm
by scott

Still have problems

Posted: Fri Oct 19, 2007 6:50 pm
by calderwood
scott wrote:Check the wiki page:
http://www.atomicorp.com/wiki/index.php/PHP
Everything on the wiki waas done, but to be sure I redid it, got messages that there was nothing to do, copied the php.ini, but still getting the same message on php-version

Posted: Sat Oct 20, 2007 10:29 am
by scott
what do you get from:

echo "<? echo phpversion(); ?>" | php

Posted: Sat Oct 20, 2007 11:14 am
by calderwood
scott wrote:what do you get from:

echo "<? echo phpversion(); ?>" | php
# echo "<? echo phpversion(); ?>" | php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/sitebuilder.so' - /usr/lib/php/modules/sitebuilder.so: cannot open shared object file: No such file or directory in Unknown on line 0

Posted: Sat Oct 20, 2007 2:04 pm
by scott
ah thats sitebuilder breaking things. You'll want to get rid of that first.

Sitebuilder

Posted: Sat Oct 20, 2007 3:03 pm
by calderwood
I don't use it. Its PSA installed back in version 7, so can I remove that through yum? Or should I just get rid of the reference in the ini? Now that I'm using the art install, I see that there are still some PSA programs - am I right to think that I still need to update those from plesk, or does the art updates take care of them?