Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Tuesday, June 18, 2013

Install ColdFusion 9 over Apache / XAMPP on Windows


Copied from: http://www.tbogard.com/2011/04/22/installing-coldfusion-9-over-xampp-part-1-installation-and-first-run/
-----
This first part want to take care of the installation over XAMPP in windows. In further parts I’ll go in customization of the installation, but for now, let’s take care about what we need that is installing coldfusion in xampp.
Requierements :
  • 1GB Memory RAM
  • If you use windows 7 or vista, nothing to worry about. If you use Windows XP you may need to download the latest java runtime from here
  • At least 1GB of space in your hard disk for installation package and final product
  • XAMPP from apache-friends.org. I choosed to use the latest full package (1.7.4) that can be downloaded from here
Considerations
I will assume that the disk who will contain CF9 is C:\, also make sure no other program run the TCP port 80 of your computer (such skype or any web publisher, like MS Web Publisher for Windows Vista Business).
Now let’s start.
1. Make sure you can extract your package in the root of your hard disk, if you cannot success on it, create the folder “xampp” in the root of your hard disk and then extract the content of the XAMPP package on that folder. let’s prove that it works, then we do double click on C:\xampp\xampp-control.exe. We should got this small application:
2. and lets run xampp in our local server as http://127.0.0.1:
3. Now that we know that xampp runs without any problems, Download Coldfusion 9 package from Adobe. The version 9 for windows is around 434MB
4. now we proceed with the installation of Coldfusion 9. Remember if you have Windows XP you may need to install java runtime (JRE6) before you continue with the installation. Double click on the downloaded package and then the installer will start to decompress the installation.
5. The installation will greet us with the welcome screen. Click on Next.
6. Accept the terms of the licence. Click on Next.
7. Here we need to decide what kind of installation we need. if you bought Coldfusion 9, you should input the serial of the product. If you are developer you can use the developer edition or use for 30 days the enterprise edition trial. Click on Next.
8. Here we need to choose “Server Configuration” if we want XAMPP to contain Coldfusion 9. Click on next.
9. Next we need to choose what subcomponents Coldfusion 9. It is recommendable to leave it as is.
10. By default Colfusion 9 will install under C:\coldfusion9. You may change the location, but it is recommendable to leave as is.
11. To make XAMPP able to host Coldfusion, we need to add apache on the set of webservers who will provide Coldfusion. Click on Add.
12. Under Web Server will show, depending on what you have running or have installed on your PC the web servers you have. In this case we will choose Apache. Next we need to find the directory where httpd.conf is. Click on the suggested button:
13. then explore to C:\xampp\apache\conf directory and select it. (for your information, it will look for apache2.conf or httpd.conf – the main apache config file – ).
14. Now we need to find the apache2 binary file…
15. Browse to C:\xampp\apache\bin and select httpd.exe
16. Now we can continue with the installation. Click in OK.
17. Now that xampp apache will be parsed for CF9, we can proceed, click on next.
18. By default, the installer will choose a location that is not the real htdocs location for xampp administrative page:
19. For the sake of administrative management, we need to relocate the directory on c:\xampp\htdocs, in that way we can manage a custom code I will provide in next parts.
20. Now it’s time to input the administrative password for CF9.
21. If you use Dreamweaver or CFbuilder, or any eclipse release that accept connections to Coldfusion RDS services, we may need to input a password to let those editors to explore the applications we build.
22. Now we are ready to perform the installation. Press Next.
23. The installer will install all services, libraries and files. It will inform you about any progress the installation has.
24. Once the installation is finished, we may launch the configuration wizard in the browser. IT IS IMPORTANT TO DO IT!
25. For first time CF9 will be launched on xampp apache server, so proceed giving the password to the configuration application.
26. Then the application will start to configure CF9. Here you can take a coffee and wait about 5 minutes… if in 5 minutes the administrative environment of CF9 does not start, it is recommendable to click on continue
27. When the configuration is finished, you can click in ok.
28. Congratulations! now you are running Adobe Coldfusion CS9 in XAMPP ^^

Troubleshooting

Q. Why I can’t run Apache under XAMPP Control Panel? seems MySQL and other programs runs properly but not apache…
A. Make sure no program runs the Port 80. Apache use by default the port 80 & 443 in order to run websites. Some programs that can make you unable to run Apache are Skype, Microsoft Web Publishing and some antivirus and antispyware that use those ports. Make sure under their settings that those ports are deactivated, so XAMPP can Start Apache without any problem.
Q. Looks like index.cfm is not a default index file directory in my apache configuration. What should I do?
A. Thanks to DWCouch I figured out I missed that step in the configurations when you run your CF Sites.
To solve this problem, please open your httpd.conf file in {drive}:\xampp\apache\ directory and go to the line #245 :
245DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
246               default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
247               home.php home.pl home.cgi home.asp home.shtml home.html home.htm \
modify it to:
245DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
246               default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
247               home.php home.pl home.cgi home.asp home.shtml home.html home.htm \
248               index.cfm index.cfml
And Restart your XAMPP Server
Q. I have a Windows 7 PC 64 bit environment, and I can’t setup datasources with my ODBC Driver. I got this error:
“Unable to update the NT registry.
Variable DRIVERPATH is undefined. “
A.Please consult this thread in Adobe Forums:
http://forums.adobe.com/thread/142416
It explains about a solution using the Registry of windows to solve problems related to ODBC Database connections through CF.

If you find this tutorial useful or there is something I’m missing, make a comment below ^^
Enjoy!

No comments:

Post a Comment