• princekj

    (@princekj)


    I’m using mark jaiquith’s WordPress Skeleton setup.

    https://github.com/markjaquith/WordPress-Skeleton

    WordPress core files are in a git submodule in directory:

    project_root/wp/

    which means the wp-content directory where SUNRISE.php goes is here:

    /wp/wp-content

    I don’t want to put sunrise in the submodule to avoid issues with updating.

    Anyone have a solution?

    I’m using multi-site subdomain installation with domain mapping plugin on nginx.

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

    (@ipstenu)

    ?????? Advisor and Activist

    There shouldn’t be a problem with sunrise in the wp-content folder there but you may need to ask Mark this directly: https://github.com/markjaquith/WordPress-Skeleton/issues

    Thread Starter princekj

    (@princekj)

    I just dropped it in /content and it works!

    But…Multi-site isn’t designed to work with wordpress in a subdirectory.

    So I’m having the same issue thats posted over here:

    https://github.com/markjaquith/WordPress-Skeleton/issues/39

    I think I just need to figure out a nginx rewrite strategy. Not really sure.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    But…Multi-site isn’t designed to work with wordpress in a subdirectory.

    Depends what you mean.

    You can totally do this: Install WP in /home/public_html/wordpress and access it via example.com INSTEAD of example.com/wordpress

    Thread Starter princekj

    (@princekj)

    I’m using multi-site subdomain with domain mapping and trying to get things working locally with a vagrant box running debian wheezy and nginx 1.4.5. This is my first time using multi-site.

    I had the site working fine at wordpress.dev after my 5 minute install…Simply changed the site URL under general settings and left the wordpress URL as wordpress.dev/wp

    Things got weird after enabling multi-site subdomain.

    Here’s my config

    // ==================
    //SETUP MULTISITE?
    // UNCOMMENT BELOW
    // ==================
    define('WP_ALLOW_MULTISITE', true);
    
    // ====================
    // SETUP MULTISITE
    // ====================
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'wordpress.dev');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    First, my network admin panel returned 404. I had to edit line 2255 in link-template.php. My network admin was bringing me to /wp-admin/network instead of /wp/wp-admin/network

    $url = network_site_url('wp/wp-admin/network/', $scheme);

    Ok that solves that.

    But after setting up domain mapping my first sub-domain site thinks all its resources are located in the “default” directory ./wp-content instead of skeleton’s /content

    Not sure if this caused the problem but I just noticed my local-config.php didn’t have the snippet with the ABSPATH in it when I did the original install.

    // ===================
    // Bootstrap WordPress
    // ===================
    // if ( !defined( 'ABSPATH' ) )
    // define( 'ABSPATH', dirname( __FILE__ ) . '/wp/' );
    // require_once( ABSPATH . 'wp-settings.php' );
    // =====================

    Will start over and try again.

    In the mean time this seems to be a recurring issue.

    https://core.trac.www.ads-software.com/ticket/23221
    https://core.trac.www.ads-software.com/ticket/19796
    https://github.com/markjaquith/WordPress-Skeleton/issues/39

    Thread Starter princekj

    (@princekj)

    Hey mika, I watched your “don’t use wordpress multi-site” video last night and I’m re-considering it for this project.

    Thanks for the great content.

    Thread Starter princekj

    (@princekj)

    This is still not working. Problem seems to be with this scenario:

    – wordpress multi-site subdomain
    -domain mapping
    -nginx
    -wordpress installed in ./wp instead of root

    Some chatter about it over here:

    https://core.trac.www.ads-software.com/ticket/23221#comment:27
    https://gist.github.com/danielbachhuber/9379135

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘SUNRISE.php with WordPress Skeleton’ is closed to new replies.