logo

Let’s just see what happens

Newsletter

Videos

Speaker

Hard to Read? Choose a style: Style 1 Style 2 Style 3 Default Toggle Sidebars

Beginner-to-beginner: Restarting Apache after you’ve reinstalled Leopard from the Time Machine and your web server isn’t working

Posted on January 14th, 2009

Last night I installed a new, blank hard drive on my MacBook. I installed from Time Machine, which went quite well. (I physically installed it, booted from a Leopard system disk, partitioned the disk via Tools > Disk Utility, restarted with the Time Machine external disk plugged in, went to Tools > Restore from Backup, chose the latest backup, and came back three hours later.) The process resulted in a painless transfer. Everything was working (as far as I can tell) except for the internal web server; my browser told me that it could not connect to http://127.0.0.1. I tried lots of things, including editing my httpd.conf file, following Webby advice (how could I go wrong?). Despite multiple restarts of apache, via Systems Pref and the terminal, no dice. (BTW, I’m running Leopard 10.5.6)

My friend Billo, diagnosed the problem almost immediately: I had no apache2 directory in /var/log/. So, I made one, changed the permissions, and a minute later, it was all up and running. (Thanks, Billo!)

In case you are feeling adventurous, here are the various commands to use in the terminal. (Note: I’m not good at this stuff. I’m likely to be giving you bad advice here. Most of it is pretty much non-destructive, though. I think.)

To restart the web server (=apache2): apachectl restart (Apachectl is in /usr/sbin/)

To create an apache2 directory in /var/log:

cd /var/log/
mkdir apache2
chown root apache2
chmod 755 apache2

It may take a minute or two for things to start working. If they do, when you go to http://127.0.0.1 in your browser, you should get a default page telling you that apache is working. And you’ll probably have to log in as root in the terminal to get permission to do this stuff.

Good luck. And, most important, don’t blame me!

[Tags: mac os_x apache restore_from_time_machine web_server leopard ]

Tagged with: apache • leopard • mac • tech

Previous: « Internet safer for kids than we’ve been led to believe || Next: Charlie Nesson’s RIAA case to be webcast »

One Response to “Beginner-to-beginner: Restarting Apache after you’ve reinstalled Leopard from the Time Machine and your web server isn’t working”

  1. Alan Levine, on January 15th, 2009 at 9:57 am Said:

    I would not rely in Time Machine for a complete copy- next time try a cloned like SuperDuper or Carbon Copy Cloner

  2.  

Leave a Reply


Web Joho only

 

Entries (RSS)
Copy this link as RSS address

Comments (RSS).

Creative Commons License
Joho the Blog by David Weinberger is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License. Share it freely, but attribute it to me, and don't use it commercially without my permission.

Joho the blog uses WordPress blogging software.
Thanks, WordPress!