logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Installing Apache on a MAC
Author
Andy_M



Joined: 17 Jul 2012
Posts: 1
Location: England, Hampshire

PostPosted: Thu 19 Jul '12 20:14    Post subject: Installing Apache on a MAC Reply with quote

HI Team,

I am using an I Mac running Mac OS 10.8.6 version and have installed the following :-


Last login: Thu Jul 12 18:15:42 on console
Andrew-Masons-iMac:~ andrewmason$ httpd -v
Server version: Apache/2.2.20 (Unix)
Server built: Sep 12 2011 17:42:56
Andrew-Masons-iMac:~ andrewmason$ php -v
PHP 5.3.6 (cli) (built: Sep 12 2011 18:02:42)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
Andrew-Masons-iMac:~ andrewmason$ /usr/local/mysql/bin/mysql --version
/usr/local/mysql/bin/mysql Ver 14.14 Distrib 5.5.17, for osx10.6 (i386) using readline 5.1
Andrew-Masons-iMac:~ andrewmason$ sudo apachectl graceful
Password:
Sorry, try again.
Password:
Andrew-Masons-iMac:~ andrewmason$ sudo apachectl graceful
Andrew-Masons-iMac:~ andrewmason$ sudo apachectl graceful
Andrew-Masons-iMac:~ andrewmason$ sudo apachectl start
Password:
org.apache.httpd: Already loaded
Andrew-Masons-iMac:~ andrewmason$ cd /private/etc/httpd
-bash: cd: /private/etc/httpd: No such file or directory
Andrew-Masons-iMac:~ andrewmason$

When starting Apache why does it not tell me it has started and also I am unable to locate my httpd files.

Please can you also tell me whether this is the correct Apache version to install on my MAC.

Please help.

Thanks. Cool
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 20 Jul '12 9:27    Post subject: Reply with quote

The default layout on MacOS X (leopard) is

Code:

ServerRoot              ::      /usr
Primary Config Fle      ::      /etc/apache2/httpd.conf
DocumentRoot            ::      /Library/WebServer/Documents
ErrorLog                ::      /var/log/apache2/error_log
AccessLog               ::      /var/log/apache2/access_log
cgi-bin                 ::      /Library/WebServer/CGI-Executables (empty by default)
binary                  ::      /usr/sbin/httpd
start/stop              ::      /usr/sbin/apachectl (start|stop|restart|fullstatus|status|graceful|graceful-stop|configtest|help)
Back to top


Reply to topic   Topic: Installing Apache on a MAC View previous topic :: View next topic
Post new topic   Forum Index -> Apache