Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    I installed wordpress mu in cpanel hosting,

    You installed WORDPRESS via cpanel πŸ™‚ Did you activate Mutlisite? It’s not an ‘install’ thing, it’s an edit a file one.

    Did you check the directions on that page?

    Have you edited the wp-config.php file?

    Were you able to create a subsite?

    Thread Starter ramanathancse2007

    (@ramanathancse2007)

    Hi Ipstenu,

    1) Created Wildcards domain.
    2) Edited wp_config file define(‘WP_ALLOW_MULTISITE’,true);
    3) Removed www. in general settings
    4) Then in Tools menu network setup menu given the title and email id -> Installed
    5) created blogs.dir in wp-content
    6)Again edited wp-config and .htaccess
    7) Relogin in wordpress admin
    8) Created new sites like blog1 and blog2

    http://onlinesharetrading.net.in
    http://blog1.onlinesharetrading.net.in
    http://blog2.onlinesharetrading.net.in

    When i view the blog 1 and blog2 got this error

    No site defined on this host. If you are the owner of this site, please check Debugging a WordPress Network for help.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    8) Created new sites like blog1 and blog2

    You’re going to http://onlinesharetrading.net.in/wp-admin/network to create these, correct?

    Have you asked your host if they permit subdomains?

    Other than that, all I can think is that you didn’t set up your wp-config correctly. Can you share what you added?

    Thread Starter ramanathancse2007

    (@ramanathancse2007)

    I will create a subdomains through the following url.
    http://onlinesharetrading.net.in/wp-admin/network/sites.php

    Host is Hostmonster.com and they allow unlimited subdomains creation.

    I have shared Error log, wp-config and .htaccess

    I got error log,

    [05-Sep-2011 09:55:56] PHP Parse error: syntax error, unexpected T_IF in /home3/onlinfk4/public_html/onlinesharetrading/wp-config.php on line 87

    In wp-config file,

    define('WP_ALLOW_MULTISITE',true);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'onlinesharetrading.net.in' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    In ht-access file,

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+)  wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Your .htaccess is a hot mess of duplication. When the directions said REPLACE, they really meant REPLACE. You added it on.

    THIS is the .htaccess for SUBDOMAINS. Change to that first.

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress

    What was line 87 of your config file?

    Thread Starter ramanathancse2007

    (@ramanathancse2007)

    In the root of .htaccess file only these lines are present, i updated it now

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule . index.php [L]
    # END WordPress

    In the wp-config 87th Line is
    define( ‘PATH_CURRENT_SITE’, ‘/’ );

    But the error :
    “No site defined on this host. If you are the owner of this site, please check Debugging a WordPress Network for help.”

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    In the root of .htaccess file only these lines are present

    What do you mean? Do you have MULTIPLE .htaccess files?

    You didn’t install WP in a subfolder did you?

    Thread Starter ramanathancse2007

    (@ramanathancse2007)

    no…
    Only one .htaccess file present for entire domain.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Okay, good.

    All I can think is you messed up the wp-config.php file.

    Make a new one. There shuold be a wp-config.sample file in your install. Rename wp-config.php to wp-config.old, and COPY wp-config.sample to wp-config.php

    Add in the settings from your old file.

    Thread Starter ramanathancse2007

    (@ramanathancse2007)

    Yes i did the sample to wp-config and wp-config to old, settings are added, i added one new subdomain.

    test.onlinesharetrading.net.in

    But i got the same error.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    I’m wondering if your database isn’t getting built out correctly … Go into your database and look for the tables

    wp_2_posts
    wp_sites
    wp_sitemeta

    Are they there?

    Thread Starter ramanathancse2007

    (@ramanathancse2007)

    I have the tables

    wp_blogs
    wp_blog_versions
    wp_commentmeta
    wp_comments
    wp_links
    wp_options
    wp_postmeta
    wp_posts
    wp_registration_log
    wp_signups
    wp_site
    wp_sitemeta
    wp_terms
    wp_term_relationships
    wp_term_taxonomy
    wp_usermeta
    wp_users

    and for each subdomain 2,3,4 – i have nine tables for each.

    wp_2_commentmeta
    wp_2_comments
    wp_2_links
    wp_2_options
    wp_2_postmeta
    wp_2_posts
    wp_2_terms
    wp_2_term_relationships
    wp_2_term_taxonomy

    Doublecheck your wildcard configuration. You need a wildcard DNS records AND you need one in apache (a serveralias) that is *.onlinesharetrading.net.in

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘No site defined on this host. If you are the owner of this site, please check De’ is closed to new replies.