Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So I just barely turned on my computer.

I opened up Chrome, and my home page, which is loaded off of my localhost server, came up with an error.

I went into terminal to manually start it, and it came up with:

Syntax error on line 22 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/modules/mod_autoindex.so\x16 into server: dlopen(/usr/libexec/apache2/modules/mod_autoindex.so\x16, 10): image not found

I checked in the modules folder, and sure enough the module is still there. If I comment out the LoadModule line for mod_autoindex.so then everything (except the folder indexes) works fine.

Does anyone know what this means? Because apparently my guess was wrong.

This has never happened before and I haven't changed anything in httpd.conf in at least a week.

So confused.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The cause is probably the \x16 at the end of the filename. It is a non-printable control character which was probably introduced through some unwanted escaping in your editor.

Remove the character (or remove the whole line and reenter it by hand) and everything should be fine.

share|improve this answer
    
I removed the newline and a few characters at the end, retyped them and now everything is happy again. :) I don't know how that character got there, or how it didn't cause problems sooner, but I'm glad it's gone. Thanks muchly. –  tylermwashburn Apr 12 '11 at 14:23

Your Answer

 
discard

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.