Search code examples
phpapachecoldfusioncoldfusion-8

how to run php-scripts in coldfusion 8 - both inline and from htdocs folder?


Probably crossing a line here... I'm working on a system which runs Coldfusion8.

There are also some PHP Scripts running in the system and I'm having trouble setting this up on my localhost (newbie...)

I have Apache 2.2 with Coldfusion8 and MySQL 5.5 working. PHP 5.2 is installed, but... dead...

Right now I'm tinkering with custom tags from here, which I managed to run inline (great helper file here) but this will only get me half way to the finish line = it only works on the page.

I'm looking for a way to run a php-file which sits in my Apache-htdocs-folder. I can call the script from .htaccess, but nothing really happens. Here is the call:

<IfModule mod_rewrite.c>
   Options +FollowSymlinks
   RewriteEngine On

   # Block
   RewriteCond %{REQUEST_URI} !assets
   RewriteCond %{REQUEST_URI} !ai-cache

   # Redirect to PHP
   RewriteRule \.(?:jpe?g|gif|png)$ script.php

</IfModule>

Question:
Can anyone tell me if that is possible and how I would go about it? A solution that would not force me to uninstall and reinstall everything would be much appreciated.


Solution

  • Start with a standard Lamp stack and make sure apache is running your PHP scripts. Then install CF correctly ... done. Or, if CF is already installed, run the "connector" scripts (found in the /bin/connectors directory usually).