• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Apache and Tomcat on Mac OS X 10.5?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I posted this to the Apache/Tomcat forum as well, but just in case this forum s more appropriate.....


I am running Mac OS X 10.5.5, which comes with Java 1.5, Perl 5.8.8 and Apache 2.2.8 already installed, and I have Tomcat 5.5.26. But before I get as far as trying to fire up Tomcat, I need for Apache to work. It's not working. It seems to start up ok (as in, no errors shoot back at me when I enter 'sudo /usr/sbin/apcachectl start'), but no error log or access log are being created in /var/log/apache2. So I can't even tell you what the log says. Please help!
 
Rancher
Posts: 43026
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It may amount to the same thing, but the usual way to start up Apache on OS X is through the System Preferences -> Personal Web Sharing setting. When I do that I can see the log files being created in /var/log/httpd. (This is on 10.4, though - I suppose the directory may have been renamed to something else in 10.5).
[ December 05, 2008: Message edited by: Ulf Dittmer ]
 
Denise Howard
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for responding. I know about the "Web Sharing" checkbox in System Prefs; I've noted that when I start/stop apache from the command line, it is reflected on that panel. There is no /var/log/httpd on my machine. There is /var/log/apache2, but there are no files in it.
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Perhaps you are looking in the wrong location? On my MacBookPro, the Apache configuration files are in the standard location (/etc/apache2) so I can find the error log by:

Having found that, I can then take a look at my error log:

Hmmm, guess I should probably look at why I have so many errors

Regards, Andrew
 
Denise Howard
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My httpd.conf is in /etc/apache2 as well. In it is this line:

ErrorLog "/private/var/log/apache2/error_log"

But nothing is in /private/var/log/apache2 after I run apache.
 
Denise Howard
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Someone clued me in to running 'apachectl configtest' and I got this:



Now we're getting somewhere. GeoIP is necessary for our environment, so I built it on my machine exactly as the instructions said to:


So what should I have done differently to avoid the "wrong architecture" error?
 
Denise Howard
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By the way:

$ file /usr/libexec/apache2/mod_geoip.so
/usr/libexec/apache2/mod_geoip.so: Mach-O bundle i386
 
I'm so happy! And I wish to make this tiny ad happy too:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic