No site defined on this host. If you are the owner of this site, please check De
-
Hi,
I installed wordpress mu in cpanel hosting,
Created wildcards,
and created two subdomains,http://onlinesharetrading.net.in
http://blog1.onlinesharetrading.net.in
http://blog2.onlinesharetrading.net.inbut when i visit subdoamin i 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.
Please let me know how to fix this.
-
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?
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 blog2http://onlinesharetrading.net.in
http://blog1.onlinesharetrading.net.in
http://blog2.onlinesharetrading.net.inWhen 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.
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?
I will create a subdomains through the following url.
http://onlinesharetrading.net.in/wp-admin/network/sites.phpHost 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
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?
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 WordPressIn 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.”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?
no…
Only one .htaccess file present for entire domain.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.
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.
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_sitemetaAre they there?
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_usersand 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_taxonomyDoublecheck your wildcard configuration. You need a wildcard DNS records AND you need one in apache (a serveralias) that is *.onlinesharetrading.net.in
- The topic ‘No site defined on this host. If you are the owner of this site, please check De’ is closed to new replies.