|
|
Home /
Groups /
ColdFusion Mac (CF-Mac)
ColdFusion 8 on MacBook serving through Apache?
Hi, I've been trying to install CF8 on my MacBook (OSX v10.4)Paul Silver 10/30/07 01:57 P Is CF running on the built-in webserver (port 8080 I think)? Need to makeDouglas Hyde 10/30/07 02:37 P Douglas Hyde wrote:Lola J. Lee Beno 10/31/07 05:48 A Thanks for the replies everyone.Paul Silver 10/31/07 06:38 A > Patrick - thanks, there isn't anything in thePatrick McElhaney 10/31/07 08:14 A Try running the web server connector again. (There's a button on thePatrick McElhaney 10/30/07 02:37 P Hey Paul,Sanchez, Lehi 10/30/07 03:16 P >Hey Paul,wayne davies 11/14/07 09:15 A Dear Lehiwayne davies 11/14/07 09:19 A Hi Wayne,Sanchez, Lehi 11/14/07 10:14 A Dear Lehiwayne davies 11/14/07 09:25 P Hi Wayne,Sanchez, Lehi 11/15/07 10:30 A Check out:John Michael Barrett 03/07/08 08:35 P Steve,David Fekke 03/08/08 06:02 A Hi Lehi,Stephen Scullion 04/04/08 03:12 A Hi Stephan,Sanchez, Lehi 04/04/08 08:40 A Hi Lehi,steve scullion 04/08/08 10:27 P Stephan,Sanchez, Lehi 04/09/08 08:02 A StephanSanchez, Lehi 04/09/08 08:06 A Thanks so much Lehi,steve scullion 04/09/08 08:24 P Hi, I've been trying to install CF8 on my MacBook (OSX v10.4) I've installed it as a 'Server Configuration' using all the defaults and although it seems to have installed and is started (started via ColdFusion Launcher to make sure.) When I go to .cfm pages it's just showing the text source of the CF file, not parsing it through CF. I'm going to http://127.0.0.1/CFIDE/administrator/index.cfm and getting lots of text source up (as far as that goes for encrypted files.) PHP still comes up fine. Does anyone have any suggestions how to get it working? No changes have been made to Apache's httpd.conf to add things related to ColdFusion or .cfm, which I find a bit odd. Thanks Paul -- Paul Silver Freelance Web Developer Tel: 01273 906020 (UK) http://www.paulsilver.co.uk and http://www.gsadeveloper.com Is CF running on the built-in webserver (port 8080 I think)? Need to make sure it is running before turning to apache. Need to install a module in apache in http.conf (web server adapter) to communicate with CF. If this is missing, won't go. Can move the file or can use an absolute path to the file - usually in the CF "/bin" directory. I am not sure of support for apache 1.3 - I think this is the default apache installation on mac osx. May have to download and install apache 2+ - if it is a development box, I suggest itools from tenon; gives you a fair amount of control over the apache server (I am into easy). Installs in a different directory than the OSX version. Hope that helps. Doug ----- Excess quoted text cut - see Original Post for more ----- Douglas Hyde wrote: > I am not sure of support for apache 1.3 - I think this is the default apache > installation on mac osx. May have to download and install apache 2+ - if it > is a development box, I suggest itools from tenon; gives you a fair amount > of control over the apache server (I am into easy). Installs in a different > directory than the OSX version. > Yes, Apache 1.3 is the default for 10.4, Apache 2.2.6 is the default for 10.5. -- Lola J. Lee Beno - ColdFusion Programmer/Web Designer for Hire http://www.lolajl.net/resume | Blog at http://www.lolajl.net/blog/ "In rivers, the water that you touch is the last of what has passed and the first of that which comes; so with present time." - Leonardo da Vinci (1452-1519) Thanks for the replies everyone. Patrick - thanks, there isn't anything in the /Applications/ColdFusion8/runtime/lib/wsconfig/1/ directory for it to call! I am on Apache 1.3.33 so I'll look at installing 2, perhaps through MAMP, and reinstalling CF. I've never used MAMP before as I had no trouble getting Apache, PHP and MySQL working on their own. However, that's probably because I never upgrade them, so MAMP could be the way of keeping me much more current. Thanks again Paul > Patrick - thanks, there isn't anything in the > /Applications/ColdFusion8/runtime/lib/wsconfig/1/ directory for it to > call! > Did you run the web server connector? That's what puts the mod_jrun.so file in that directory. It should also modify your httpd.conf. ColdFusion 8 is supported on Intel/Tiger. You shouldn't have to do anything special to get it working. Patrick -- Patrick McElhaney 704.560.9117 Try running the web server connector again. (There's a button on the launcher utility.) Here's what the connector adds to your httpd.conf: http://pastie.textmate.org/112398 Patrick ----- Excess quoted text cut - see Original Post for more ----- Hey Paul, Are you going to be using your laptop for easy development purposes? If so I suggest downloading MAMP http://www.mamp.info/en/download.html, this is a download that contains the latest version of Apache/PHP/and MySQL. I love this download because all you have to do is drop a folder in your applications folder and you've got an Apache server ready to be used. I then set up my CF8 to use that apache server and have set up multiple virtual hosts. If this is something you were thinking about doing I can write on to explain how to set it up. It's really easy. Saves a lot of configuring time and troubleshooting. -Lehi Sanchez Hi, I've been trying to install CF8 on my MacBook (OSX v10.4) I've installed it as a 'Server Configuration' using all the defaults and although it seems to have installed and is started (started via ColdFusion Launcher to make sure.) When I go to .cfm pages it's just showing the text source of the CF file, not parsing it through CF. I'm going to http://127.0.0.1/CFIDE/administrator/index.cfm and getting lots of text source up (as far as that goes for encrypted files.) PHP still comes up fine. Does anyone have any suggestions how to get it working? No changes have been made to Apache's httpd.conf to add things related to ColdFusion or .cfm, which I find a bit odd. Thanks Paul -- Paul Silver Freelance Web Developer Tel: 01273 906020 (UK) http://www.paulsilver.co.uk and http://www.gsadeveloper.com ----- Excess quoted text cut - see Original Post for more ----- >http://www.paulsilver.co.uk and http://www.gsadeveloper.com Dear Lehi I have been trying to do just what you are saying here, but when I try to connect to the apache server (using the coldfusion installation interface) I have not been able to do so. I would love to know what directories you indicated to use at this point? Wayne ----- Excess quoted text cut - see Original Post for more ----- Hi Wayne, I wish I had a website where I could post screen shots of the process but it looks as though I'll have to write it out :-) I'll try and give a step by step process and explain it as best as I can. Here we go. 1. Download the MAMP Install and unzip it. Place the MAMP folder in your Applications Folder. 2. In /Applications/MAMP run the MAMP application (this is named MAMP and has the mamp icon on it) This will automatically start the Apache and MySql Servers and will open the start page in your default browser. The default ports are set to :8888 and something else for the MySql, I changed them to :80 for Apache and :3306 for MySQL, To change these hit the "Preferences" button on the MAMP application window and then click on the "Ports" tab at the top. You'll see what your ports are set to, to change them click on the "Set to Default Apache and MySql ports" buttom. The port numbers will change and when you click OK, MAMP will automaticall stop and start the servers. When they start back up again - click on Open Start page to make sure everything is good to go. 3. The Apache server and Mysql are now ready. Now run the Coldfusion installation application. I don't have the installation on my laptop so I'm gonna try doing this from memory. 4. Choose Server Configuration (the first of the 3 - should be selected by default) 5. Sign the user agreement and continue on until you get to the "Add Web Server" configuration. This is the part you set up coldfusion to run on the Apache web server we installed earlier. Click the Add button and a window should pop up with Apache already selected in the first drop down. 6. Here is where we enter the paths for the files or directories that coldfusion needs to know. I can't remember the order but here are the necessary files/directories and their paths The Config Directory /applications/mamp/conf/apache Server Binary /applications/mamp/bin/apache2/bin/httpd (do not type this in - just navigate to it using the browse button - the second bin in this path is actually an alias that takes you to the httpd file.) There is a 3rd file (can't remember) but it's found at applications/mamp/bin/apache2/bin/apachectl 7. then click ok and the webs server configuration is done. Move on to the next installation steps until you come to the step where coldfusion would like to know where to place the CFIDE folder or the Administration folder. Navigate to /applications/mamp/htdocs (this is going to be your webroot - I can write more later about setting up multiple web root configurations) use this as the destination and continue on with the installation 8. You can choose RDS if you want / up to you. Finish the installation. *one note, if you are running Leopard the coldfusion will not run on it's own. When you finish the installation and it asks you to continue the installation in your default browser click ok. Your browser will open but you will get a server error. Keep your browser open and open your terminal application and enter the following. Sudo /applications/coldfusion8/bin/coldfusion start And then enter your password, wait for coldfusion to start. When it starts go back to your browser and do not hit refresh, instead place your cursor at the end of the url in the address bar and hit enter. Coldfusion installation should start and you should be on your way. The web root should be localhost or 127.0.0.1 by default. *for Leopard Users, you will need to do a hard start of Coldfusion everytime the server stops (everytime you turn off your computer) this means opening the terminal and starting coldfusion with that script. I suggest writing an apple script application with automator to have your computer automatically start coldfusion for you when you log in. I can write more about that later if you need. I hope this helps. Let me know if you have any questions. Sorry it's so long. -Lehi Running Coldfusion 8 on Leopard on a Macbook Pro Dear Lehi I have been trying to do just what you are saying here, but when I try to connect to the apache server (using the coldfusion installation interface) I have not been able to do so. I would love to know what directories you indicated to use at this point? Wayne >Hey Paul, > > Are you going to be using your laptop for easy development >purposes? If so I suggest downloading MAMP >http://www.mamp.info/en/download.html, this is a download that contains >the latest version of Apache/PHP/and MySQL. I love this download because >all you have to do is drop a folder in your applications folder and >you've got an Apache server ready to be used. I then set up my CF8 to >use that apache server and have set up multiple virtual hosts. If this >is something you were thinking about doing I can write on to explain how ----- Excess quoted text cut - see Original Post for more ----- Dear Lehi What a great answer!!! It worked like a charm and now I am up and running! Pretty tough after a few year on Windows :) I had a quick look at "automator", and this seems an amazing addition that I had no idea about! If you could point me to a good area to start learning a bit about applescript I would appreciate it, as your idea about starting up cf this way is the way to go! Cheers, Wayne ----- Excess quoted text cut - see Original Post for more ----- Hi Wayne, I'm glad to hear everything worked out. I was a little worried I was going to forget a step! In reference to applescript, I composed a small applescript application this morning in answer to your question. It's a small application that opens your terminal and types the coldfusion script for you and enters your password and starts coldfusion and then closes terminal. It's only a one way street meaning that if coldfusion was already running and you ran this application, it won't do anything and it will just jump to the end of it's process where it closes terminal. If you want to stop coldfusion just type the same coldfusion script but instead of typing 'start' at the end just type 'stop'. Anyway, I've uploaded the automator script to my server at http://lehi.ags.com/cf8 navigate here and a download will automatically start. I've packaged the application with some quick instructions on how to tweak the applescript code so that it enters your password in the terminal. If you are running Leopard you should have no problem following the directions. I don't if the automator scripts in this application would be compatible with the automator in Tiger so just a warning for anyone who tries it in Tiger. Just download the file and unzip it to your desktop and find the readme.txt file for the instructions on how to get it up and running. Let me know if you have any questions or run into any errors. -Lehi Sanchez Dear Lehi What a great answer!!! It worked like a charm and now I am up and running! Pretty tough after a few year on Windows :) I had a quick look at "automator", and this seems an amazing addition that I had no idea about! If you could point me to a good area to start learning a bit about applescript I would appreciate it, as your idea about starting up cf this way is the way to go! Cheers, Wayne >Hi Wayne, > > I wish I had a website where I could post screen shots of the >process but it looks as though I'll have to write it out :-) I'll try >and give a step by step process and explain it as best as I can. Here we >go. > >1. Download the MAMP Install and unzip it. Place the MAMP folder in your ----- Excess quoted text cut - see Original Post for more ----- to >change them click on the "Set to Default Apache and MySql ports" buttom. >The port numbers will change and when you click OK, MAMP will >automaticall stop and start the servers. When they start back up again - ----- Excess quoted text cut - see Original Post for more ----- Web ----- Excess quoted text cut - see Original Post for more ----- the >second bin in this path is actually an alias that takes you to the httpd >file.) >There is a 3rd file (can't remember) but it's found at >applications/mamp/bin/apache2/bin/apachectl > >7. then click ok and the webs server configuration is done. Move on to >the next installation steps until you come to the step where coldfusion >would like to know where to place the CFIDE folder or the Administration >folder. >Navigate to /applications/mamp/htdocs (this is going to be your webroot >- I can write more later about setting up multiple web root >configurations) use this as the destination and continue on with the >installation > >8. You can choose RDS if you want / up to you. Finish the installation. ----- Excess quoted text cut - see Original Post for more ----- contains ----- Excess quoted text cut - see Original Post for more ----- Has anyone figured out how to make this work with the Apache server that's built-in to Leopard? I think the connector is failing to install something correctly. I say that because after trying the CF install several times, I still can't get the CF administrator to open. Safari just downloads the .cfm file as index.cfm.class. I may be able to fix it by tweaking the apache config but I'm just learning it (I'm moving to the mac and I've always used iis). Also, if I don't use the built-in apache server for coldfusion, can I still use it for other things (I'm not sure what that may be but you never know what Apple may decide to use it for later). The last thing I need is to have to go through all of this again at some point. Check out: http://www.trajiklyhip.com/blog/index.cfm/2008/1/14/ColdFusion-8-Apache-22x-and-OS-X-105-Leopard I have yet to get Leopard(still running Tiger), but this blog post seems really detailed. Also, about apache, I have a blog post that might help, feel free to ask question on my blog: http://blog.cfhawaii.com/index.cfm/2007/8/21/Apache--ColdFusion John ----- Excess quoted text cut - see Original Post for more ----- Steve, Are you using a 64 bit machine? I am using a MacBook with the Core 2 Duo processor. I was able to get this to work by using the 64 connector. Adobe will have a new installer update fairly soon to take care of this, in the mean time check out this blog entry. http://www.jeffcoughlin.com/blog/index.cfm/2007/10/30/Running-ColdFusion-8-on-Leopard I was able to get CF8 working with these instructions. David. ----- Excess quoted text cut - see Original Post for more ----- 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 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. 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@ags.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- 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 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 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
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||