Running a Web Server on Mac OS X: Apache Made Simple
An anonymous reader writes "Having recently moved over to Mac OS X, I decided to look into running my own Web and FTP servers again from home. To my surprise, I discovered what many already know... that bundled into the underpinnings of Jaguar's networking framework was a distribution of Apache that appears as simple or robust as I want it to be."
If you didn't know Apache lives on X you may not know is PHP is installed too, it's just not activated. In the terminal: change two lines in /etc/httpd/httpd/conf (you'll have to sudo).
When you find the lin #LoadModule php4_module libexec/httpd/libphp4.so (or something close) uncomment it (take away the pound).
Do the same for #Add module mod_php4.c
Now you have to add in the mime types, when you see the line AddType application/x-tar .tgz add these two below:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
now save the file. You can use emacs or something but I'm usually lazy and use pico. You can even use BBedit if you want, but that takes more explaining... have fun! You can also download a binary for MySQL (one click and you're databasing).
Two problems with your post:
1. Xserve RAID runs IDE drives internally, just as the Xserve itself does (albeit with hardware RAID capability).
2. You have always been able to get an Apple-supported Ultra160 SCSI card, and add any external SCSI disk array you wish.
XRaid is real raid. It will connect via a scsi cable to the XServe box. I'm missing where you say it's not real raid.
I run IDE Software RAID on my Linux boxes and it's extremely fast. You can also run software RAID on the IDE drives in an XServe. However, eterprise apps need SCSI performance. XRaid is what will deliver that performance.
Then you've only been reading posts from people who didn't pay attention when the XServe an the XServe RAID were announced. The XServe RAID uses the same drives and the same drive trays as the XServe does. It will have an independent IDE bus for each drive just as the XServe does. Apple expects this to provide superior performance to what would be achieved with a bunch of SCSI drives sharing one buss.
0 207,00. html
The XServe RAID to XServe connection will be by fiber channel as Apple also announced.
This story talks about the fiber channel connection on the xServe RAID:
http://news.zdnet.co.uk/story/0,,t269-s211
Usually this is a configuration issue. When you set up Aliases and the like in Apache, if you include the trailing slash in the path, Apache will require it in requests. If you leave off the slash, Apache will not require it, but will append it to the request when appropriate.
Check your Alias, ScriptAlias and Directory directives and remove trailing slashes from them. And since you mention the ~username example, don't forget to check under the mod_user area.
However, unless you configure it yourself, Apache on Mac OS X does not know what hostname it is running on so it can't redirect properly, and will send a redirect to the user to a url with the wrong site.
You can fix this either by changing the ServerName directive in /etc/httpd/httpd.conf or by formally changing your machine's hostname using NetInfo (some instructions here).
It is IDE.* It is also hardware RAID. Being IDE does not preclude it from also being hardware RAID. Xserve RAID is a 2Gbps FCAL-connected IDE-based hardware RAID array. Get it? If you think you need SCSI, get an Ultra160 SCSI card from Apple, and get a SCSI-based array from some other vendor. *For reference, see http://www.apple.com/quicktime/qtv/xserve/
From http://www.apple.com/quicktime/qtv/xserve/
[Steve Jobs:]
01:19:15
So, you've just heard all about Xserve, and what we'd like to also do is give you a little technology preview of something that we're going to be rolling out around the end of this year, and that is a companion product called Xserve RAID. So, this is Xserve and Xserve RAID is an amazing companion storage product, and it looks like this. I'd like to invite Alex Grossman from Apple up to give us a preview of Xserve RAID. [Alex Grossman, Director, Hardware Storage Marketing, Apple]:
01:19:50
Thanks, Steve. Okay. I'm really excited to give you a technology preview of our rack-optimized storage, and rack-optimized storage is the perfect complement to the server. What we've done is developed a very high density, 3U height rack-optimized storage device that has 14 drive bays. And with that density, we're able to put 14 120GB hard drives in the same Apple carriers that we use in the server, and deliver 1.68TB of storage, and that's massive. But to get that storage to the server, we had to choose a high-speed interconnect. We chose what we think is the best, which is 2Gb fibre channel. But we went one step further, and we put dual 2Gb fibre channel on the system. That gives us 400MB/sec of storage throughput. That's just incredible. And that is the latest and the greatest fibre channel out there. But RAID systems are all about data protection and to achieve data protection, we put dual RAID controllers in the system, and we put all the critical components as redundant components. In fact, the drives, the power, and the cooling are redundant in the system. And they're hot swappable. The way we achieved this was through a brand new Apple design architecture. And let me take you through that really quickly. The architecture has 14 independent hard drives and each RAID controller connects to 7 of these hard drives. The hard drives have independent ATA controllers that go to the heart of the system, and the heart of the system is the RAID processor. The RAID processor is very fast, and it's powerful. And we've added 128MB of processor cache to it for even better performance. Up on the top of the diagram, there's a little blue icon, probably not familiar to all of you, but that's the icon for 2Gb fibre channel. So our 2Gb fibre channel controller actually has its own dedicated PCI bus to the RAID processor. And that gives us substantial throughput, really really high throughput. This thing was designed for max throughput. Off to the side of that, you'll see what we call the RAID Environment Manager, and that's a tool - it's actually an embedded coprocessor - that gives us the ability to manage these RAID systems remotely. So we can set them up, we can manage them, and we can monitor them, very similar to what we do with Xserve. If we put the whole thing together and look at the entire diagram, we see that on each side, we have redundant power, we have redundant load-sharing power supplies, and in the center we have redundant cooling. And just like Xserve, the cooling is smart, so if one of the cooling systems fails, the other one will take up the speed. You'll also notice the little green bars up on top. Those are redundant drive cache, so, actually, we cache the processor memory. And overall, this makes a very fault tolerant system with very high throughput. Xserve RAID is going to be available, as Steve said, by the end of calendar year 2002. So let me just sum it up for you real quickly. 14 drive bays, very high density 3U enclosure, 1.68TB of massive storage online, and 2Gb fibre channel. That's Xserve RAID. And this is only a technology preview, we're going to announce this later in the year. Thanks, Steve.
[applause]
Well, now that the poster has discovered that OS X includes all the usual stuff like Apache, PHP, Perl, etc.. He can just as well install and host:
-- SlashCode (moderate difficulty)
-- GeekLog (pretty darn easy and very flexible)
-- phpBB (very easy, not too customizable)
-- WebMin (very easy, can use SSL & its own miniserv)
In addition, with a minor tweak or two he can run:
-- Resin JSP servers
-- ATG Dynamo e-commerce development platform (Java)
There are many possibilities, in fact quite a few of these run well out of the box on Mac OS X... just browse around sourceforge.net!
I've gotten a few sites running off Jaguar right now.. Here's a geeklog site running off a 266MHz G3-upgraded PowerTower Pro mac clone:
http://geeklog.47ronin.kicks-ass.net:8001
Those who laugh at you for you having a Mac.. are the people who constantly call you to fix their PC.