deploying wordpress blog in rails application

Posted . Visible to the public.

1.First of all make sure that your server can parse both php and rails application.

  1. Make a blog directory in side the public folder of rails application.

  2. Deploy all WordPress content inside blog directory.

  3. Configure your database connection at wp-config.php file .

5.Then just paste the following code in the apache config file

<VirtualHost ...>
      ServerName ...
      DocumentRoot ...
      <Location /blog>
         PassengerEnabled off
         <IfModule mod_rewrite.c>
           RewriteEngine On
           RewriteBase /blog/
           RewriteCond %{REQUEST_FILENAME} !-f
           RewriteCond %{REQUEST_FILENAME} !-d
           RewriteRule . /blog/index.php [L]
         </IfModule>
      </Location>
  </VirtualHost>
Sandheep
Posted by Sandheep to Sandheep's deck (2013-05-10 18:33)