Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Okay... I'm something of a beginner when it comes to servers, and I'm having some issues with restarting apache on my Debian web server.

I just ran the following:

aptitude install apache2 openssl

Immediately afterwards, I tried to restart apache and got the following error message:

IS-13902:/usr/local/apache2/modules# /etc/init.d/apache restart
httpd: Syntax error on line 55 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/ into server: cannot open shared object file: No such file or directory

I ran ldd /usr/local/apache2/modules/ and got the following output =>  (0xb76f6000) => /lib/i686/cmov/ (0xb6d78000) => /lib/i686/cmov/ (0xb6d6f000) => /usr/local/mysql/lib/ (0xb6a3d000) => /usr/lib/ (0xb6a19000) => /usr/lib/ (0xb6a04000) => /usr/lib/ (0xb69e5000) => /lib/i686/cmov/ (0xb69bf000) => /lib/i686/cmov/ (0xb69bb000) => /lib/i686/cmov/ (0xb69a1000) => /usr/local/lib/ (0xb6948000) => /usr/lib/ (0xb680f000) => /lib/i686/cmov/ (0xb66b4000) => /lib/i686/cmov/ (0xb669b000)
/lib/ (0xb76f7000) => not found => not found => /usr/lib/i686/cmov/ (0xb6652000) => /usr/lib/i686/cmov/ (0xb64ff000) => /usr/lib/ (0xb64bc000) => /usr/lib/ (0xb64ad000) => /lib/i686/cmov/ (0xb6499000) => /usr/lib/ (0xb6482000) => /usr/lib/ (0xb63e5000) => /usr/lib/ (0xb63d5000) => /usr/lib/ (0xb63d0000) => /usr/lib/ (0xb6368000)

Can anyone help?

share|improve this question
IT looks like your apache2 init script is refering to an old or previously installed version of apache2 (probably from sources). You can easily tell that by the directory structure. /usr/local/apache2/conf/httpd.conf actually should be located in /etc/apache2/apache2.conf . Remove the old apache and then reinstall with --purge :) – wojciechz Aug 23 '12 at 15:26
dpkg -l | grep libidn? – quanta Aug 23 '12 at 15:27
The problem is that I didn't actually mean to install the new version of apache2. I was just trying to install openssl, but copied and pasted the whole command by accident. Is there any way to reverse this? I have a few key sites already running on this server, so I don't want to take it down for too long! – Philip Bennison Aug 23 '12 at 15:35
@quanta The output from that is rc libidn11 1.8+20080606-1 GNU libidn library, implementation of IETF I – Philip Bennison Aug 23 '12 at 15:37

Install libidn11-dev package:

# apt-get install libidn11-dev

and try again.

share|improve this answer
When I run ldd /usr/local/apache2/modules/ I still get => not found – Philip Bennison Aug 23 '12 at 15:57
I take it I should run dpkg -l | grep libssh2 and then app-get install the relevant package? – Philip Bennison Aug 23 '12 at 15:59
Try this apt-get install libssh2-1-dev libssh2-php. – quanta Aug 23 '12 at 16:05
I got the following: apt-get install libssh2-1-dev libssh2-php Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package libssh2-php – Philip Bennison Aug 23 '12 at 16:15
You can remove the line what call that module on apache2.conf ( line 55 comment it ) or install libssh2 manually that the easy way. Also you can install it whit pecl comand, pecl install ssh2 – Skamasle Sep 20 '13 at 14:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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