• I want both $base and PATH_CURRENT_SITE set to / when I install wordpress-3.0.1 and configure Network. They are automatically set to /blog/.

    I added the lines below to wp-config.php, recreated the database and ran install.php. The install reports errors trying to get the properties of non-objects.
    define('WP_DEBUG', true);
    define( 'MULTISITE', true );
    $base = '/';
    define( 'PATH_CURRENT_SITE', '/' );

    The install claims to succeed and errors on login:
    No site defined on this host. If you are the owner of this site, please check Debugging a WordPress Network for help.

    I install wordpress in a subdirectory of my Document root, e.g., /var/www/html/blog/
    cd /var/www/html/blog/
    tar –strip-components 1 -zxf wordpress-3.0.1.tar.gz

    WordPress 3.0.1 multisite install using subdirectories.
    PHP 5.3.1 (cli) (built: Nov 20 2009 17:51:14)
    RHEL 5.3
    Apache httpd-2.2.3

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

    (@ipstenu)

    ?????? Advisor and Activist

    No, doesn’t work that way. You can’t install WordPress MultiSite in a subfolder AND have it behave as if it’s in root. Sorry. You have to put it in the html folder.

    Thread Starter tdoes

    (@tdoes)

    You are right. I need to make the WordPress MultiSite subfolder the root if I really want $base = '/';

    I create a VirtualHost in which I define the DocumentRoot to /var/www/html/blog/. Now $base is set to / because it is the root.

    Thanks

    plundquist

    (@plundquist)

    i have a problem that is somewhat similar. i have godaddy windows shared hosting. to keep things easier for me i created a folder in my the root domain of my account to clients/[company] now the relative path to any wordpress installation for that client is /clients/[company]/

    this wouldn’t be a problem but the web.config file sucks for url-rewrite.

    for example all new sites/blogs are:
    example.com/clients/[company]/sitename

    this screws up the styles and the theme. all i get on new blogs/sites is content with no themes or styles.

    i guess i have to use linux…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Install so base and PATH_CURRENT_SITE = /’ is closed to new replies.