Re: CF8 on MacBook serving through Apache?

View: New views
7 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: CF8 on MacBook serving through Apache?

by Stephen Scullion :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Lehi,
I'm trying to get coldFusion to work on my macbook pro.
I read you post, everything works until I switch the ports to the default apache port.
The mysql server works, but the Apache server won't start if it's set to port 80.
Here's the configuration of my computer.
Macbook Pro 2.6GHz intel Core 2 Duo with lots of ram, Mac OS X 10.5.2.

Before I tried your method, I tried to install coldFusion 8, several times with any luck.
Could this be screwing things up?
I don't know much about unix, so trying to figure out what is going on with apache has been challenging at best.

Would you know how to fix this?

Any help would much appreciated.

sskully

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/CF-Mac/message.cfm/messageid:5163
Subscription: http://www.houseoffusion.com/groups/CF-Mac/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.48

RE: CF8 on MacBook serving through Apache?

by Sanchez, Lehi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Stephan,

It's been a while since I've installed CF8 using MAMP. Since then I've
had the opportunity to do some beta testing with future releases of CF8
and decided it best to install it the natural way - which means using
the built in apache server on the Macbook. So, I'm going to give you
some directions that helped me get CF8 working on the built in Apache
server for Leopard. We will not be using MAMP so please make a copy of
all your sites that you have located in the HTDOCS folder located in the
MAMP folder in your Applications folder. We'll place those files in your
SITES folder - located at /users/your-username/sites (if you just click
on the your home folder in the lefthand sidebar in finder you'll see the
sites folder - place everything you had in your htdocs folder to this
one - make sure to delete the coldfusion folders CFIDE + CFDOCS - the
CF8 installation will replace these)

Once you've made a copy of everything in your htdocs folder, stop MAMP -
if its running- and

drag the entire MAMP folder to the trash (the beauty of simplicity) then


run the coldfusion uninstaller and then drag any leftover CF8 folder to
the trash.

Empty the trash.

Download the 64-bit version of Coldfusion - you have plenty of ram on
your Macbook Pro like me. This will be fine. This will compliment well
with the 64-bit Apache you have already installed with Leopard. I did
this using a beta version of the 64-bit CF8. I haven't tried it using
the current release but it should work the same.

Next we'll need to configure Apache, Apple has placed very tight
security in the configuration file, which is the trouble I had when I
started testing everything. We're going to tweak the file and loosen up
the apple grips a little to let CF8 breathe.

Open up terminal located in the utilities folder in the applications
folder. Then type the following and hit enter type in your password in
needed and hit enter. This is to stop the apache server if running.

        sudo /usr/sbin/apachectl stop

then type

        sudo pico /etc/apache2/httpd.conf

if you have textmate with the command line option type this

        mate /etc/apache2/httpd.conf

the httpd.conf file should now be open in terminal or textmate. Find the
following lines and do the following (some of these lines will be
commented out - if so - uncomment them by removing the # at the
beginning of the line and then make the edit) the terminal doesn't have
line numbers so you'll just have to look for the line - I'll list them
in order - just scan the file for the keywords and you'll find them.

line 39: Listen 127.0.0.1:80

line 126: User www (change this to your mac username so it reads User
your-username

line 127: Group www (comment this out by adding a # at the beginning of
the line.

Line 156: ServerName localhost (I can't remember if I had to add this or
if it was already there and I had to change it but somewhere around line
156 make sure ServerName Localhost is there.)

Line 163: DocumentRoot "/users/your-username/sites" (change this line to
make it look like this

Line 190: <Directory "/users/your-username/sites">

Line 241: find the section of code that looks like this:
<Files "rsrc">
 Order allow,deny
 Deny from all
 Satisfy All
</Files>

Add a pound sign in front of every line so it looks like this:

#<Files "rsrc">
# Order allow,deny
# Deny from all
# Satisfy All
#</Files>

We are now done with the file - in terminal hit ctrl+X - then hit Y and
then hit enter.

Type the following in terminal

        sudo /usr/sbin/apachectl start

in your browser go to localhost - you should see the default apple index
file saying "Your website"

now we're ready to install CF8. you know the routine. Click the
installer and follow it through until you get to the web server
questions.

Choose "Server Configuration"

Let CF8 install it's folders in the default location

For Configure Web Servers/Websites choose "Configure Web Server
connector for coldfusion" then click the "add" button

We'll need to change the default locations to:

Configuration Directory: /etc/apache2
..... server binary: /usr/sbin/httpd
..... server control script: /usr/sbin/apachectl

Click OK

Click continue (if you are installing a 32-bit coldfusion - this
installation will throw an error - you must have the 64-bit version of
the coldfusion server)

When it asks you for the root folder - click browser and browse to your
/users/your-username/sites folder and click continue - you should be
able to get through the rest of the installation on your own - like
setting up passwords and setting up RDS if you want - yada yada - this
should all work, this is how I got it to run, now keep in mind that am
using a beta version of the software, I haven't tried it with the
current release of CF8. Good luck and let me know how it goes.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/CF-Mac/message.cfm/messageid:5164
Subscription: http://www.houseoffusion.com/groups/CF-Mac/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.48

Re: CF8 on MacBook serving through Apache?

by Stephen Scullion :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Lehi,
Thank you so much for helping me.
After my post to you I reinstalled my OS.
I'm going through your instructions from you email.
I've changed my http.conf file as per your instructions. But my apache won't
start with the new changes. Could you please take a look at my httpd.conf
file for me and let me know what I'm doing wrong.

Any help would much appreciated.

Thanks,
Stephen

On Fri, Apr 4, 2008 at 6:40 AM, Sanchez, Lehi <lsanchez@...> wrote:

> Hi Stephan,
>
> It's been a while since I've installed CF8 using MAMP. Since then I've
> had the opportunity to do some beta testing with future releases of CF8
> and decided it best to install it the natural way - which means using
> the built in apache server on the Macbook. So, I'm going to give you
> some directions that helped me get CF8 working on the built in Apache
> server for Leopard. We will not be using MAMP so please make a copy of
> all your sites that you have located in the HTDOCS folder located in the
> MAMP folder in your Applications folder. We'll place those files in your
> SITES folder - located at /users/your-username/sites (if you just click
> on the your home folder in the lefthand sidebar in finder you'll see the
> sites folder - place everything you had in your htdocs folder to this
> one - make sure to delete the coldfusion folders CFIDE + CFDOCS - the
> CF8 installation will replace these)
>
> Once you've made a copy of everything in your htdocs folder, stop MAMP -
> if its running- and
>
> drag the entire MAMP folder to the trash (the beauty of simplicity) then
>
>
> run the coldfusion uninstaller and then drag any leftover CF8 folder to
> the trash.
>
> Empty the trash.
>
> Download the 64-bit version of Coldfusion - you have plenty of ram on
> your Macbook Pro like me. This will be fine. This will compliment well
> with the 64-bit Apache you have already installed with Leopard. I did
> this using a beta version of the 64-bit CF8. I haven't tried it using
> the current release but it should work the same.
>
> Next we'll need to configure Apache, Apple has placed very tight
> security in the configuration file, which is the trouble I had when I
> started testing everything. We're going to tweak the file and loosen up
> the apple grips a little to let CF8 breathe.
>
> Open up terminal located in the utilities folder in the applications
> folder. Then type the following and hit enter type in your password in
> needed and hit enter. This is to stop the apache server if running.
>
>        sudo /usr/sbin/apachectl stop
>
> then type
>
>        sudo pico /etc/apache2/httpd.conf
>
> if you have textmate with the command line option type this
>
>        mate /etc/apache2/httpd.conf
>
> the httpd.conf file should now be open in terminal or textmate. Find the
> following lines and do the following (some of these lines will be
> commented out - if so - uncomment them by removing the # at the
> beginning of the line and then make the edit) the terminal doesn't have
> line numbers so you'll just have to look for the line - I'll list them
> in order - just scan the file for the keywords and you'll find them.
>
> line 39: Listen 127.0.0.1:80
>
> line 126: User www (change this to your mac username so it reads User
> your-username
>
> line 127: Group www (comment this out by adding a # at the beginning of
> the line.
>
> Line 156: ServerName localhost (I can't remember if I had to add this or
> if it was already there and I had to change it but somewhere around line
> 156 make sure ServerName Localhost is there.)
>
> Line 163: DocumentRoot "/users/your-username/sites" (change this line to
> make it look like this
>
> Line 190: <Directory "/users/your-username/sites">
>
> Line 241: find the section of code that looks like this:
> <Files "rsrc">
>  Order allow,deny
>  Deny from all
>  Satisfy All
> </Files>
>
> Add a pound sign in front of every line so it looks like this:
>
> #<Files "rsrc">
> # Order allow,deny
> # Deny from all
> # Satisfy All
> #</Files>
>
> We are now done with the file - in terminal hit ctrl+X - then hit Y and
> then hit enter.
>
> Type the following in terminal
>
>        sudo /usr/sbin/apachectl start
>
> in your browser go to localhost - you should see the default apple index
> file saying "Your website"
>
> now we're ready to install CF8. you know the routine. Click the
> installer and follow it through until you get to the web server
> questions.
>
> Choose "Server Configuration"
>
> Let CF8 install it's folders in the default location
>
> For Configure Web Servers/Websites choose "Configure Web Server
> connector for coldfusion" then click the "add" button
>
> We'll need to change the default locations to:
>
> Configuration Directory: /etc/apache2
> ..... server binary: /usr/sbin/httpd
> ..... server control script: /usr/sbin/apachectl
>
> Click OK
>
> Click continue (if you are installing a 32-bit coldfusion - this
> installation will throw an error - you must have the 64-bit version of
> the coldfusion server)
>
> When it asks you for the root folder - click browser and browse to your
> /users/your-username/sites folder and click continue - you should be
> able to get through the rest of the installation on your own - like
> setting up passwords and setting up RDS if you want - yada yada - this
> should all work, this is how I got it to run, now keep in mind that am
> using a beta version of the software, I haven't tried it with the
> current release of CF8. Good luck and let me know how it goes.
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/CF-Mac/message.cfm/messageid:5173
Subscription: http://www.houseoffusion.com/groups/CF-Mac/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.48

RE: CF8 on MacBook serving through Apache?

by Sanchez, Lehi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stephan,

I'd love to help out where I can, do you have the conf file posted
somewhere so I can take a look? These things are tricky and just having
one little thing wrong can send you on a mile long scavenger hunt! :-)
However, we'll have you up and running in no time!

- Lehi

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/CF-Mac/message.cfm/messageid:5174
Subscription: http://www.houseoffusion.com/groups/CF-Mac/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.48

RE: CF8 on MacBook serving through Apache?

by Sanchez, Lehi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stephan

Sorry to post twice in a row like this but I just remembered that Adobe
has just released the new versions of ColdFusion Server 8. These were
the ones I had the opportunity to test. I suggest downloading the 64-bit
version for your installation. The 32-bit is not compatible with the
Leopard Apache Installation since this Apache is 64-bit.

-Lehi

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/CF-Mac/message.cfm/messageid:5175
Subscription: http://www.houseoffusion.com/groups/CF-Mac/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.48

Re: CF8 on MacBook serving through Apache?

by Stephen Scullion :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks so much Lehi,
I finally was able to make it work!
It was my httd.conf file. I was putting in my login name instead of my user
name. I know I suck!

Thank you for all your help!

Stephen

>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/CF-Mac/message.cfm/messageid:5177
Subscription: http://www.houseoffusion.com/groups/CF-Mac/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.48

Re: CF8 on MacBook serving through Apache?

by Doron Katz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Lehi,

I am having a lot of trouble installing CF8 on leopard, following your instructions for Apache.

I followed your httpd.conf changes, but I think i was confused with the <Directory..> syntax. So I left that as it was originally (shouldnt be an issue if i point the cf8 installation to that default location in /Library).

After my CF8 installation, I went to localhost to launch CFIDE, but i keep on getting the rotating circle when I load CFIDE, doesnt do anything. I restarted CF/Apache and still get the same result. Cant figure out whats wrong mate.

What do you think? Do you want my httpd.conf? Or can you provide yours?

Thanks
Doron





>Hi Stephan,
>
>It's been a while since I've installed CF8 using MAMP. Since then I've
>had the opportunity to do some beta testing with future releases of CF8
>and decided it best to install it the natural way - which means using
>the built in apache server on the Macbook. So, I'm going to give you
>some directions that helped me get CF8 working on the built in Apache
>server for Leopard. We will not be using MAMP so please make a copy of
>all your sites that you have located in the HTDOCS folder located in the
>MAMP folder in your Applications folder. We'll place those files in your
>SITES folder - located at /users/your-username/sites (if you just click
>on the your home folder in the lefthand sidebar in finder you'll see the
>sites folder - place everything you had in your htdocs folder to this
>one - make sure to delete the coldfusion folders CFIDE + CFDOCS - the
>CF8 installation will replace these)
>
>Once you've made a copy of everything in your htdocs folder, stop MAMP -
>if its running- and
>
>drag the entire MAMP folder to the trash (the beauty of simplicity) then
>
>
>run the coldfusion uninstaller and then drag any leftover CF8 folder to
>the trash.
>
>Empty the trash.
>
>Download the 64-bit version of Coldfusion - you have plenty of ram on
>your Macbook Pro like me. This will be fine. This will compliment well
>with the 64-bit Apache you have already installed with Leopard. I did
>this using a beta version of the 64-bit CF8. I haven't tried it using
>the current release but it should work the same.
>
>Next we'll need to configure Apache, Apple has placed very tight
>security in the configuration file, which is the trouble I had when I
>started testing everything. We're going to tweak the file and loosen up
>the apple grips a little to let CF8 breathe.
>
>Open up terminal located in the utilities folder in the applications
>folder. Then type the following and hit enter type in your password in
>needed and hit enter. This is to stop the apache server if running.
>
> sudo /usr/sbin/apachectl stop
>
>then type
>
> sudo pico /etc/apache2/httpd.conf
>
>if you have textmate with the command line option type this
>
> mate /etc/apache2/httpd.conf
>
>the httpd.conf file should now be open in terminal or textmate. Find the
>following lines and do the following (some of these lines will be
>commented out - if so - uncomment them by removing the # at the
>beginning of the line and then make the edit) the terminal doesn't have
>line numbers so you'll just have to look for the line - I'll list them
>in order - just scan the file for the keywords and you'll find them.
>
>line 39: Listen 127.0.0.1:80
>
>line 126: User www (change this to your mac username so it reads User
>your-username
>
>line 127: Group www (comment this out by adding a # at the beginning of
>the line.
>
>Line 156: ServerName localhost (I can't remember if I had to add this or
>if it was already there and I had to change it but somewhere around line
>156 make sure ServerName Localhost is there.)
>
>Line 163: DocumentRoot "/users/your-username/sites" (change this line to
>make it look like this
>
>Line 190: <Directory "/users/your-username/sites">
>
>Line 241: find the section of code that looks like this:
><Files "rsrc">
> Order allow,deny
> Deny from all
> Satisfy All
></Files>
>
>Add a pound sign in front of every line so it looks like this:
>
>#<Files "rsrc">
># Order allow,deny
># Deny from all
># Satisfy All
>#</Files>
>
>We are now done with the file - in terminal hit ctrl+X - then hit Y and
>then hit enter.
>
>Type the following in terminal
>
> sudo /usr/sbin/apachectl start
>
>in your browser go to localhost - you should see the default apple index
>file saying "Your website"
>
>now we're ready to install CF8. you know the routine. Click the
>installer and follow it through until you get to the web server
>questions.
>
>Choose "Server Configuration"
>
>Let CF8 install it's folders in the default location
>
>For Configure Web Servers/Websites choose "Configure Web Server
>connector for coldfusion" then click the "add" button
>
>We'll need to change the default locations to:
>
>Configuration Directory: /etc/apache2
>.... server binary: /usr/sbin/httpd
>.... server control script: /usr/sbin/apachectl
>
>Click OK
>
>Click continue (if you are installing a 32-bit coldfusion - this
>installation will throw an error - you must have the 64-bit version of
>the coldfusion server)
>
>When it asks you for the root folder - click browser and browse to your
>/users/your-username/sites folder and click continue - you should be
>able to get through the rest of the installation on your own - like
>setting up passwords and setting up RDS if you want - yada yada - this
>should all work, this is how I got it to run, now keep in mind that am
>using a beta version of the software, I haven't tried it with the
>current release of CF8. Good luck and let me know how it goes.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-mac/message.cfm/messageid:5891
Subscription: http://www.houseoffusion.com/groups/cf-mac/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.48