Difference between revisions of "Cfwheels"
From Hostek.com Wiki
m (added categories ~~~) |
m (→Installing CFWheels on ColdFusion / Railo: fixed formatting ~~~) |
||
Line 4: | Line 4: | ||
<li>Download the latest version from http://cfwheels.org/download</li> | <li>Download the latest version from http://cfwheels.org/download</li> | ||
<li>Unzip the contents to a folder on your computer</li> | <li>Unzip the contents to a folder on your computer</li> | ||
− | <li>Remove the | + | <li>'''Remove''' the ''web.config'' and ''IsapiRewrite4.ini'' files.</li> |
<li>Edit the '''.htaccess''' with any plain text editor ''(I.E. notepad, wordpad, etc.)'' and replace the contents with the following: | <li>Edit the '''.htaccess''' with any plain text editor ''(I.E. notepad, wordpad, etc.)'' and replace the contents with the following: | ||
<syntaxhighlight lang="apache"> | <syntaxhighlight lang="apache"> |
Revision as of 21:35, 18 April 2014
Installing CFWheels on ColdFusion / Railo
- Download the latest version from http://cfwheels.org/download
- Unzip the contents to a folder on your computer
- Remove the web.config and IsapiRewrite4.ini files.
- Edit the .htaccess with any plain text editor (I.E. notepad, wordpad, etc.) and replace the contents with the following:
RewriteEngine On RewriteCond %{REQUEST_URI} !^.*/(flex2gateway|jrunscripts|cfide|cfformgateway|CFFileServlet|railo-context|files|images|javascripts|miscellaneous|stylesheets|robots.txt|sitemap.xml|rewrite.cfm)($|/.*$) [NC] RewriteRule ^(.*)$ /rewrite.cfm/$1 [L]
- Setup a MySQL database and create a ColdFusion / Railo DSN for the database. Below are some tutorials on how to do this through your control panel:
- Edit the config/settings.cfm file in a plain text editor and enter your datasource name and your database username and password. Also, remove the comments around that section:
Example:<cfset set(dataSourceName="MyDSNName")> <cfset set(dataSourceUserName="MyDatabaseUsername")> <cfset set(dataSourcePassword="MyDatabasePassword")>
- Upload the files to your site. They must be inside the /wwwroot (Windows) or /public_html (cPanel/Linux) folder for URL rewriting to work properly.
Browse to your site, and you should see the default CFWheels home page.