Help - Search - Members - Calendar
Full Version: Multiple Blog Installation - Comment Preview And Search Results Bug
Movable Type Community Forum > Using Movable Type > Commenting System
denbradshaw
Movable type has the fantastic power to allow you to build and manage several blogs out of one installation...

It then fails to support multiple domains on an installation by forcing the SEARCH RESULTS and COMMENT PREVIEW / COMMENT THANK YOU pages to be on the installation URL...

This then breaks the design (and takes your users from one blog URL to another).

Is there a work-around or fix for this?
OtherNiceMan
What you need to do is use a relative path for your CGIPath and mt-static and then have a symbolic link back to the MT installation directory in each doc root.
2470144
QUOTE (OtherNiceMan @ Oct 22 2008, 06:33 PM) *
What you need to do is use a relative path for your CGIPath and mt-static and then have a symbolic link back to the MT installation directory in each doc root.



Rob -

Can you provide a little more detail here? I'm having a problem similar to this. I have a blog running on a separate IP and the path for comments works if I force the mt.js paths to point to the installation IP (very ugly), and I have no solution for the search as yet.

I'm on a Windows 2003 IIS box (does this matter...)? :-) Therefore I'm using a virtual directory path to MT on the installation IP:

Blog: http://www.askkane.com/ (only if you stayed in Motel 6 last night);
Installation IP: http://76.12.35.210/virMT/mt.cgi

So: QUESTIONS:

1. Where/What CGIPath and mt-static (file name?); and,
2. What is meant by a "symbolic" link in each doc root (ii.e. what doc? root)?

Thanks for your advice,

Chris Kane
OtherNiceMan
Slightly different for IIS.

On the file system you have (for argument sake)

c:\inetpub\wwwroot\mt <-- MT cgi files
c:\inetpub\wwwroot\mt-static <-- MT mt-static file
c:\interpub\wwwroot\blog1 <-- directory that is the document root for www.blog1.com
c:\interpub\wwwroot\blog2 <-- directory that is the document root for www.blog2.com
c:\interpub\wwwroot\blog3 <-- directory that is the document root for www.blog3.com

In mt-config.cgi you have
CGIPath \mt
StaticWebPath \mt-static

In IIS you the create virtual directories under each domain so that
www.blog1.com/mt <-- points to c:\inetpub\wwwroot\mt on server
www.blog1.com/mt-static <-- points to c:\inetpub\wwwroot\mt-static on server
www.blog2.com/mt <-- points to c:\inetpub\wwwroot\mt on server
www.blog2.com/mt-static <-- points to c:\inetpub\wwwroot\mt-static on server
www.blog3.com/mt <-- points to c:\inetpub\wwwroot\mt on server
www.blog3.com/mt-static <-- points to c:\inetpub\wwwroot\mt-static on server
2470144
Another one that (of course) works perfectly.

Added the virtual directory (pointing to the install MT dir) on the 'publish to' IP in IIS and it nearly worked...

However, if you're working in IIS, you need to remember to add (or make certain you already have) a .CGI extension to the Application Configuration file:

In IIS, go to the blog website, right-click and select Properties, then the Home Directory tab, click the Configuration button, and, under the list of extensions check to see if there is a .CGI extension. If not, click 'add' and for the "executable' box enter the path to Perl (could be something like: C:\Perl\bin\perl.exe "%s" %s ), the Extension is .cgi. Under 'Verbs' select 'Limit to:' and enter, "GET,HEAD,POST". That should do it...

After that, try to undo the mess you made before you found this (correct) solution.

Thanks,

Chris Kane
denbradshaw
QUOTE (OtherNiceMan @ Oct 22 2008, 10:33 AM) *
What you need to do is use a relative path for your CGIPath and mt-static and then have a symbolic link back to the MT installation directory in each doc root.


Thank you for the response! Would you mind showing an example of what that'd look like? (I'm assuming here that it will be different from the IIS example you gave below)

Thanks again!
OtherNiceMan
There is not any real different under unix,

\user\home\public_html\mt <-- MT cgi files
\user\home\public_html\mt-static <-- MT mt-static file
\user\home\public_html\blog1 <-- directory that is the document root for www.blog1.com
\user\home\public_html\blog2 <-- directory that is the document root for www.blog2.com
\user\home\public_html\blog3 <-- directory that is the document root for www.blog3.com

In mt-config.cgi you have
CGIPath \mt
StaticWebPath \mt-static

In Apache \ CPanel \ Plesk you the create symlinks under each domain so that
www.blog1.com/mt <-- points to \user\home\public_html\mt on server
www.blog1.com/mt-static <-- points to \user\home\public_html\mt-static on server
www.blog2.com/mt <-- points to \user\home\public_html\mt on server
www.blog2.com/mt-static <-- points to \user\home\public_html\mt-static on server
www.blog3.com/mt <-- points to \user\home\public_html\mt on server
www.blog3.com/mt-static <-- points to \user\home\public_html\mt-static on server
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.