Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I have installed apache2. But there is a problem with starting apache2 after update.

apache2: Syntax error on line 215 of /etc/apache2/apache2.conf: Cannot load /System/Library/Apache/Modules/ into server: /System/Library/Apache/Modules/ cannot open shared object file: No such file or directory

share|improve this question
How can I repair these files and directorys? My distro is 10.04 LTS – user9913 Jan 30 '11 at 17:29
How did you install/update apache ? That line on your apache2.conf was not added by the default package apache installation. – João Pinto Jan 30 '11 at 19:58
Please update your question to add the contents of line 215 of /etc/apache2/apache2.conf – Jorge Castro Jan 30 '11 at 19:59
That looks like a configuration file from MacOS. Are you sure you've installed Ubuntu's apache2? – Lekensteyn Jan 30 '11 at 20:06
sasa, you should answer Joao Pinto's question. How exactly did you install apache? The supported way is 'sudo apt-get install apache2' – SpamapS Jan 31 '11 at 20:06

I agree with @Lekensteyn. The module in question should be at /usr/lib/apache2/modules/ You need to replace this (and any other modules with invalid paths) pathname on the LoadModule line for include_module.

But without seeing at least some of the httpd.conf file, it's almost impossible to handle the syntax error.

share|improve this answer
There is nothing under /usr/lib/ no directory apache2. Reinstall apache2 but apache2 directory. Not a MAC. Just HP laptop – user9913 Jan 31 '11 at 9:58
I guess that is in package apache2.2-bin (at least in case of lucid), so it should be reinstalled, not apache2. – LGB Feb 10 '11 at 21:58

Your Answer


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