• Resolved SuperAtic

    (@superatic)


    Hi,

    I just setup a WP multisite using a dedicated IP http://74.220.218.181/ and I’m haveing few problems managing differents sites! I was able to create new sites and upload contents and themes and setup plugins. I also assign the domain.ext to each site and fix the images path.

    When I log out I wasn’t able anymore to log in the site dashboards. A infinite loop redirect to the wp-login.php, also if I try access directly siteX/wp-admin/

    Whatever is, I still able to login to the network’s dashboard using WordPress.com Login button (active with Jetpack) from http://74.220.218.181/wp-admin/

    may be some misconfiguration with cookies? not really understand!!!

    I also read a bit online:
    https://tommcfarlin.com/resolving-the-wordpress-multisite-redirect-loop/

    still not working for me!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Marc Woodyard

    (@rune-vantage)

    What does you .htaccess file look like?

    Thread Starter SuperAtic

    (@superatic)

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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]

    This at the moment!

    Marc Woodyard

    (@rune-vantage)

    You .htaccess file looks fine. Have you tried disabling all of your plugins? Also, what does you wp-config.php multisite section look like?

    Thread Starter SuperAtic

    (@superatic)

    Hi Yes, I tried disabling all plugins but nothing change…

    Attahced the wp-config…

    <?php
    /**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, and ABSPATH. You can find more information by visiting
    * {@link http://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php}
    * Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation. You don’t have to use the web site, you can just copy this file
    * to “wp-config.php” and fill in the values.
    *
    * @package WordPress
    */

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘WP_CACHE’, true); //Added by WP-Cache Manager
    define( ‘WPCACHEHOME’, ‘/home1/superati/public_html/wp-content/plugins/wp-super-cache/’ ); //Added by WP-Cache Manager
    define(‘DB_NAME’, ‘superati_net’);

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

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

    /** 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’, ‘put your unique phrase here’);
    define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’);
    define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’);
    define(‘NONCE_KEY’, ‘put your unique phrase here’);
    define(‘AUTH_SALT’, ‘put your unique phrase here’);
    define(‘SECURE_AUTH_SALT’, ‘put your unique phrase here’);
    define(‘LOGGED_IN_SALT’, ‘put your unique phrase here’);
    define(‘NONCE_SALT’, ‘put your unique phrase here’);

    /**#@-*/

    /**
    * 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_’;

    /**
    * 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.
    */
    define(‘WP_DEBUG’, false);

    define(‘WP_HOME’,’http://74.220.218.181/&#8217;);
    define(‘WP_SITEURL’,’http://74.220.218.181/&#8217;);

    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘74.220.218.181’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    define( ‘SUNRISE’, ‘on’ );

    /* 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’);

    ?>

    Marc Woodyard

    (@rune-vantage)

    From what I can see your wp-config.php file looks fine too. Are you running multisite on a VPS?

    Jorge Díaz

    (@jdiaz1302)

    Hi, do you have the old htaccess file, before turning it to a multisite?

    Thread Starter SuperAtic

    (@superatic)

    Hi all, thanks for your questions!
    @marc: is a brand new multisite in shared host I just import all the data from separate wp installations.

    @jorge: being a new installation I don’t have any other version of old htaccess!!

    Thread Starter SuperAtic

    (@superatic)

    May be somthing usefull in the error log?!?!

    [14-Apr-2015 07:20:30 UTC] PHP Fatal error:  require(): Failed opening required '/home1/superati/public_html/wp-content/plugins/jetpack/modules/after-the-deadline.php' (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home1/superati/public_html/wp-content/plugins/jetpack/class.jetpack.php on line 1130
    [14-Apr-2015 02:02:57 America/Denver] PHP Fatal error:  Call to undefined function wp() in /home1/superati/public_html/wp-blog-header.php on line 14
    [14-Apr-2015 08:07:21 UTC] PHP Fatal error:  Class 'Jetpack_Protect_Math_Authenticate' not found in /home1/superati/public_html/wp-content/plugins/jetpack/modules/protect.php on line 221
    [14-Apr-2015 08:44:35 UTC] PHP Fatal error:  Class 'Jetpack_Protect_Math_Authenticate' not found in /home1/superati/public_html/wp-content/plugins/jetpack/modules/protect.php on line 221
    [15-Apr-2015 07:05:38 UTC] PHP Warning:  filesize(): stat failed for /home1/superati/public_html/wp-content/cache/1984006604552e0dc2c4a425.44087079.tmp in /home1/superati/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 604
    Thread Starter SuperAtic

    (@superatic)

    Now I migrate server, so now shared IP is 69.175.22.242, site is accessible from this Link but I have problems accessing the backend!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    WordPress Multisite doesn’t work properly on an IP.

    It even warned you about this when you set it up.

    Use a URL please.

    Thread Starter SuperAtic

    (@superatic)

    Thanks Mika! Simple things that make an important difference!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Problem logging in to sites!’ is closed to new replies.