wood burning stoves 2.0*
The moose likes Mac OS and the fly likes upgraded to Lion, broke lots of stuff. Need help with Apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "upgraded to Lion, broke lots of stuff. Need help with Apache" Watch "upgraded to Lion, broke lots of stuff. Need help with Apache" New topic
Author

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

Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4639
    
    5

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

Joined: Jan 10, 2002
Posts: 60071
    
  65

No problem with Apache here. I'm not an expert so I'm not sure how to diagnose.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Did you try going to Web Sharing in System Preferences?
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4639
    
    5

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

Joined: Aug 11, 2007
Posts: 4639
    
    5

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

Joined: Jan 10, 2002
Posts: 60071
    
  65

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

Joined: Aug 11, 2007
Posts: 4639
    
    5

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

Joined: Jan 10, 2002
Posts: 60071
    
  65

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
 
subject: upgraded to Lion, broke lots of stuff. Need help with Apache
 
Similar Threads
Internet requests to Tomcat
mod_jk
how to execute thread on linux web server?
how to redirect from apache to tomcat..?
Internet requests to Tomcat