ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE + Forum + MSM + Subdomain

October 23, 2012 2:31pm

Subscribe [3]
  • #1 / Oct 23, 2012 2:31pm

    4ksner

    12 posts

    Trying to make a forum on subdomain site in MSM.
    I do as it is written here - http://expressionengine.com/wiki/How_can_I_run_the_Discussion_Forums_from_a_subdomain_such_as_forums.example.com/
    On the main site I think it would work, but there I do not need.
    I need the forums to other sites connected via MSM, ie for each site I make my section of the forum.

    What I have:
    In the settings section states:

    Forum URL: forum.site.ru
    Keyword to go to the forum: forum

    The directory Forum 2 files index.php and .htaccess.

    .htaccess:

    AddDefaultCharset utf-8
    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} forums.kasimov62.ru
    RewriteCond %{REQUEST_URI} !index.php
    RewriteRule ^(.*)$ index.php/forums/$1

    index.php:

    $system_path = '../ee_system';
    $assign_to_config['site_name']  = 'site2';
    //$assign_to_config['site_url'] = 'http://forum.site2.ru'

    Ie in the settings of the site parameter $assign_to_config [‘site_name’] = ‘site2’; included, or site will not work.
    If this option is enabled on the forum at http://forum.site2.ru displays the site itself, not the forum.
    If you turn off the option says “error connecting to the database.”

    What can you think of?

  • #2 / Oct 25, 2012 10:05am

    Dan Decker

    7338 posts

    Hi 4ksner,

    I’m sorry you are having trouble getting the forums up and running on a sub-domain.

    You shouldn’t need to setup one of your MSM sites in order to facilitate this. The process outlined in the Wiki, while not an officially supported method, is all you need to do.

    Based on some of the info in your post, I tried to visit your forums. Are you sure you have set up the subdomain with your host? I couldn’t get the URL to resolve properly:

    forums.kasimov62.ru

    Are you also using .htaccess to remove index.php? That would probably require a change to the forum redirect rule:

    RewriteCond %{HTTP_HOST} forums.kasimov62.ru
    RewriteCond %{REQUEST_URI} !index.php
    RewriteRule ^(.*)$ /forums/$1

    Cheers,

     

  • #3 / Oct 25, 2012 12:00pm

    4ksner

    12 posts

    Now forum only works at - http://forum.kasimov62.ru/index.php/forum

    And here is the site work and is not a forum - http://forum.kasimov62.ru/

  • #4 / Oct 29, 2012 1:39pm

    Shane Eckert

    7174 posts

    Hey 4ksner,

    I am sorry to hear you are running into this problem.

    Did you make that sub domain change with your hosting provider? That’s not going to work until the server is configured. Can you tell me a little bit about what you did to make this work?

    Cheers,

  • #5 / Nov 20, 2012 2:25am

    4ksner

    12 posts

    I have a dedicated server.
    The path of my forum: /www/forum.kasimov62.ru
    The path of my site: /www/kasimov62.ru

    What settings may affect the operation?

  • #6 / Nov 20, 2012 10:33am

    Shane Eckert

    7174 posts

    Hey there 4ksner,

    Gotcha, but wondering if you have made this change on the server? Is Apache setup for subdomains?

    Thank you,

  • #7 / Nov 20, 2012 11:07am

    4ksner

    12 posts

    Do you need this?

    <VirtualHost 176.9.4.14:8080>
     ServerName forum.kasimov62.ru
     DocumentRoot MY_PATH/www/forum.kasimov62.ru
     AssignUserID USER USER 
     CustomLog /var/www/httpd-logs/forum.kasimov62.ru.access.log combined
     ErrorLog /var/www/httpd-logs/forum.kasimov62.ru.error.log
     ServerAlias <a href="http://www.forum.kasimov62.ru">http://www.forum.kasimov62.ru</a>
     ServerAdmin .(JavaScript must be enabled to view this email address)
     php_admin_value open_basedir "/var/www/USER/data:."
     php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f .(JavaScript must be enabled to view this email address)"
     php_admin_value upload_tmp_dir "/var/www/USER/data/mod-tmp"
     php_admin_value session.save_path "/var/www/USER/data/mod-tmp"
     AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
     AddType application/x-httpd-php-source .phps
    </VirtualHost>
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases