|
||
ColdFusion ServerBeginnerDoes ColdFusion Server store it's configuration settings? ColdFusion MX stores its configuration settings in text files. In earlier versions, they were stored in the Windows registry. Disabling ColdFusion RDS on Production Servers.How can I find out what version of ColdFusion my host has installed? Output the server variables with this <cfoutput> server.ColdFusion.ProductLevel = #server.ColdFusion.ProductLevel#<bR> server.ColdFusion.ProductName = #server.ColdFusion.ProductName#<bR> server.ColdFusion.ProductVersion = #server.ColdFusion.ProductVersion#<bR> server.ColdFusion.SerialNumber = #server.ColdFusion.SerialNumber#<bR> server.ColdFusion.SupportedLocales = #server.ColdFusion.SupportedLocales#<bR> server.OS.AdditionalInformation = #server.OS.AdditionalInformation#<bR> server.OS.BuildNumber = #server.OS.BuildNumber#<bR> server.OS.Name = #server.OS.Name#<bR> server.OS.Version = #server.OS.Version# </cfoutput> The single-user version will accept a connection from any IP address, but once it's accepted that connection, it won't accept connections from other IP addresses. So, just stop and restart your server, then connect from the desired IP address. In Windows 95/98/ME, right-click on the ColdFusion Icon in the System Tray, select Shutdown and then restart ColdFusion Server using Start | Programs | ColdFusion Server | ColdFusion Server How can I install Apache and ColdFusion? http://www.thenetprofits.co.uk/coldfusion/apache.cfm How can I view my development web site from a different IP address? Just restart the ColdFusion Application Server Service. I found this error in my log files "Windows NT error number 109 occurred". What does that mean? NT Error 109 is "The pipe has been ended." This just means that the browser stopped waiting. The user clicked on the Stop button before the page had loaded or entered another URL. Is it possible for ColdFusion Server to talk to an AS/400 machine? Yes you use client access's built in odbc connection. Very easy, kind of slow but I haven't really had too much problems with it. Getting AS/400 SQL should speed up everything though, with stored procedures and all.
Then once the connection is confirmed go into your CF Administrator and setup your connection with a username a password, then test. The connection should be successful. What are smservaz.exe and smservauth.exe for? They're the two services used by Advanced Security - the authentication and authorization servers. In Windows, you can often find out what a program does by right-clicking it in Windows Explorer, selecting "Properties", then selecting the "Version" tab. In the case of SmServAuth.exe, that would give you "SiteMinder (TM) Authentication Server". The ColdFusion Application Server service is the service that processes ColdFusion pages. It's ColdFusion Server itself. The Executive service handles processes like running scheduled events, deleting old client variables cfid and cftoken variables from the registry or database, monitoring ColdFusion Server and restarting it if it goes down. It also checks the mail spool directory for mail to be sent out. The RDS service is the one that processes RDS requests from copies of ColdFusion Studio communicating with a remote ColdFusion Server. What is the "Trusted Cache" option in the ColdFusion Administrator? By default, when the CF Server runs a page for the first time, it reads the contents of the ASCII text and converts those contents to what is commonly referred to by Macromedia as "p-code". This "p-code" can be thought of as a "native" version of the instruction set originally contained within the ASCII text. By default also, the CF Server caches this instruction set in memory. You can specify the size of the memory allotted for storing cached instruction sets in the CF Administrator. Now when the page, once cached, is subsequently executed again, the CF Server fetches the instruction set from the cache and executes that, skipping the original step of parsing the ASCII text. However, whatever instructions are contained within that set are reexecuted - database queries, HTML output generation, and so on. By default, before the cached instruction set is reexecuted, the CF Server checks the original ASCII file to see whether it has been changed since the instruction set was generated. This requires some disk access overhead, which is generally unnecessary in a production server environment. So, to avoid this overhead, you can enable "Trusted Cache" in production, and the CF Server won't check the file on disk for changes once it has a cached instruction set. Any database queries within that instruction set will be reexecuted each time the page is run, though. What's the difference between ColdFusion Server Professional and Enterprise? The 3 biggest are native database drivers, SandBox security and ClusterCats:
http://www.allaire.com/documentcenter/partners/CF45ServerFeatureMatrix.doc Where should I submit a ColdFusion bug? Submit it to both Macromedia and CFBugHunt. Why do I get an error with my file newapplication.cfm? Application.cfm and OnRequestEnd.cfm are reserved template names in ColdFusion. You cannot add prefix characters to the templates names, such as Loan_Application.cfm or New_OnRequestEnd.cfm. This will generate an error when they are requested. To rename these templates, you can add suffix characters to "application" or "OnRequestEnd" for the template name, such as Application_Loan.cfm or OnRequestEnd_New.cfm. Otherwise, you can remove Application or OnRequestEnd from the template name altogether. AdvancedCan you run CF 5.0 and CFMX at the same time on the same computer? You can run them simultaneously, but you have to run CFMX on a different port using it's own built-in web server. When you install CFMX, it asks you if you want to run under IIS or whatever other webserver you have installed or run standalone. Choose the standalone. The default port is 8500 so to access CFMX pages you need to use a URL like http://localhost:8500/mysite.cfm Can I hide the .cfm extension of my pages? This tip assumes you're running a Windows-based machine with IIS as your Web server: Without getting into too much detail, ColdFusion Server is an ISAPI-compliant application. IIS identifies all requests that need to be parsed by ColdFusion Server by noting the .CFM extension. It then passes the requested page's contents to a ColdFusion Server DLL, which parses your code and returns the resulting output to IIS for display to the requesting client. Now for the cool part: You can have IIS treat other extensions as if they were ColdFusion scripts. The following example shows you how to configure IIS to pass .HTM extensions to the ColdFusion Server. By sticking with .HTM, the file extensions look like standard HTML-generated pages and don't clue users in to what your back-end might be. Here we go: First, launch IIS. Right-click your Web site node and select Properties. Locate the Home Directory tab. Under Application Settings, click Configuration. Next, on the App Mappings tab, click Add. For Executable, browse to your CFUSION\BIN directory and locate ISCF.DLL. For Extension, type .htm or any extension you want to be processed by ColdFusion. The rest of the options are irrelevant; click OK and exit IIS. Now, any file with the .htm extension (or whatever extension you specified) will be parsed by ColdFusion Server. That means you can save your ColdFusion scripts with the new extension rather than the suggestive .CFM extension--and everything else will function as normal. The above instructions assume you're using IIS 5; if you're not, the procedure should be similar enough for you to figure out how to make the changes to the version you use. Does ColdFusion run on Solaris Intel or just Sparc? Just SPARC. Does the LINUX version of ColdFusion run on a BSD OS? At this time ColdFusion does not run on BSD. Some people have hacked it out so that it can run on FreeBSD using Linux Emulation, but this is not officially supported by Allaire. If you want more information, join the house of fusion cf-linux list at How can I prevent having to grant script permissions on a ColdFusion server? Open up your web site properties and click on the 'Home directory' tab. Click the 'Configuration' button and select the 'app mappings' tab and select the '.cfm' extension and click 'edit'. You should see a check box called 'script engine' with this on CF will work with script access, with it off you will need execute access. CF installs itself by default (as per 4.01, haven't checked 4.0 but who cares) as a script engine. This is emminently better from a security perspective as it prevents any 'stray' executables from being executed on the server. http://forums.allaire.com/devconf/index.cfm?message_ID=252664 How can I run an executable or batch file on the server using ColdFusion? cfexecute enables ColdFusion developers to execute any process on the server machine. <cfexecute name="ApplicationName" arguments="CommandLine Arguments" OUTPUTfile="Output file name" timeout="Timeout interval in seconds"> CFX_Execute from How can I time how long pages take to be processed? If you're running WINNT you can download a freeware CF benchmarker from This benchmarker generates very accurate CF template execution timings. Some say that the CF Scheduler is tricky, some say it's flaky. Either way, I find NT's AT scheduler much much more reliable. Check out the following article Also, try Arcana Scheduler. It works like a charm (only $40). It's very powerful you can have events schedule every minute. Even if Allaire fixes the problem I wont go back You'll either need to cycle the CF service to get it to see the registry changes, or you could drop a script in your CF Administrator directory that has this code in it <cfset rs = cfusion_settings_refresh()> Is ClusterCats included with ColdFusion Server Enterprise or is it a separate product? ClusterCATS isn't a separate install. It is an option as part of the ColdFusion Server Enterprise installation. During the install process, you should see a list of choices and checkboxes for those choices. One of the choices should say "Load balancing and failover" or something like that. That installs ClusterCats. Is it possible to run Coldfusion and PHP with Apache at the same time? Yes, it is. You can generally run as many CGI programs/application servers as you like with a single web server.What account does ColdFusion Server run under? When running any CFML code, that code is run by the CF service, with the rights of whatever user or security context the CF service runs in. On Windows, by default, the CF service like most services runs as SYSTEM. The SYSTEM security context is used by the operating system itself, and has the highest level of privileges on the local machine, but no rights to network resources. What can I do to optimise the speed of my NT/ColdFusion Server?
http://www1.allaire.com/Handlers/index.cfm?ID=11772&method=Full What effect does altering the ColdFusion Administrator performance related settings have? http://www.defusion.com/articles/index.cfm?ArticleID=130 This problem will force some drastic changes in the server. There are several registry keys that can be added that effectively eliminate the caching; the cache scavenger as Microsoft calls it. All of the entries go into the key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters ObjectCacheTTL (DWORD)This thing supposedly tells IIS how long to hold on to the files. They have a special value (as opposed to using just 0!) of 0xFFFFFFFF that supposedly disables the scavenger. Defaults to 10 minutes. ObjectFilesInCache (DWORD)This reduces the total memory allowed to be in cache. You can simply set this one to zero. Defaults to 1000 for every 32Mb of memory. MemoryCacheSize (DWORD)This caches system handles and other things for IIS (directory listings, etc.) You can set this to 0 and eliminate the caching supposedly. Defaults to 3072000 (3Mb). DisableMemoryCache (DWORD)Well, this one I found from a reference to a knowledge book in the forums. Apparently, setting MemoryCache to 0 wasn't intuitive enough so they made an an extra value. Set this to 1 and it REALLY will work. I tried this one yesterday and it's all good to go now. KB Article Q191742 for reference. P-Code is what CF compiles the templates into - if you have the templates cached then it reads them out of memory. If you turn on Trusted Cache, then it'll never look for newer versions of the template, so it runs even faster. Put the Template Cache up (fairly) big, and let the server do what it has to. As a rule of thumb on template cache size, add together the total filesize of all your ColdFusion templates and multiply the answer by four. This give CF room for maneuvering and it should never have to remove items from cache. What order should I install the software on a new ColdFusion server? If CF 4 is an upgrade: Vanilla NT - No IIS else Vanilla NT - No IIS What website stress-testing applications are there? http://www.segue.com/ Segue SilkPerformer http://www.rswsoftware.com/ RSW E-Load http://www.merc-int.com/ Mercury LoadRunner http://www.benchmarkfactory.com/ Benchmark Factory http://homer.rte.microsoft.com/ Microsoft Web Application Stress Tool What's the difference between ColdFusion 4.0 and 4.5? View the feature matrix at Allaire's site What's the easiest route to installing 4.5.2 on a server? If you've got the SP 2 full version, as opposed to the upgrade, you can just install it directly. |
||
|
||