Ok Below is a rough guide to get anyone up and going when it comes to building and installing Apache 2 from source. We're gonna do this all from the Terminal found in /Applications/Utilities/Termain.app.
Please note that '$' means new line, don't type this character If you want to know about any of the commands we make from the terminal you can always type "man + command" e.g.
curl is a tool to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, GOPHER, DICT, TELNET, LDAP or FILE). The command is designed to work without user interaction.
This will also detail the options I use.
1: Download Apache 2 from source. Now you can do this from the browser by simply going to http://httpd.apache.org/ but where is the fun in that :o) From the Termainal type:
2: Building
Our installation of Apache2 is going to be stored on the root i.e. /apache2
3: Installing
4: Starting and Stopping Apache 2 Apache 2 should now be installed.
To start Apache 2:
To restart Apache 2:
To stop Apache 2:
That's all you need to get it installed. Once you are at this point the next move is to edit the httpd.conf file, which you can find at /apache2/conf/httpd.conf
Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
[Add Comment]
http://www.devshed.com/c/a/Apache/Building-Apache-...
how did you connect Coldfusion MX 7.02 to your new Apache 2.2 - that failed for me so I switched back to included Apache 1.3...
If you get it to work, maybe you post a step by step tutorial, that would be great.
Thanks.
Ulf
I am running into a roadblock:
configure: error: no acceptable C compiler found in $PATH
following step 2 after configure
I have been trying to find a gcc but all I cant find a binary (don't have a compiler (-:).
Any thoughts??
D.
if so what does that return?
Here is the return from echo $PATH:
/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin
Here is the entire transcript from Terminal:
Dougrs-Computer:~ dougr$ curl -O http://apache.mirrors.tds.net/httpd/httpd-2.2.4.ta...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6216k 100 6216k 0 0 654k 0 0:00:09 0:00:09 --:--:-- 641k
Dougrs-Computer:~ dougr$ gnutar -xzfhttpd-2.2.4.tar.gz
Dougrs-Computer:~ dougr$ cd httpd-2.2.4
Dougrs-Computer:~/httpd-2.2.4 dougr$ sudo ./configure --prefix=/apache2
Password:
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i386-apple-darwin8.10.1
checking host system type... i386-apple-darwin8.10.1
checking target system type... i386-apple-darwin8.10.1
Configuring Apache Portable Runtime library ...
checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i386-apple-darwin8.10.1
checking host system type... i386-apple-darwin8.10.1
checking target system type... i386-apple-darwin8.10.1
Configuring APR library
Platform: i386-apple-darwin8.10.1
checking for working mkdir -p... yes
APR Version: 1.2.8
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
Dougrs-Computer:~/httpd-2.2.4 dougr$ echo $PATH
/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin
Dougrs-Computer:~/httpd-2.2.4 dougr$
Pretty much crying for a compiler eh?
D.
D.
Thanks,
dougrdotnet