This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache and Tomcat on Mac OS X 10.5?

 
Denise Howard
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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!
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11877
195
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic