Setting Up A Site Server with Jaguar
rgraham writes "James Duncan Davidson (the original author of Apache Tomcat and Apache Ant) has an article over at O'Reilly's MacDevCenter that walks you through the steps of not only getting Apache up and running on 10.2 (pretty simple, I know) but also DNS and Mail. The aricle goes along well with Alan Graham article on how to setup your own .Mac type service."
Is setting up IIS. .NET > .Mac
THE WOMAN IN THE RED CONVERTIBLE drove on an abandoned highway, one hand on the steering wheel and the other holding a lit cigarette. Orange and red clouds of morning littered the otherwise barren horizon. Her weary eyes focused on the infinite fields of grass and wheat waving restlessly in the morning breeze.
She reached hastily for the button to retract the top, the aforementioned breeze caressing her coarse brown hair. The radio played softly.
"Let's go down the waterfall," it sang tirelessly. "Have ourselves a good time." She flicked ashes from the cigarette.
"It's nothing at all; nothing at all, nothing at all."
She threw her burning cigarette onto the road, hoping secretly that the pavement would catch fire, and then once again reached for the button. The top shut with a satisfying click. Oblivious of her destination, she depressed the accelerator to the floor, her automatic revving in response. Faster and faster she carelessly drove until the car could accelerate no further.
A small bridge loomed ahead. Much like her life, the river beneath it was perpetually stagnant. As she neared it, epiphanies inundated her mind. Everything -- what she must do -- became clear. Without hesitation, she jerked the wheel to the right, smiling in her ignorance. To this woman, the future was of no relevance. For those seconds, ignorant or not, she was alive. Then, after her brief moment of solace had passed, all was eternally still.
Devour my thoughts.
I like Mac, I really love PowerBooks, but I simply can't understand why one should use a laptop computer (that I assume is not built to run 24/7) as a Server system. Yes, I understand that california blackouts can be part of the answer, but it's not enough.
I mean..at least this particular is non really useful to the reader of the article.
Apple iProduct. Non importa cosa sia, lo comprerete!
I personally understand people who use Macs a desktop computers/workstations. At least not everyone has that thight grip at technology and therefore it better for some people to use easy-to-use computers.
But why use them as servers ?
Admins should have a clue how to use computers and therefore shouldn't be dependable on easy-to-use interfaces.
Standard server system are much cheaper even with the obligatory redundancy stuff.
Sorry, but I don't see the points for Macs.
Owner of a Mensa membership card.
Hei, please avoid any answer containing:
Sorry, all ather system are working to The Matrix program!
Apple iProduct. Non importa cosa sia, lo comprerete!
Can use your $3,000 mac to replace a 100 dollar a month service. It will pay for itself in only three years. By then it will be obsolete anyway... never mind it already is obsolete.
You know, the rest of us use old Pentiums to run in house webservers. In fact, I've even done it on a IIci running NetBSD.
Did you all just realize that the internet comes from servers and not from AOL? Beauler? Beauler?
If voting were effective, it would be illegal by now.
Who would want it then ?
http://saveie6.com/
...is like buying a brand new car that you only sit in and listen to the radio instead of drive.
Seriously... Any old box x86 or otherwise can be used as a server, so why pay the premium Mac price to do so?
I don't use mac laptops but even though the cpu can hibernate, realisticly, how long can a powerbook run under load before heat becomes an issue if the server is handling requests steadily?
Heat's not an issue. As we all know, Macs are the preferred computers for the queers. Thus, the more urgent problem would be faggot semen getting into the powerbook. An errant cumshot could cause serious damage.
What!? An on-topic troll?
The last line of /etc/httpd/httpd.conf in the default OS X.1.5 installation reads:
/private/etc/httpd/users
/private/etc/httpd/users file being added for each user which enable you to serve anything you put in the Sites folder in your personal home directory. These are served in turn as http://your.domain.name/~username/page.html or the prevailing DirectoryIndex file to you (me) locally as http://127.0.0.1/~ynotds/
/library/webserver/CGI-Executables
/library/webserver/CGI-Executables/*
.cgi to get scripts running throughout your site.
Include
one
The main config file includes a script alias to run any CGI scripts in
They have put one Perl test script in that directory which you can view locally at http://127.0.0.1/cgi-bin/test-cgi, or at least you can after you have done a
sudo chmod 775
from your Terminal window.
From there, it isn't a lot of work to tweak your config files and uncomment AddHandler cgi-script
Of course the real point to setting up your Mac as a fully functional server is that you get to do all your editing in BBEdit which not only does syntax checking and colour coding on the fly of HTML, Perl, JavaScript and more, but also can directly run Perl in an open document window, enabling you to all manner of extrancting and reporting on the fly.
Now I just need to get brave enough to install MySQL.
-- Our systemic servants do not good masters make.
on jagwyre, setting apache and PHP and sendmail all on their own is doable for the not so experienced (like me)
However, the shit hits the fan when you're trying to make php pages send mail. SO far, I've tried every walkthrough I could find, but still get errors like this (sorry for long lines):
Sep 7 12:51:19 visbak sendmail[448]: g87ApJxR000448: from=www, size=262, class=0, nrcpts=1, msgid=, relay=localhost
Sep 7 12:51:20 visbak sendmail[450]: g87ApJxR000448: to="jeroen clarysse" , ctladdr=www (70/70), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30241, relay=in.mx.skynet.be. [195.238.3.129], dsn=5.6.0, stat=Data format error
Sep 7 12:51:20 visbak sendmail[450]: g87ApJxR000448: g87ApKxQ000450: DSN: Data format error
Sep 7 12:51:20 visbak sendmail[451]: g87ApKxQ000450: SYSERR(www): openmailer: insufficient privileges to change gid, RunAsUid=70, new_gid=0, gid=70, egid=25Sep 7 12:51:20 visbak sendmail[450]: g87ApKxQ000450: to=www, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31286, dsn=4.0.0, stat=Deferred: local mailer (/usr/bin/procmail) exited with EX_TEMPFAIL
Anyone an idea ?
When will I end this grieving ? When will my future begin ?
I was impressed when I saw that people were using the X-Box to run a web server.
But to dig up one of Atari's old consoles? Wow!
What next? Someone trying to resurrect the Amiga platform?
No thanks. Not before lunch...
Imagine a Beowulf Cluster of these!
.. i saw the headlines and thought; " WOW ; KEWL ; COOL", then when i read that it was just this ripoff of jaguar name 10.something macosx i was veeerry dissapointed ;)
world was created 5 seconds before this post as it is.
I've been enjoying using my iMac as a development server, but Apple sure doesn't make it easy when they change the file locations and settings with every upgrade and security tweak.
// I will show you fear in a handful of jellybeans.
I'm thinking of setting up a mac-based server at the med school where I teach. I've run a linux-based server there for a couple years now.
Why should I use the "server" version of Jaguar vs. tweaking the "desktop" version? Is it mainly an issue of stuff being pre-configured on the server version?
(i.e. apache, sendmail, etc.)
1. It's not some wonky, secure, stripped, stable *nix box that can't run GUI IDEs.
2. It can give me multicolored colored visual cues to code, so monochrome terminal sessions are out. Colored terminals are OK, but they lack the same elegance of a full GUI.
3. It can quickly deal with running those additional programs I need when reading laughable client 'specs' in PowerPoint, MS word, HTML email from hell, etc.
4. The code, on my GUI-heavy isolated dev box, can run identically to the code deployed on the stripped, burly, boxen.
5. If I need to test speeds without a GUI, I can ignore it, and use the box in a stripped, clean, mode.
6. It must be stable without being cold and wooden (Red flag of personal preference, I find almost all *nix platforms to be far less comfortable than they could potentially be. I know the KDE/Gnome/Solaris folks are working on it, and have their advantages as well)
7. It must support additional "development necessary tools" such as playing mp3's, accounting for my time with professional accounting software, play mpg's, and run the occasional "break tool" in the form of some game that isn't 5 (or more) years old.
8. It must support running javascript, and be able to test IE, NN, *and* lynx, and be able to run MacOS 9, MacOS X, X windows (and sub-managers), as well as MS windows (and their many variants).
9. The hardware and software should need my personal intervention for tweaking and updates, well, almost never. I am not paid to update my box, I am paid for writing original code.
I run a business, and I use (deep breath) LinuxPPC, Yellow Dog Linux, SuSe (on X86 and PPC), Debian (on PPC and X86), Mac OSX, RedHatX86 (four versions), OpenBSD (PPC and X86), FreeBSD (X86), SunOS (really, some clients still use it), Solaris (all 'of the flock, ugly), Win 3.1, Win 95, Win 98, Win ME, Win NT 3.x, Win NT 4.x, Win2K, Win XP (all).
Of all of the above OS's, which one, do you think, can actually do requirements 1-9? (There's only one, take your time...) I used to do dev work on no less than 3 different boxes a day to meet those requirements. Now I use one.
Of course, if I have a few sites with a few million hits a day (I do), I'll host it elsewhere than my test box, an OS X box.. But I'm not going to develop on that box. I'm going to develop on a box that makes me the most productive, a box where I don't care about IRQ's, drivers, optimizing window managers, running rpm or apt-get or any other time-wasting CLUI tools that interfere with writing code.
For writing code, use a box that meets *your* needs. All platforms prior to OS X meant I was using far too many comps, because I needed multi-platform, multi-client-platform, code. No other platform allows you to test as many platforms at once as PPC/OS 9/OSX on Mac.
-Bop
I know the point of this article is to set up all these services on plain-jane Mac OS X, but even easier than all that, and still cheaper than (m)any commercial solutions, is Mac OS X Server:
http://www.apple.com/macosx/server/
Instead of going through 4 pages of convoluted configuration (if that's not your cup of tea), Mac OS X Server reason for existence is to provice a nice GUI for all of the server components. It's really amazing; anyone here who likes Mac OS X and hasn't really seen what Apple's done with Mac OS X Server 10.2 should check it out.
Develop, play, remore-admin, play, manage the household, play, play games
Not in Greece you're not.
Will I retire or break 10K?
Can't windows do everything the ibook does?
Windows doesn't have the Aqua(TM)(C) skin and will not have the Aqua skin for the next ninety-five years.
Will I retire or break 10K?
You obviously don't have any real idea as to what the Macintosh is all about other than "it's supposed to be easy to use."
... shouldn't be dependable on easy-to-use interfaces.
Admins
And your point about the Macintosh is...? You insinuate that to use a Mac server one must be "dependable" on an easy-to-use interface. This is flat-out false. (Why you think it's easy-to-use is a Bad Thing is a whole other issue. I believe it goes to show how the vendors you prefer have lowered your expecations over the years regarding interface design - "if it's easy to use it's got to suck.")
Standard server system are much cheaper even with the obligatory redundancy stuff.
No they're not.
Sorry, but I don't see the points for Macs.
But it's refreshing to know that you did your homework before deciding. Not.
You like your Macintosh better than me, don't you Dave? Dave? Can you hear me Dave?
You wouldn't necessarily buy a new Mac to use as server. But since the entire Mac world is being migrated to a platform that installs Apache, etc., someone has decided to write a piece explaining how to take advantage of that fact. What's your problem with that?
As for price, I would have paid just as much for a PC as I did for this Mac. All the PC would have given me was the need to install Linux and spend hours tweaking the thing so I could stand to look at it. My time is more important to me than the money, so I went the Mac route.
Why does a "community" that whines so much about "choice" and "freedom" have such a hissy fit every time someone says something positive or useful about a competing platform? Any chance that's because you want to limit choice and freedom to only one kind of software?
-- Slashdot: When Public Access TV Says "No"
People, have you noticed all the hype and buzz (positive and negative) flying round because of OSX?
There is no such thing as bad publicity. All the whining here reminds of the *BSD IS DYING crap we used to see so much (notice that since it obviously isn't dying that those trolls have quieted down a bit? When will theses same trolls learn that Apple is gaining momentum as well....)
Anyhow, I just wonder why all the "experts" here get so defensive over a powerbook having devel/testing/serving/mobile capabilities, as this is the same crowd that wants Linux (for no other reason than to brag, I suppose) on everything from PDAs (webservers there? please, how much storage and serving can you realistically expect on them) to Dreamcasts/Xboxes/Atari2600s/calculators, etc... ad-fucking-nauseum.
What a bunch of parasitic non-original losers you crybaby zealots are turning out to be. Less talk, more code. Shitbags. Oh, sorry, to be on topic I use my Toshiba notebook and my powerbook both for webserving (among other uses, mainly research and entertainment) as I need to convey data and be accessible for differing lengths of time while I'm in the field for the US Army. So go fuck yourselves and stop your complaining.
Oh, wait, I get it. If YOU can't think of a need for it, then there MUST NOT be a need for it AT ALL eh? Turds.
No? Then fuck off.
im glad people are taking mac os x seriously now for servers. in spring 2002, i used by ibook running 10.1.4 to deliver an online voting system for a cs class project. along with apache we used tomcat, ant, and postgresql. setup was easy, i downloaded the source, compiled, and that was it. the only thing else i had to do to set it up was download the correct jdbc driver for postgres. (i think its included now...) the app itself was developed on freebsd 4.x and required no code changes from freebsd -> os x. when we presented it in class the only hitch was a mozilla 0.9 crash, and that was no biggie. macintosh + unix == WOW!
"The chief enemy of creativity is 'good taste'" -Pablo Picasso
Apple berates M$ for using nonstandard scroll bars. But it's OK for them to do the same.
What Apple is doing is akin to a man with a 3 inch penis trying to convince women that big fat penises are no good because of the pain that they can cause. Even though 90% of women may prefer big penises, or 90% of the world may prefer something about the Wintel platform Apple is attempting to tell them that they really don't.
Apple, your future looks dim for a reason. (most) People don't want to buy what you're selling.
MacOS may have many technical advantages over Windows, just as the devices that run WinCE have advantages over the machines that run Palm OS. But both of the loses trail for other reasons. #1 Price. I can buy a refurbed Visor Deluxe for under $100. I can get a decent PC for less than the cost of an eMac. #2 Availability of software. I can get so much more software for a Palm OS or Windows machine so, in the great platform Jihad. I choose the side based upon my computing needs. Not on my need to feel or think "different"ly.
I don't know why that little blurb got in the summary. Actually reading the article you find the typical "explaination" that you should let someone else do it or read a book on Bind.
When I went to get my server set up I looked all over for how to set up DNS so I could have a real domain name. Then I just went with DNSMadeEasy.com
http://www.icarusindie.com/dotcom/
gives a run down of all the components you need to get a web-server up and running and where to get them. My server has been running on Win2K Pro for 1 year 8 months and hasn't had a single crash.
If someone has a REAL tutorial (step by step guide) on getting your computer set up as a name server or knows where to find one please post it. I'd personally like to run my own name server so I don't have to pay someone else or use a crappy ad ridden service.
Ben
Work Safe Porn
Say it again, y'all!
I cannot believe he didn't even mention turning on your firewall (which is so simple in OS X, since a GUI interface to the ipfw software that has always been there is now available right in System Preferences). It is very irresponsible to tell people to set up a server without telling them how to protect it. Come on. (I use BrickHouse instead of Apple's interface, but they both provide a GUI interface to ipfw, so it's pretty similar, just more full-featured.) Also, the author does not mention alternatives to Sendmail. Many people consider Postfix to be superior. See Installing Postfix and UW IMAP on MacOS X Server for instructions on setting it up for OS X.
What do your computing needs have to do with the availability of more software products than you'll ever use? "Availability of software" is one of the weakest arguments of Windows over Mac out there.
Figure out the things you want to do with your computer before you buy. Then scope out the best solution on whatever platforms you feel like giving a fair chance to. The total number of available software titles is irrelevant...
errr.... just register a domain name and have it pointed (via your registrar's name servers) at your web server, then. You can't get around paying for a (real) domain name* and vendors like NetSol (or whomever) will allow you to point at whatever IP you want. You don't need to have your own DNS server for that (and you can't just fire up a ns and add any domain name you want -- it doesn't work like that). In fact, that will be more of a headache for you and a bit like setting up a telephone company just to service your home phone line.
* Well, OK, you 'can' get around paying for a domain name (just like you have) but you end up at someone else's mercy and it will not get you what you're asking for.
- I am made of meat.