WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite - installed subdirectory (25 posts)

  1. educhr
    Member
    Posted 3 years ago #

    Please forgive me while we learn. We are testing wordpress as an option for our teachers to create blogs. Our website is Joomla based but we are looking into wordpress as a subdirectory (not at root) to run the staff and classroom pages. IS this possible?

    We (2 students and myself) have installed wordpress on 3 different test servers (workstations) and installed WordPress into www/staff/ All the configurations work for the main wordpress site,network enabled, but no subdirectory multisites will work. Blank error page.

    We have taken 3 days reading forums to decifier a solution, with no success.

    Thanks in advance

  2. Blank/White page errors are, generally, PHP errors. Check your error log.

    Also, what's in your .htaccess file?

  3. educhr
    Member
    Posted 3 years ago #

    I will clarify - Blank page is Object not found 404 error.

    Not sure how to check error logs yet, but I am sure forums will assist me.

    .htaccess file located in staff folder (wordpress)
    RewriteEngine On
    RewriteBase /staff/
    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]

  4. Did you remove the default theme?

  5. educhr
    Member
    Posted 3 years ago #

    No themes have been removed and all themes installed are activated.

  6. Can you switch your sites to use Twenty Ten (i.e. the default theme)?

  7. Did you find the error logs on the server yet? And read them? :)

  8. educhr
    Member
    Posted 3 years ago #

    Sorry for the delay. I had to teach 3 courses.

    Thanks for your suggestions thus far. Twenty ten theme is set by default on the main site as well as the subdirectory sites. I don't believe themes are the issue.

    Please keep in mind that the visiting the new subdirectory site or even trying the subsite backend results in a "file not found" 404 error page.

    When creating new sub sites it creates the entry on the database table and sends out e-mails to confirm set up, but NO access to the page.

    I believe it is a config issue, since I have duplicated this on 3 different test sites.

    I tried to view error logs and either have none or can't find them. I edited the wp-config file.

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', true);
    @ini_set('display_errors',1);
    define( 'WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/staff/';
    define( 'DOMAIN_CURRENT_SITE', 'www.<em>domainname</em>' );
    define( 'PATH_CURRENT_SITE', '/staff/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG-ID_CURRENT_SITE', 1 );

    not sure if the first 4 lines are correct, but no errors on main page, admin page, or in the debug.log file that I created in the wp-content folder with 666 rights.

    Thanks for all your thoughts and suggestions. My kids are eagerly waiting on solving this issue. Thanks for promoting their education too.

  9. It's an htaccess issue. That's how the URLs are built. make sure you have an .htaccess file in the same folder as the wp-config file.

    (I'm a homeschooler. Taught my kids WordPress. ;) )

  10. define( 'DOMAIN_CURRENT_SITE', 'www.<em>domainname</em>' );

    You don't really have www.<em>domainname</em> in there, I'm assuming, but http://www.domain.com right? (Just making sure! I've hung myself up for a couple days with things like that)

  11. Ooo yeah I hope that was just to forum borking the obfuscation...

  12. educhr
    Member
    Posted 3 years ago #

    @ Andrea_r
    .htaccess file and wp-config are located within my staff (wordpress) folder.

    Any guidance on .htaccess issue? How do I confirm that Mod_rewrite is looking at the .htaccess file. 644 is the rights on .htaccess file.

    @ipstenu
    define( 'DOMAIN_CURRENT_SITE', 'www.<em>domainname</em>' );
    I am learning to write in forums as well here. I was trying to place emphasis on domainname and didn't realize that within certain codes that other codes would not work properly. I thought it was proper to not include your site name. Hopefully the line below is stated better.

    define( 'DOMAIN_CURRENT_SITE', 'www.________.k12.oh.us' );

  13. $base = '/staff/';
    define( 'PATH_CURRENT_SITE', '/staff/' );

    Well, these lines tell WordPress to put /staff/ in the URL.

  14. I thought it was proper to not include your site name.

    Eh. Lotta dispute on that one. I've never found it to matter unless the site is Super Sekkrit! :) But yeah, we just wanted to be sure you're using the right URL ;) You never know when a copy/paste went awry. Good!

    Andrea, in the .htaccess they also have
    RewriteBase /staff/

    And said

    We (2 students and myself) have installed wordpress on 3 different test servers (workstations) and installed WordPress into www/staff/

    At this point I'm assuming they want staff as a default subfolder. Do they still need all that?

  15. educhr
    Member
    Posted 3 years ago #

  16. Did you find the error logs on the server yet?

  17. educhr
    Member
    Posted 3 years ago #

    Please forgive me cause I have yet to see any errors logs

    See the wp-config above to make sure Debug is on
    wp-content folder with 666 rights with debug.log file created and placed in that folder. Still reads 0 k for file size. I checked the wordpress site page for errors. Joomla, when enabled shows all the errors on the index page, etc. Then went to the admin error to look for errors or a tool that would show errors.

    I guess, I am not sure how to check them correctly. Guidance please.

    I have access to the Apache folder but do not know what I am looking for exactly.

    Thanks again for all your help and education.

  18. The error logs are php error logs generated byy your server, not wordpress.

    Any guidance on .htaccess issue? How do I confirm that Mod_rewrite is looking at the .htaccess file. 644 is the rights on .htaccess file.

    Go look at the main blog. Click on the about page. Did it work? If not, then mod_rewrite is not reading the htaccess file.

    on a lot of Apache setups, it's disabled by default.

  19. educhr
    Member
    Posted 3 years ago #

    I am getting more of a handle on log files and mod_rewrite. I have found on the student test server's running WAMP is easier than on the live SUSE Linux webserver. After talking to our district technologist, we have had issues with .htaccess files. His solution was to give rights to folders in httpd.config file.

    Student webserver, the ABOUT button did not work after the change. I have not checked their wp-config files though. On the live server, About button does not work. I am still trying to find how to enable the mod_rewrite in SUSE linux.

    Thanks I will give an update if I make progress over the weekend.

  20. After talking to our district technologist, we have had issues with .htaccess files. His solution was to give rights to folders in httpd.config file.

    Yep, he did the right thing. :)

    I am still trying to find how to enable the mod_rewrite in SUSE linux.

    Same place in Apache.

  21. educhr
    Member
    Posted 3 years ago #

    Well, I am about to give up on WordPress. I spent over 3 hours last week testing various things to try to get WordPress with multisites working.

    http://www.bellefontaine.k12.oh.us/staff/ - wordpress root
    http://www.bellefontaine.k12.oh.us/staff/miller - Goal (not working)

    PHP says - mod_rewrite working.
    Test page - says it is not.
    The ABOUT page works now.

    If I change in the httpd.conf file (currently commented out)

    #### Lines added by Ken for WordPress Multi-Site
    # <Directory /web/htdocs/staff>
    #     AllowOverride All
    # </Directory>

    WordPress site dies.

  22. It;s your server setup. I know it's being a pain in the rear, but the multisite portion will not work without it. It;s how the subfolder blogs are created.

    the main blog works and the permalinks work becaus ethey are NOT using pretty permalinks. That's why the about page works, it;s using ?page_id=2 , which is not a rewritten URL.

    PHP says - mod_rewrite working.
    Test page - says it is not.

    If you get those examples working, then WordPress will work.

    tyr this:
    http://enarion.net/web/htaccess/mod_rewrite-on-suse/

    and also this part?

    #### Lines added by Ken for WordPress Multi-Site
    # <Directory /web/htdocs/staff>
    # AllowOverride All
    # </Directory>

    make it AllowOverride FileInfo Options

  23. educhr
    Member
    Posted 3 years ago #

    thanks for the link (enarion.net), funny thing was I ran across the site this morning and printed it off to test this afternoon. So to my surprise, my print off matched your link you provided.

    I tried changing the httpd.conf file with AllowOverride All -> AllowOverride FileInfo Options

    Restarted Apache and same dead results.

    Enarion site suggest making changes to Default-server.conf file

    I will work on that tomorrow....

  24. educhr
    Member
    Posted 3 years ago #

    On a whim.... I tested the following.

    Changed the following to httpd.conf file

    #### Lines added by Ken for WordPress Multi-Site
     <Directory /web/htdocs/staff>
    <strong> Options Indexes FollowSymLinks</strong> AllowOverride All
     </Directory>

    The Options Indexes FollowSymLinks corrected the problem. I tested by commenting in and out for isolate solution.

    ITS WORKING!

    I want to thank Andrea_r for her patience and wisdom!

    Though my students have more work now, so they won't be as happy as I am ....

  25. So.... you had a symlink set up somewhere? huh.

    And lol.. poor students. :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.