Just wondered if anyone knows if it is possible to install a Wordpress blog as part of an existing Coldfusion website? I just want the one page to be Wordpress without affecting any of the other pages.
Thanks in advance for anyone who might know the answer to this!
Heidi

Dani AI

Generated

Yes. You can run WordPress alongside ColdFusion by isolating it to a path (for example, /blog) and letting the web server route only that path’s PHP requests to PHP, while all .cfm/.cfc requests continue to ColdFusion. This keeps the rest of the site unchanged, matching what Bob described from experience. Avoid URL collisions (do not reuse /blog for CF mappings), give WordPress its own database, and enable pretty permalinks only within the blog path. On IIS, use URL Rewrite; on Apache, proxy PHP in the WordPress folder to PHP-FPM. See Microsoft’s URL Rewrite docs and Apache’s PHP-FPM guidance for details. Using the URL Rewrite Module. Apache HTTPD: PHP-FPM.

Example: Apache (only /var/www/wordpress uses PHP)

Alias /blog "/var/www/wordpress"
<Directory "/var/www/wordpress">
  AllowOverride All
  Require all granted
  <FilesMatch "\.php$">
    SetHandler "proxy:unix:/run/php/php-fpm.sock|fcgi://localhost/"
  </FilesMatch>
</Directory>

Example: IIS web.config (route only /blog URLs to WordPress)

<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="WordPress blog" stopProcessing="true">
          <match url="^blog/.*" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
          </conditions>
          <action type="Rewrite" url="/blog/index.php" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

Recommended Answers

All 2 Replies

Wordpress is php dependent, so I'd imagine you'd need to make sure php is installed on the server. The site lists the minimum requirements to run Wordpress on a server. http://wordpress.org/about/requirements/

Just wondered if anyone knows if it is possible to install a Wordpress blog as part of an existing Coldfusion website? I just want the one page to be Wordpress without affecting any of the other pages.
Thanks in advance for anyone who might know the answer to this!
Heidi

Yes it does work, you must install required php on it. In addition, you have to live with page references to .php pages etc.. I have not tried to use cf_php with any of it yet, but it does work. Our server is CF8, and most recent Wordpress distribution etc.

Bob

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.