WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Cannot Create a new Blog under Multisite (permissions on wp-content/blog.dir?) (26 posts)

  1. mikedorey
    Member
    Posted 3 years ago #

    Hi all

    I have successfully upgraded by site to WordPress 3.0 and configured it for Network, and followed the steps in the following document:

    here

    I have navigated to 'Super Admin -> 'Sites' and used 'Add New' to create a new site. This appears to work, and is added to the list of sites. But if I click on Edit, Backend or Visit, I get a 404 error message (page not found).

    Is this likely to be due to a permissions issue with the wp-content/blog.dir ?

    Because I am hosting this site on my ISP's web space I guess I will need to get them to do the CHOWN and CHMOD step to assign the permissions to blog.dir?

    Many thanks

    Mike

  2. dgilmour
    Member
    Posted 3 years ago #

    Is this likely to be due to a permissions issue with the wp-content/blog.dir ?

    You don't say why you think it might, but it's very unlikely; that directory is only used for the blogs' upload directories.
    The directory should be named blogs.dir, though, so check that first.
    Edit, Backend and Visit all require the URL to be successfully rewritten according to the rules in your .htaccess file. It's probably worth checking that's correctly configured - and that it can be read.

  3. Is this likely to be due to a permissions issue with the wp-content/blog.dir ?

    No. That folder is only for uploads to any of the blogs. The blogs themselves do not live there, they are virtual.

    I have navigated to 'Super Admin -> 'Sites' and used 'Add New' to create a new site. This appears to work, and is added to the list of sites. But if I click on Edit, Backend or Visit, I get a 404 error message (page not found).

    Did you pick subdomains or subfolders? subdomains work on wildcards which need to be setup server-side.

    See finished doc:

    http://codex.wordpress.org/Create_A_Network

  4. mikedorey
    Member
    Posted 3 years ago #

    Hi

    I am using subfolders.

    The reason I thought it might be a permissions thing is because there is a step in the document than talks about setting permissions. I also thought that perhaps files get written to this folder when a new site is initially set up (but that obviously isn't the case?) I definately created it up as blogs.dir though - just spelt it wrongly in this post.

    Many thanks

  5. Read the sticky post in this forum. :)

    http://wordpress.org/support/topic/420384

    The subfolder blogs are built using htaccess. You would have been instructed to copy in new htaccess rules to that file. This is what makes the subfolder blogs work.

  6. mikedorey
    Member
    Posted 3 years ago #

    I have set up an .htaccess file which is in the root of the blog. I had to create this myself as the instructions state, and it contains this:

    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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]

  7. mikedorey
    Member
    Posted 3 years ago #

    I've just noticed that on the SuperAdmin -> Sites page, the 'Edit' option works and shows the details of the new blog, but 'Back End' and 'Visit' throw 404 errors.

    The URL for the new blog will be http://www.sitename.com/blog/myNewBlog but does [myNewBlog] need to exist as a folder? Or should it get created within blogs.dir? There is nothing in blogs.dir currently. This is why I am wondering if it is a permissions issue:-

    1. Create a blogs.dir directory under /wp-content/
    This directory is used to stored uploaded media for your additional sites and must be writable by the web server. They should be CHOWNed and CHMODed the same as your wp-content directory.

  8. mikedorey
    Member
    Posted 3 years ago #

    Any ideas? Many Thanks

  9. The URL for the new blog will be http://www.sitename.com/blog/myNewBlog but does [myNewBlog] need to exist as a folder? Or should it get created within blogs.dir?

    No, as stated previously, the blogs.dir folders are only for media file uploads the blogs do not lve there.

    The reason they are not showing up is not a permissions issue for the folder.

    your htaccess file is not being read by the server. Tell your webhost support team you made some htaccess changes but they are not working.

    Also, the .htaccess file needs to go in the main folder of the install. So if WordPress is in the /blog/ folder, put the htacess file in there.

  10. dutchboyinohio
    Member
    Posted 3 years ago #

    I'm having this same problem, running WordPress in a Windows Server environment. From talking to my tech staff is it true that this will not work in a Windows environment? Is there some kind of work around for it, other than creating a LAMP environment.....??

  11. From talking to my tech staff is it true that this will not work in a Windows environment?

    No, that is not true.

    It *can* run on a Windows server, it's just not ideal. You'll need some web.config rewrite rules, which I don't have, as I'm not a windows gal.

  12. NaradaDas
    Member
    Posted 3 years ago #

    I am having the same problem.
    Not on a windows server.
    Multisite apparently intalled correctly.
    Can add new sub directory sites.
    Going to the front page of new site gets an unformatted front page http://oneearth.permahost.com/2012/
    Trying to go to admin gets a page not found error.

    Possibly related issue:
    My hosting space has no domain name configured for the main public_html folder and therefore I installed in the folder usin the address above.
    I tried also installing in a folder such as http://oneearth.permahost.com/bookoffire.net using the domain name bookoffire.net and had the same exact problem.
    I am not clear from the installation instructions - do you have to install in the public_html folder of the hosting account or just the top level folder of the domain?

    yes the htaccess files seem fine and the wpconfig too
    and the blogs.dir.

    Please help.

  13. palger
    Member
    Posted 3 years ago #

    Hello All,

    I think this is the right place to mention this and ask as well.

    I installed wordpress 3 and enabled multi user. On the admin end
    all looks ok as weel as the main site, but when I create a new subdirectory blog, the paths are wrong or at least it seems so.

    What happens is that the home page links resolve correctly, but the new site links point to invalid locations.

    Main Site
    domain.com/wp-content/themes/mytheme/style.css
    where this style exists

    New Site
    domain.com/sitename/wp-content/themes/mytheme/style.css
    this does not exist.

    This causes the new site to not include the styling.

    Did I do this wrong or is it a bug?

    Thanks,
    Phil

    PS I also noticed that even though I activated one particular them for the newsite, it was style using the original default theme.

  14. kumaranmcanew
    Member
    Posted 3 years ago #

    Greetings Andrea,

    I have few doubts. I will share with you. I have created "blogs.dir" folder also I gave the permission of that folder. But while I make the new sub-diresctory sites. But not creating any folders for this(blogs.dir) folder...Sub-folder sites are working fine for me.

    What is purpose of blogs.dir folder...Can you guide me...

  15. NaradaDas
    Member
    Posted 3 years ago #

    @plager - I think it is supposed to be that way. The htaccess file handles redirecting from the non existant folder. Someone please correct me if Im wrong.
    @kumaranmcanew - please read above... the blogs.dir directory is for uploaded files from blog useage.

    Anyone care to speculate why my new blogs dont work... (see 3 post up^ )

  16. dutchboyinohio
    Member
    Posted 3 years ago #

    Just as an fyi, I got it to work in a Windows environment, using info from this post: http://www.lauragentry.com/wordpress/?p=517. Basically I was missing the url rewrite module as outlined in Step 4 there. Multisite runs like a charm on my Windows server now!!

  17. @NaradaDas knoen issue, the host has to force the .htaccess into being read

  18. palger
    Member
    Posted 3 years ago #

    Hello,

    Ok, I understand the intent and have fixed my original problems.

    I have followed the wp setup for this

    wp-config entries

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'domain.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    htacess entries

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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]

    The above entries resolved the original problems I was having.

    However, I did have to manually enter the theme/stylesheet for a newsite on the options screen for the site and update.

    One I did that my current final problem was resolved, the missing styles.

    Good Luck All

    Thanks for all the help.

  19. NaradaDas
    Member
    Posted 3 years ago #

    @Andrea_r - thank you - I tracked down another post here - http://wordpress.org/support/topic/need-hosting-advice
    and used the alternative htaccess code posted by bh_WP_fan
    and now everything seems to be working!

    Perhaps for others benefit you could comment on the following...
    The ht access I was using was generated by the EnableMultisite plugin but seemed standard. It was
    ________________

    #Made Multi-Site with Multi-Site Enabler 1.4#
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    RewriteRule . index.php [L]

    ____________________

    The new htaccess that actually works is
    ____________________

    #BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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]

    #END WordPress

  20. The one generated by the plugin was for subdomains. You appear to have a subfolder setup. That's why.

    Better to do it manually instead of via the plugin so you can catch these things.

  21. bbhandari
    Member
    Posted 3 years ago #

    Hi There,

    I have sucessfully installed WP 3.0.3 and enabled multisites plugin. I choosed sub-directory to create multisite. WordPress allows me to add new site but I when click on visit visit and backend option in newly created site it redirects to "page cannot be found" error.

    Word press is hosted on RHEL 6 wich is our development server and .htaccess file has read access.

    Once I created sub-directory manually inside wordpress root directory and copied all files and directory of word press to it. Then I clicked on visit option of newly created site , it worked. But I dont think this is how it should work.

    Its been already 3 days I am trying to find solution but no luck. I read lots of posts but could not find answer. At the moment I am very fraustrated with myself. I will greatly appreciate if anyone can help in this regard.

    Code that I used in wp-config.php file

    define('WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'wordpress.cdu.edu.au' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    code that i used in .htaccess file

    #BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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]
    #END WordPress

    Looking forward for replies...

  22. Please don't post the same issue in multiple threads.

    And don't use the plugin, it didn't create the htaccess file.

    http://codex.wordpress.org/Create_A_Network
    http://wpebooks.com/2010/09/how-to-enable-multisite-in-wordpress/

  23. bhasquin
    Member
    Posted 3 years ago #

    When I try to go to back end, it doesnt switch blogs, it stays on the same blog previously loaded?

    Is there a setting or something? I have added two websites, plus the domain correctly. I cannot add anymore subdomains properly?

    What should I do?

  24. No, there's not a setting. It's not set up correctly.

  25. Donald McIntyre
    Member
    Posted 3 years ago #

    Hello! I have a little of the same and a little different!

    I installed WP 3.1 and enabled it for multisite. I chose sub-directory and not sub-domain. The problem is that when a member creates a new blog it creates it with a wrong address all together: it does it with this format http://example.comexample_comnewblog when it should be http://example.com/newblog/. example_com is the name of the database! In network admin >> settings >> network setup it teels me to add:

    wp-config

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = 'eebees_com'; <--- THIS IS WRONG SHOULD BE /
    define( 'DOMAIN_CURRENT_SITE', 'eebees.com' );
    define( 'PATH_CURRENT_SITE', 'eebees_com' ); <--- THIS IS WRONG SHOULD BE /
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    .htaccess

    RewriteEngine On
    RewriteBase eebees_com <--- THIS ALSO WRONG SHOULD BE /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    SUMMARY: I donĀ“t know why wordpress is taking this info, I even put it write in wp-config and .htaccess and it still picks up eebees_com instead of /.

    Can you help me please?

    Thank you!

  26. Hello! I have a little of the same and a little different!

    New topic please and thank you. (When a topic is 2 months or more old without replies, it's easier for us to support you in a new topic!)

    Are you on DreamHost? If so, just delete the $base line.

    If that doesn't work, make a NEW topic :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.