Our webserver has been working fine for months but sunday it stopped running. Its a rented dedicated server we use for gaming but we have a webserver running on there for stats (psychostats) When the webserver stopped I went in using SSH and tried service httpd restart and I get the following error: Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /lib/libstdc++.so.6: version `GLIBCXX_3.4.4' not found (required by /usr/lib/libaspell.so.15) [FAILED] I uninstalled and reinstalled httpd using yum and the webserver works again, until i install php (yum install httpd-php) then same error. running ls -al /usr/lib/libstdc++.so.6 gets me: lrwxrwxrwx 1 root root 18 Mar 23 20:01 /usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.7* and rpm -q --provides libstdc++ gives the following: libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(CXXABI_1.3.1) libstdc++.so.6(GLIBCXX_3.4) libstdc++.so.6(GLIBCXX_3.4.1) libstdc++.so.6(GLIBCXX_3.4.2) libstdc++.so.6(GLIBCXX_3.4.3) libstdc++.so.6(GLIBCXX_3.4.4) libstdc++.so.6(GLIBCXX_3.4.5) libstdc++.so.6(GLIBCXX_3.4.6) libstdc++.so.6(GLIBCXX_3.4.7) libstdc++34 libstdc++ = 4.0.2-8.fc4 ..so it looks like the files are all there but still the error remains, I found a link on the net that suggested installing libsigc++20 which I tried but that didnt solve it, our GSP have said that they can't fix it either. Would a reinstall of FC4 (or maybe FC5) be the only solution?
Can you post the output of Code: httpd -V ? (Depending on your Apache version, the command might also be Code: httpd2 -V .)
Code: lrwxrwxrwx 1 root root 27 Mar 23 19:12 modules -> ../../usr/lib/httpd/modules/ Your Apache expects the modules in /usr/lib/httpd/modules/, but you have libphp5.so here: /usr/local/apache2/modules/libphp5.so /downloads/php-5.0.4/.libs/libphp5.so /downloads/php-5.0.4/libs/libphp5.so You can try to copy one of them to /usr/lib/httpd/modules/, e.g.: Code: cp /usr/local/apache2/modules/libphp5.so /usr/lib/httpd/modules/ Restart Apache afterwards.
OK tried this and it said did i want to overwrite existing so there was one there, I did this and started httpd and no error but php pages would not display or I got message saying Version 5.0.4 didnt have mysql support installed. Although I had done yum install php-mysql Uninstalled and reinstalled php and the error returns. If I try copying the file again it again gives the overwrite warning
Please create this file: PHP: <?php phpinfo(); ?> and put it in a PHP-enabled web on your server and access it with your browser. Is MySQL mentioned anywhere in the output?
Thats the problem, as soon as I enable php on the webserver it won't start. If I try what u suggest it just displays the code, if i copy the module from apache2 i don't get the error but only because php doesnt load then anyway I think the error is more linked to /lib/libstdc++.so.6: version `GLIBCXX_3.4.4' not found than php itself
Have you tried /downloads/php-5.0.4/libs/libphp5.so (i.e. copy it to /usr/lib/httpd/modules/ and restart Apache).
Yes, it gives the same problem, httpd starts ok but basically php doesnt work. the phpinfo test page just downloads, opens wordpad and shows <?php phpinfo(); ?>
Does your server do automatic updates, or has it been hacked? It's strange that this error occurred from one day to the other... Which distribution do you use?
Its fedora core 4, i suppose hacking is possible, rkhunter doesn't find anything tho apart from the error already mentioned coming up in its logs too. Also tried reinstalling aspell but no change