• Resolved londonnet

    (@londonnet)


    Hi I am new to WP and wanted to setup multisite to manage my 5 not linked websites.

    I am hosting WP myself on a centos 6 server and will initially configure and prepare the sites on our internal network before mapping domains and releasing the sites on to the internet.

    I have installed multisite with support for subfolders, added the new sites, but when I visit the sites by connecting to https://my_ip_address/site1/ I get the page but no theme.

    Further more, although I am a super user and have added myself as an administrator for the sites I am unable to browse to the dashboard or any of the admin pages for the sites. The main network site is functioning as expected.

    Does anyone have an ideas what maybe coursing this issue?

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter londonnet

    (@londonnet)

    For information here are the changes I made to wp-config.php and .htaccess

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', '172.16.1.238');
    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__) . '/');
    
    define( 'SUNRISE', 'ON' );
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    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]
    Thread Starter londonnet

    (@londonnet)

    Could this be file permissions related?

    I had to change file permissions to allow WP to download the domain mapping plugin

    chmod -R 777 /var/www/html/

    I think I changed the owner of /var/www/html/ to “apache” the user name used by httpd service.

    Is this correct? (dev environment) Whats the correct config to use?

    Thread Starter londonnet

    (@londonnet)

    A number of hours later it looks like this is more related to .htaccess file

    to get the sub sites to work at all I had to move the .htaccess file from /var/www/html/.htaccess up a level to /var/www/.htaccess

    could do with some help here

    Thread Starter londonnet

    (@londonnet)

    So I hadn’t realised that the there is more than one AllowOverride command in the httpd.conf file so now that I have set the correct one to AllowOverride All

    apache will now use the .htaccess file located in /var/www/html/

    just to recap. I am installing a local copy of wordpress on my own centos 6 server where the document root is set to /var/www/html/

    I have installed wordpress to this directory

    My issue is that although I can see the subfolder site created in multisite it does not have any theme. Additionally I can not connect to the subfolders dashboard and administer the site https://172.16.0.222/site2/wp-admin/

    I have tried rebuilding the machine but I end up with the same error.

    Can someone point me in the right direction?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    My issue is that although I can see the subfolder site created in multisite it does not have any theme

    Then your .htaccess still isn’t being read correctly (i.e. AllowOverride).

    Try changing it to ‘AllowOverride Options All’

    Thread Starter londonnet

    (@londonnet)

    This tacked on to the end of my httpd.conf file looks like it works a bit better.
    <Directory “/var/www/html/”>
    AllowOverride All
    Options All
    </Directory>

    I am using the standard build of centos 6
    Is there an optimised and secured httpd.conf file available?

    Thanks for the pointer

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Your httpd.conf settings totally depend on your apache modules.

    You may want to read https://thethemefoundry.com/blog/optimize-apache-wordpress/ though.

    Thread Starter londonnet

    (@londonnet)

    Thanks for the link. I’ll work through that.

    Looks like with this extra few lines in the httpd.conf file that this does fix some issues but the site is very slow to react as if it is timing out on something.
    This has fixed the issue I had with sub folders not showing ant theme and being able to get to the sites dashboard and other settings.

    However everything is very slow
    and I can’t search for any themes??
    I can search and install plugins though

    Any ideas fellow wordpressers?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You need to look at your server logs to dig into this one. Like I said, httpd.conf totally depends on your configuration.

    Thread Starter londonnet

    (@londonnet)

    Finally got this working correctly.

    I had built the server with selinux enforcing. In stall with selinux and it all works.

    I need to understand what selinux does to wordpress or more likely the packages which supports it.

    Thanks to all that have helped

    Thread Starter londonnet

    (@londonnet)

    It was more than that actualy. DNS was very slow and the themes page was timing out a second before the data came back

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘multisite not displaying themes or dashboard’ is closed to new replies.