![]() |
launchd plist for Apache HTTPD that actually works?
I've been doing some reading on-line - I find lots of people who claim to have a working solution, however, none of their solutions actually work for me. I'm hoping someone on here can help me out.
I have a working solution for PostgreSQL and Tomcat, that lets me start/stop those services, and ensure they launch on startup. Apache HTTPD seems to be giving me issues. My apache httpd software is installed at /usr/local/apache2 and I can start/stop it all day long with /usr/local/apache2/bin/apachectl start||stop, so I know my install is good. More info about my install: APACHE (2.2.13) ./configure --enable-most --enable-auth-dbm --enable-cern-meta --enable-dav --enable-dav-fs --enable-dav-lock --enable-expires --enable-headers --enable-info --enable-mime-magic --enable-isapi --enable-proxy --enable-proxy-ajp --enable-proxy-balancer --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http --enable-rewrite --enable-so --enable-speling --enable-ssl --enable-unique-id --enable-usertrack --enable-vhost-alias So anyway - a working file to put in /Library/LaunchDaemons would be greatly appreciated (: |
|
Yeah, didn't work ):
|
Something wrong with the pre-installed version of Apache?
|
Quote:
|
You're asking how to make httpd launch at boot time. Since the pre-installed version of httpd works fine by checking the box in Sharing it would seem that the easiest course of action would be delete the version in /usr/local and use Apple's.
I've been using the out-of-the-box httpd ( version 2.2.11 ) on a development server since last year. Works just fine. |
Quote:
Quote:
Quote:
|
Impatient snarkiness is sure to attract further answers.
|
No snarkiness intended - merely pointing out that the "solution" offered isn't actually a solution to the problem stated.
|
back on track... can you post the launchd plist you're using? I have a suspicion about what the problem is, but I'd like to see the XML first. also, are you getting any errors in console? try running the command launchctl start <jobname> from the command line and see what console has to say.
|
Quote:
OK - so here console: Code:
9/7/09 3:09:42 PM com.apple.launchd[1] (org.apache.httpd2[972]) Exited with exit code: 1Code:
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
Quote:
Quote:
|
the only issues I see with your plist file (at first blush) are as follows:
Quote:
let me add that it's not the easiest thing diagnosing these problems from afar, and it doesn't help if you get frustrated with the answers you're getting. if someone asks you a question that doesn't seem to help, it's either because:
|
Quote:
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
1 Attachment(s)
TW:
I think I got it. Not sure exactly what the issue was - I made some of the changes you recommended (all at once) and it would seem that some or all of those changes did the trick. The plist now looks like this: Code:
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">Code:
daemon 213 0.0 0.0 2450212 608 ?? S 6:18PM 0:00.00 /usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -D FOREGROUNDSo - this issue seems resolved. Thanks for your help (: |
Quote:
glad you got it working though. :) |
Quote:
Quote:
FWIW, I also got several start/stop scripts for apache, postgres and tomcat to work, using launchd, using: sudo launchctl load /usr/local/LaunchDaemons/whatever.plist and sudo launchctl unload /usr/local/LaunchDaemons/whatever.plist So, now I have it both ways - launch on start if I put put in links at /Library/LaunchDaemons and manual control otherwise. This is what I was looking for. |
Quote:
Plus, I'll point out that the phrase "I can't control other people's emotions" only ever gets uttered as part of an effort to make others feel self-conscious about being emotional, which (paradoxically) clearly is an effort to control their emotions. I mean, I understand: you want something, you want to be all business-like about it, you don't want people to ask you questions that you've already decided aren't important, you're short with people who try... all well and good, except I suggest the next time you have a problem you go to your local computer store. Professional techs get paid good money to put up with that attitude. Frankly, you're starting to make me feel bad that I helped you for free. If you give me your address I'll send you a bill for services rendered; we can do PayPal. $50 sound good? that's about half what they'd have charged you somewhere else for the same fix, and you got better, quicker service... |
Quote:
Reviewing the thread, I see: 1). Agentx offered a suggestion and I indicated that it didn't work. 2). acme.mail.order asks a question about software that is not the subject of the thread or related to the question originally asked. I responded that I didn't use that software, and pointed out that it isn't the software I'm working with, with respect to the question asked. 3). acme.mail.order misstates the problem stated, and then suggests that not using the software I am trying to use will solve the problem that is the subject of the original post - and points out that this solution works fine for him. I point out that he misstates the problem at hand, and that his alternative doesn't actually solve the problem at hand, and that I am glad he has a solution that works for him. 4). NovaScotian chimes in with a snarky off topic comment. I respond to his comment, pointing out that my previous response to acme.mail.order was not intended to be snarky, but merely pointed out that acme.mail.order's solution wasn't really a solution to the problem at all - but a substituted process that doesn't meet my objectives in trying to solve the problem as originally stated. 5). you chime in with an on-topic helpful tip. I respond with some additional information about the problem. 6). acme.mail.order again posts a question unrelated to the problem at hand. I respond, again, to his question, indicating that I never said there was "a problem" with the stock software. 7). During that exchange, you chime in again with some on-topic help. I respond to some points in your post with additional information, use some of your information to work on the problem, and post additional information, indicating the problem is resolved. That's how I see it. If there is some soul-crushing, disrespecting, feeling trampling commentary in there, I fail to see where. |
Quote:
burrrrrnnnned! yeah, baby; doin' my victory dance! bom-chicka-bom-chicka-chika-bom-bom really, you didn't do anything that bad, you were just kind of short with people. for instance, when acme (whom you may not know is very good with these things) asked you why you weren't using the built in apache module, it would have been nice if you gave a short explanation of why you were doing it the more difficult way. I'm sure you have a reason (even if it's just 'I started doing it this way, and I'd like to finish it, because I'm stubborn like that'), and saying that out loud would have made the context understandable, and gotten everyone focussed on the problem you wanted to solve, rather than focussed on what you weren't telling them. Some kinds of information help explain the problem directly, but other kinds of information help explain why other (perfectly viable, and sometimes easier) solutions aren't appropriate. If you don't tell people why you don't want to do easy solution A, they're probably not going to help you with difficult solution B; would you help a friend carry a couch up three flights of stairs when there's an elevator right next to you? doubtful, not without a good explanation. see what I mean? |
Quote:
Quote:
Quote:
Quote:
Quote:
I didn't go into any explanation of WHY I am not using it because not only was that not what he asked, but also because I didn't see any point in going on about some off-topic sub-thread justifying what and why and how and so forth, defending my decision NOT to just use whatever Apple decides to bless its users with and whatever else. Besides that, it had nothing to do with the problem at hand anyway. Aside from all that, it should be pretty obvious that if someone WANTS to use whatever Apple decides to bless its users with, then he/she/it/they will just go ahead and use it. Once the decision to NOT use it has been made, then the WHY of that decision is rather moot - esp. when it has no bearing on the problem at hand. Quote:
If someone doesn't want to help work on a problem - then fine - don't help. However, when I ask for help fixing my car and someone tells me I should just take my motorcycle instead - that's not really helping at all. If you want to talk about respecting people, then start with the idea of respecting them enough to consider that they might actually have good reasons for the things that they do and they don't need to justify themselves to you (or anyone else), ESPECIALLY when those reasons, as good or bad as they may be, have nothing to do with the correct solution to the problem as stated. |
1) I'm making no statement at all about what happened in this particular thread.
2) If you ask for help on a public forum, then you should respond to requests for more information about the "why" of your request. An explanation of the "why" is often the most important part of the post. It is very often the case that people ask for help about some specific thing when there is an easier way to accomplish their higher level goal. (i.e. their business-level goal, e.g. to be able to create a web site with such & such feature) |
Quote:
Quote:
and I'll point out: if you had put one fourth of the effort into explaining yourself in the first place, that you've currently put into defending yourself, we'd all be happy and this conversation would be done. |
Explaining why you don't want to use the pre-installed version of Apache would have taken substantially less effort (and produced far less bad karma) than the rant in #20 and #22.
And your analogy about cars and motorbikes doesn't work - the version difference (2.2.13 vs. 2.2.11) you are working with is more like socket vs. box-end wrenches |
Quote:
Quote:
It's not necessary for anyone to ask him WHY he wants to run Eudora instead of the mail client that ships with the OS for them to help him with his Eudora issue. Nor does KNOWING why he wants to run Eudora help solve his Eudora problem. The WHY of what he wants to do has nothing to do with the HOW to fix the issue he is having. Nor is it incumbent upon a potential helper to point out to him that the OS comes with a mail client, and that he should use it unless he has very good reasons not to. I was able to help him solve his Eudora problem - and I have no idea why he wants to run Eudora. It is likely I will never know...but I could take some good guesses. |
Quote:
Why do you want to do this? What is the benefit of going to all this extra effort? What does your version of Apache do that the Apple-supplied version doesn't? Why do you need an Apache server on "all the platforms you maintain?" (how many platforms are there?) |
Quote:
My reasons are completely irrelevant to the solution - much like the gentlemen with the Eudora problem. |
This thread is exhausted, in my view. onceagain simply doesn't get it.
|
Quote:
|
I have been following this thread from start to finish and have not made any comments. However, I must say that even though OS X is Unix, it is a brand of Unix which Apple made it's own. There are many reasons Apple does this, and being a Linux guy originally and learning to use OS X Server I have realized that there are generally good reasons they do this.
Now, when I have had to reinstall MySQL server, or Apache and do so in a different directory I typically do so, then make sure ownership and permissions are set and then just create symbolic links from the existing software to the newly installed software. This way all original config files are still parse as normal but instead of them linking to the built in stuff they link to the newer installs. I can't say that this is even the best method, but it did work for me when I had to install a different version of MySQL. A little explanation helps a lot, especially when trying to gauge your higher goals. |
well, I tried. as of now I consider that onceagain owes me $50 bucks for services rendered. If and when he pays up, I'll consider helping him again.
|
| All times are GMT -5. The time now is 01:26 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.