aspose file tools*
The moose likes Mac OS and the fly likes Apache and Tomcat on Mac OS X 10.5? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Apache and Tomcat on Mac OS X 10.5?" Watch "Apache and Tomcat on Mac OS X 10.5?" New topic
Author

Apache and Tomcat on Mac OS X 10.5?

Denise Howard
Greenhorn

Joined: Dec 05, 2008
Posts: 6
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
Marshal

Joined: Mar 22, 2005
Posts: 42908
    
  69
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

Joined: Dec 05, 2008
Posts: 6
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

Joined: Mar 28, 2003
Posts: 11523
    
100

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


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Denise Howard
Greenhorn

Joined: Dec 05, 2008
Posts: 6
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

Joined: Dec 05, 2008
Posts: 6
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

Joined: Dec 05, 2008
Posts: 6
By the way:

$ file /usr/libexec/apache2/mod_geoip.so
/usr/libexec/apache2/mod_geoip.so: Mach-O bundle i386
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache and Tomcat on Mac OS X 10.5?