Localhost

Johnmck93

Registered
I cant get on local host at all tried sudo apachectl configtest via terminal and got httpd: Syntax error on line 207 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/httpd/mod_log_config.so into server: dlopen(/usr/libexec/httpd/mod_log_config.so, 10): image not found
does anyone know what this means or how to fix it?
 
Is there a reason you're not using the built-in Apache functions, and instead trying to start apache via the command line? Do you have a custom install of Apache on your Mac OS X computer, or are you trying to use the included Apache web server?
 
apache is started and localhost still wont work, so i found that line of command on this forum and tried it but nothing is working for me...
 
What do you mean, "localhost still wont work?" What is the exact error message you receive when you type "http://localhost" or "http://127.0.0.1" into a browser?
 
i see a etc/ but the only pure hosts file is for adobe, can take a screenshot if you would like and would make it easier.
 
Hmmm... what exact modifications have you made to the Apache web server (either the conf file or other) that are different from the "stock" configuration in Mac OS X?
 
Do you have a backup of the original conf file, or, if not, can you try undoing the changes you've made to the conf file?

It sounds like perhaps you've edited the conf file in such a way that you've invalidated it -- perhaps by uncommenting a line that's incompatible with your apache setup, or modifying/adding a line in a way that is invalid syntax.

Did your web server work ok before you made those changes, and broke afterward? Has the web server EVER worked, or is this the first chance you've had to actually activate apache?
 
I have a backup and a default, the server did work before as i use to get the home page.
Should i make another copy of the backup and replace it with the original one?
 
I think restoring the conf file to its original state would be the first troubleshooting step.

Turn off Apache, restore the conf file, turn it back on. Does it work? If so, then all evidence points at you making invalid changes to the conf file, or adding/changing lines with invalid syntax.

If Apache works after restoring the conf file, then perhaps you can post your modified conf file and point us to the lines that you added/changed -- we can then take a look and see if it's as simple as a missing line or misspelled path or something.
 
i keep trying to restore it but saying i dont have privileges but under get info says system/everyone can read&write
 
Perhaps that's the problem... you need to edit the conf file as root (or, actually, sudo to edit it).

Maybe the permissions on that file are screwed. How did you originally edit the file? Typically, the correct way would be via the command line and sudo... such as "sudo nano httpd.conf" to edit with nano, or "sudo vi httpd.conf" to edit with vi.

To restore your original httpd.conf file, it would be something along the lines of "sudo cp httpd.conf.bak /etc/apache2/httpd.conf" depending on where your backup file is located and named.

httpd.conf should have permissions of user:root and group:wheel. If yours is showing different permissions, that could also cause the problem.
 
Back
Top