Kenjun

March 4, 2008

Restart Apache on Mac OS X

Filed under: Apache, MacOSX, Systems Administration — kenjun @ 11:22 am

sudo apachectl restart

or if you’re not sure that it’s working, do it in stages:

sudo apachectl stop

and then

sudo apachectl start

http://snippets.dzone.com/posts/show/1878

November 1, 2007

MacOSX Compact Sparse Image…

Filed under: Apache, MacBook, MacOSX — kenjun @ 10:03 pm

One useful OS X feature is the ability to create disk images. A disk image is a single file that, when double-clicked, appears like a typical hard drive to the operating system. (Most software you download comes on a disk image.) Disk images a great way to store related files that you don’t need to use often, as they can be “out of sight” until you need them. They’re also useful if you want to store something securely, as you can create encrypted disk images that require a password to mount.

There are essentially two types of disk images—a normal disk image and a sparse disk image. With a normal disk image, the disk image will consume as much drive space as its size, even when empty—i.e. a 40MB normal disk image requires 40MB of drive space, even if you’ve never used it. Sparse disk images, on the other hand, are disk image files that require just as much space as their contents require. So a 40MB sparse disk image will only need 40MB of drive space if you’ve saved 40MB of data onto it. The disk image will grow automatically as space is required.

What isn’t so obvious is that a sparse image won’t shrink automatically. Check out the link for a handy article on how to compact a sparse image.

http://www.macworld.com/weblogs/macosxhints/2007/06/compactsparse/index.php

MacOSX Compact Sparse Image…

Filed under: Apache, MacBook, MacOSX — kenjun @ 10:03 pm

One useful OS X feature is the ability to create disk images. A disk image is a single file that, when double-clicked, appears like a typical hard drive to the operating system. (Most software you download comes on a disk image.) Disk images a great way to store related files that you don’t need to use often, as they can be “out of sight” until you need them. They’re also useful if you want to store something securely, as you can create encrypted disk images that require a password to mount.

There are essentially two types of disk images—a normal disk image and a sparse disk image. With a normal disk image, the disk image will consume as much drive space as its size, even when empty—i.e. a 40MB normal disk image requires 40MB of drive space, even if you’ve never used it. Sparse disk images, on the other hand, are disk image files that require just as much space as their contents require. So a 40MB sparse disk image will only need 40MB of drive space if you’ve saved 40MB of data onto it. The disk image will grow automatically as space is required.

What isn’t so obvious is that a sparse image won’t shrink automatically. Check out the link for a handy article on how to compact a sparse image.

http://www.macworld.com/weblogs/macosxhints/2007/06/compactsparse/index.php

July 31, 2007

Apache – got a problem with a configuration – check out the log file…

Filed under: Apache — kenjun @ 5:24 pm

Great article with some great advice on how to solve an error reported by Apache…

Step one?
Whatever the problem, step one is always to look in the error log.

 http://www.onlamp.com/pub/a/apache/2004/04/22/apacheckbk.html

Apache – got a problem with a configuration – check out the log file…

Filed under: Apache — kenjun @ 5:24 pm

Great article with some great advice on how to solve an error reported by Apache…

Step one?
Whatever the problem, step one is always to look in the error log.

 http://www.onlamp.com/pub/a/apache/2004/04/22/apacheckbk.html

Create a free website or blog at WordPress.com.