Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

upgraded to Lion, broke lots of stuff. Need help with Apache

 
Pat Farrell
Rancher
Posts: 4660
5
Linux Mac OS X VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been surprised about how many things that the upgrade to Lion broke. For example, it removed the links to git and java from /usr/bin
so those programs were gone. It wasn't hard to fix the soft links, but it took a while to figure out why java and git were gone, and where they were really.

I also see that the built in copy of Apache HTTPD is "broken" in that the doc-root is clearly not being set, or is configured wrong or something.

A trivial request to localhost now gets a 404
Not Found
The requested URL / was not found on this server.
Apache/2.2.21 (Unix) DAV/2 Server at localhost Port 80


Any hints as to where that went? or where it is looking?

Also, how does one start/stop/restart daemon processs?
I don't see the usual linux style /etc/init.d/name scripts
nor the old BSD style /etc/rc.0/name scripts.
What's the trick to restart things like httpd?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem with Apache here. I'm not an expert so I'm not sure how to diagnose.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pat Farrell wrote:
What's the trick to restart things like httpd?



Have someone at the steering wheel with their foot on the clutch. Have another person behind pushing and when you get it going a couple MPH, release the clutch. ;)

Sorry.

I do know why the Java failed. It is because in Lion it isn't installed by default, but that there is a way that it would just pop up asking if you wanted to install Java.

Have fun.

Mark
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try going to Web Sharing in System Preferences?
 
Pat Farrell
Rancher
Posts: 4660
5
Linux Mac OS X VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Carol Enderlin wrote:Did you try going to Web Sharing in System Preferences?


Never heard of this. What is "web sharing" about? Is it new in Lion?
 
Pat Farrell
Rancher
Posts: 4660
5
Linux Mac OS X VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I looked thru the /var/log/apache2 directory and saw that httpd was complaining about

[error] [client ::1] File does not exist: /usr/htdocs

So a quick softlink in /usr, named htdocs
pointing to the old Snow Leapord diretory (/Library/Webserver/Documents) got it working again.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pat Farrell wrote:
Carol Enderlin wrote:Did you try going to Web Sharing in System Preferences?


Never heard of this. What is "web sharing" about? Is it new in Lion?

No. It's the way to start and stop Apache from the GUI. Been around for ages.

It's under the Sharing tab of Sytem Preferences.
 
Pat Farrell
Rancher
Posts: 4660
5
Linux Mac OS X VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:No. It's the way to start and stop Apache from the GUI. Been around for ages.
It's under the Sharing tab of Sytem Preferences.


Thanks.
What is the standard, OSX way to start and restart Apache httpd from the shell?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To be honest, I don't know being a Tomcat man myself.

For Apache, I just use the Sys Pref panel.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic