Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix WordPress Multisite Issues – DNS Error

Discussion in 'Misc WordPress Requests' started by chrisdbliss, Oct 11, 2017.

  1. chrisdbliss

    Guest

    WordPress Multisite Issues – DNS Error, by chrisdbliss

    Alright, so from looking at the forums and other places online, this looks like an issue that has been hammered to the bone but I am still struggling with it and every answer I find has not worked with me. I created a wordpress site for my wife so that she can blog. We haven’t done much with it even though it’s been up for a long time but I wanted to see if I could create a sub domain as a part of this site. The original site for my wife is http://www.houseofharrison.net and I was trying to create a sub domain vaping.houseofharrison.net. To do this, I first went through the process of adding multisite functionality to wordpress. I went step by step like this:

    1. logged into my cpanel hosted by bluehost and created a wildcard subdomain of *.houseofharrison.net. Bluehost automatically put this file in root/public_html/wildcard.

    2. I accessed the wp-config.php file and added the following to the code:
    define( ‘WP_ALLOW_MULTISITE’, true );
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘www.houseofharrison.net’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    3. I then deactivated all plugins for the site and went into network setup and set it up to use sub domains.

    4. I accessed the .htaccess file and replaced the previous code with this code:
    # Use PHP5.4 as default
    AddHandler application/x-httpd-php54 .php
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    5. my understanding at this point is that my dashboard is now ready for me to add new sites. So I went My sites -> network admin -> sites -> add new and created the site vaping.houseofharrison.net.

    6. At this point, the site should be done. I should be able to access the dashboard of the new sub domain and add a theme and I should be able to access the site. Whenever I try to access either the dashboard or the site itself it says this:

    This site can’t be reached
    vaping.houseofharrison.net’s server DNS address could not be found.
    ERR_NAME_NOT_RESOLVED

    So I am really not sure where to go from here. I have tried a few other things but my understanding is that following those procedures, my site should be up and running. http://www.houseofharrison.net is still accessible through all of this but the subdomain is not. Thank you all for your help in advance, I hope we can get to the bottom of this.

    Here are the full files for your viewing pleasure in case it helps also:

    .htaccess
    _______________________________________________________________
    # Use PHP5.4 as default
    AddHandler application/x-httpd-php54 .php

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>

    # END WordPress
    _______________________________________________________________

    wp-config.php
    _______________________________________________________________
    <?php
    /**
    * The base configuration for WordPress
    *
    * The wp-config.php creation script uses this file during the
    * installation. You don’t have to use the web site, you can
    * copy this file to “wp-config.php” and fill in the values.
    *
    * This file contains the following configurations:
    *
    * * MySQL settings
    * * Secret keys
    * * Database table prefix
    * * ABSPATH
    *
    * @link https://codex.wordpress.org/Editing_wp-config.php
    *
    * @package WordPress
    */

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘houseqh0_wordpressbf5’);

    /** MySQL database username */
    define(‘DB_USER’, ‘houseqh0_wordbf5’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘2d8Ho3qxVwoj’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    /**#@+
    * Authentication Unique Keys and Salts.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    *
    * @since 2.6.0
    */
    define(‘AUTH_KEY’, ‘R{lx+W]*u=;LF!_dN_TAoKo+JTLh&KyNOQS;C)dxvjPdI%m=ok*L*;yWWkT_xR$SW]wpUzf<|=xTjOAnv?EuZT>tjegG&]nO+rnQqi{$h(njtXBXBzL-p;k([email protected]&f’);
    define(‘SECURE_AUTH_KEY’, ‘rMni([)Qq+vrB?+]*(drdDYXMVdqmQu!UPS?;V}At^Uy%[email protected][email protected]{MNYR$-SO;gtAhmLeP/Vc$Wh[)jB(K*!tm{ajfnHa(EaXZycy<QTm<!J^Yr%H<Y]AQqO’);
    define(‘LOGGED_IN_KEY’, ‘ga+&_V=<[email protected]|CW!(?uMSDF<lvJobJAHPAz!mvxkri}Df;K^jES_guKGmKcyZSRUSs[@YbC<CGax^qqr[blnN>p$p!dflzsHIWCMPz/Z>[knPMizVPM?S+JfEJf<We’);
    define(‘NONCE_KEY’, ‘myT<gcQC>nTui]MNEti]NmWyn&XsrJ/l&Y^NhMsbL^iLSQ|?zWs*k&US![tVem)|kVFk>&vNSYHKZ{<(O*{CSl}CYiUIiPaK-R&&iyBWVcwuH]l=Ei(nBrkiiE_(giEF’);
    define(‘AUTH_SALT’, ‘[email protected]!xGEXBGGKl_W$mSC{<;Lh)taD!hposH)TK;|!k{PKV(^!uLtkioR&%%O?)_WPpB;zJz=uOTU_*@OS+Qk%]ilpYMF%T?JX^duNRhV*HM]VIkU(T|ZMnHz?KcG*vN+TJ’);
    define(‘SECURE_AUTH_SALT’, ‘]=WwZ)&++X^z^D}iTeed/p<eJQdOj)<FmAULflCqQr(ksyFy_r|^nxW]n>!y{$Dz/[email protected]_?T?F/z$x$it=Q(pA$i(}R*Hq=WIETqZ[M*E_-HJRoWZipzTV*tLKTKpy<‘);
    define(‘LOGGED_IN_SALT’, ‘ZVdSbpHBGbymtPB;ikkq;b%>-hc[VAI;s+/Aw&}}&;Bpbxtq;^n*V/!$*PiuJ*ff%msRN*-$D/q!sh[(>&}x%O?g+rBsJ*!R}iLmIDHUA/$g*tD%/!Obh)RB<>pvk)+B’);
    define(‘NONCE_SALT’, ‘?Mo]hHL&G^jHbY{%*j>&}-XOXuVEc%Ys<UcSCQKvZxzwMebx;H%^]H)dti)FGa)v{-PF;+g>fAr/QVG_oLq||=H|=;oSTP_p!/B(taNq]}*/W>>HMn/Gske([uyTga[P’);

    /**#@-*/

    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each
    * a unique prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix = ‘wp_yplw_’;

    /**
    * For developers: WordPress debugging mode.
    *
    * Change this to true to enable the display of notices during development.
    * It is strongly recommended that plugin and theme developers use WP_DEBUG
    * in their development environments.
    *
    * For information on other constants that can be used for debugging,
    * visit the Codex.
    *
    * @link https://codex.wordpress.org/Debugging_in_WordPress
    */
    define(‘WP_DEBUG’, false);

    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘www.houseofharrison.net’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    /* That’s all, stop editing! Happy blogging. */

    /** Absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‘wp-settings.php’);

    /**
    * Include tweaks requested by hosting providers. You can safely
    * remove either the file or comment out the lines below to get
    * to a vanilla state.

    if (file_exists(ABSPATH . ‘hosting_provider_filters.php’)) {
    include(‘hosting_provider_filters.php’);
    } */

    WordPress Multisite Issues – DNS Error
     
    #1

Share This Page

Web Hosting