• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No problem with Apache here. I'm not an expert so I'm not sure how to diagnose.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you try going to Web Sharing in System Preferences?
 
Pat Farrell
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic