I'm trying to set up wordpress on a domain with a rails app running on passenger in a subdirectory. I think I had it working for a second but now it's broken and I'm getting the passenger error screen with "no such file to load -- dispatcher" when I hit the subdir. Wordpress works fine. Also this is happening on Dreamhost so all config has to happen in .htaccess files :-(
dreamhost is configured to use PHP5.2.x FastCGI (dreamhost default) and Passenger. "Web directory" is set to ~/domain/wordpress/public
rails app in ~/domain/current (it's deployed with capistrano)
.htaccess in ~/domain/current/public saying:
RailsBaseURI /subdir
PassengerAppRoot /home/mylogin/domain/current
Wordpress in ~/domain/wordpress/public (the "public" is required because I told dreamhost I was using passenger on this domain so they insist on the document root ending in "public")
.htaccess in ~/domain/wordpress/public saying:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
PassengerEnabled Off
RailsBaseURI /subdir
PassengerAppRoot /home/mylogin/domain/current
symlink from ~/domain/wordpress/public/subdir to ~/domain/current/public
Can this be made to work? What is the source of the dispatcher error? Passenger/rails was working on its own before I tried to make this whacky setup with wordpress work, so I know I have everything installed on Dreamhost that I need.