Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter ibojic

    (@ibojic)

    Hi Mika,

    For all those multisites that you have installed did you have to update index.php in the root directory to add subfolder in front of wp-blog-header.php?

    LOL I haven’t change anything from my previous post. Want to show it to a friend and the network magically appeared. She hasn’t change anything either, just looked at the various options under the dashboard: settings, appearance, tools etc.

    Don’t know if network appear because of clicking through various options or it was there all the time and I just haven’t recognize that it is a multisite.

    THANK YOU for all your patience and support.

    Thread Starter ibojic

    (@ibojic)

    Hi Mika,

    I have not deleted anything. There are 6 install attempts in 6 separate subfolders and I’m able to check all of the database. Default theme has not being changed or any plugin added or activated. Everything is at the default setup of wordpress 3.6.1.

    What I wonder is if anyone else installed wordpress multisite in subfolder successfully? If yes, how did they modified the .htaccess file after the mutisite enable script from wordpress overwrite the .htaccess file for single wordpress site?

    Error log gives me
    “Failed opening required ‘./wp-blog-header.php'”…
    “/home7/jazzwabi/public_html/index.php on line 17”

    When I update index.php on the root directory from ‘./wp-blog-header.php’ to ‘./subdirectory/wp-blog-header.php’ the white page was replaced by default 3.6.1 wordpress home page. The site is still single, that is Tools are not showing the networking option. Database still contains all created tables for mutisite and wp-config has
    ( ‘WP_ALLOW_MULTISITE’, true ) + other 6 definitions for mutlisite.

    I wonder if additional changes should be in .htaccess file to redirect to subdirectory, not in index.php on the root directory. Maybe when wordpress is installed in subdirectory automatically created .htaccess file does not cover the subdirectory option, only the root directory installation option?

    One way or another I really appreciate all your help so far!

    Thread Starter ibojic

    (@ibojic)

    Hi Mika,

    Answer from BlueHost tech support is that they do not prevent me from running multisite on the shared host.

    I just did another fresh install to make sure I recorded the steps correctly. At the end, after installing the network The jazzwabit.com gives me the white page of terror and jazzwabit.com/wp-admin lets me in, but it is a single site. “Tools” do not have “Network” as the forth option on the list any longer. “Visit Site” from dashboard also gives me the white page of terror.

    When I changed in .htaccess
    from
    RewriteBase /
    to
    RewriteBase /subfolder/
    White page of terror is till there and I’m not able to access wp-admin. My feeling is that the WordPress script for .htaccess update for multisite is not set properly for running multisite from subdirectory. Don’t know if wp-config updates have anything to do with this
    —-define(‘PATH_CURRENT_SITE’, ‘/’); —- change ‘/’ to ‘/subfolder/?

    I’ve check the database and it has all extra tables for multisite.

    Below are the steps I did.

    1) ftp wordpress 3.6.1 to the subfolder under the root directory
    2) through cpanel create database and super admin user
    3) set up wp-config.php file: DB_NAME, DB_USER, DB_PASSWORD, Authentication Unique Keys and Salts, table_prefix, WP_DEBUG to true
    4) DID NOT run the install script from subdirectory (last time I did that database links were screwed up and 404 page now found error was showing)
    5) copy index.php to the root directory
    6) create .htaccess file as per bluehost instructions at the bottom of this link https://my.bluehost.com/cgi/help/347 and place to the rooth directory
    7) clear browser cash
    8) run the install script from the root directory
    9) Log in > Log out
    9) update wp-config.php with define WP_ALLOW_MULTISITE
    10) clear browser cash, log out and log in to wp-admin
    11) install a network through Administration> Tools> Network Setup : Sub-directories selected
    12) enable the network: update wp-config.php file in subdirectory and .htaccess file in root directory as per wordpress screen
    13) log out, clear browser cash, log in to wp-admin

    Thanks

    Thread Starter ibojic

    (@ibojic)

    Hi Mika,

    I forgot what I did and I start fresh install from scratch. Below are the steps. This time, after enabling multisites I came to White Screen of Death. I was unlucky with bluehost support this time. Support fellow knew less than me.

    1) ftp wordpress 3.6.1 to the subfolder under the root directory
    2) through cpanel create database and super admin user
    3) set up wp-config.php file: DB_NAME, DB_USER, DB_PASSWORD, Authentication Unique Keys and Salts, table_prefix, WP_DEBUG to true
    4) DID NOT run the install script from subdirectory (last time I did that database links were screwed up and 404 page now found error was showing)
    5) copy index.php to the root directory
    6) create .htaccess file as per bluehost instructions at the bottom of this link https://my.bluehost.com/cgi/help/347 and place to the rooth directory
    7) run the install script from the root directory
    8) clear browser cash
    9) update wp-config.php with define WP_ALLOW_MULTISITE
    10) clear browser cash, log out and log in to wp-admin
    11) install a network through Administration> Tools> Network Setup : Sub-directories selected
    12) log out, clear browser cash, log in to wp-admin
    13) enable the network: update wp-config.php file in subdirectory and .htaccess file in root directory as per wordpress screen

    Thanks

    Thread Starter ibojic

    (@ibojic)

    Hi Mika,

    These are the steps I performed:

    1) ftp wordpress 3.6.1 to the subfolder under the root directory
    2) through cpanel create database and super admin user
    3) set up wp-config.php file: DB_NAME, DB_USER, DB_PASSWORD, Authentication Unique Keys and Salts, table_prefix
    4) DID NOT run the install script from subdirectory (last time I did that database links were screwed up and 404 page now found error was showing)
    5) copy index.php to the root directory
    6) create .htaccess file as per bluehost instructions at the bottom of this link https://my.bluehost.com/cgi/help/347
    7) run the install script from the root directory
    8) clear browser cash
    9) update wp-config.php with define WP_ALLOW_MULTISITE
    10) install a network through Administration> Tools> Network Setup : Sub-directories selected
    11) enable the network: update wp-config.php file in subdirectory and .htaccess file in root directory as per wordpress screen

    Have a feeling that I am missing some little crucial step along the way….

    How do I turn multisite back on?

    Thanks

    Thread Starter ibojic

    (@ibojic)

    Thread Starter ibojic

    (@ibojic)

    Hi Mika,

    I’ve just check the database as per your blog and I am a SuperAdmin.

    Thanks,
    Ivana

    Thread Starter ibojic

    (@ibojic)

    Hi Mika,

    I did a fresh install in subfolder again. This time I run the wordpress install from the root directory not from the subdirectory. After setting network through tools: updating wp_config file in subdirectory and htacces file in root directory everything looks almost good except for one thing. On the dashboard under “my sites”
    I have
    “Visit Site”
    instead of
    “Network Admin”

    I check the database and all the network tables have being generated. What am I missing?

    Thanks

    Thread Starter ibojic

    (@ibojic)

    Yes, I was editing the .htaccess in the root.

    Maybe I should try from the beginning again….

    Appreciate your help

    Thread Starter ibojic

    (@ibojic)

    Hi Mika,

    First: thank you for wrapping the code.

    Second: changing second line in the .htaccess file
    from

    RewriteBase /wordpress/

    to

    RewriteBase /

    did not change anything. Still getting the same error: 404 Not found when trying to access Dasboard, Sites or Users from My Sites-> Network Admin

    Thanks
    Ivana

    Thread Starter ibojic

    (@ibojic)

    Hi Mika,

    If you just scroll up this page you will see my .htaccess file

    wordpress is mentioned on the second line:
    RewriteBase /wordpress/

    Thank you

    Thread Starter ibojic

    (@ibojic)

    Thread Starter ibojic

    (@ibojic)

    Hi Mika,

    From the supper admin panel
    My Sites->Network Admin->Dashboard
    My Sites->Network Admin->Sites
    My Sites->Network Admin->Users

    all three give 404 page not found error.

    What I wanted to do is: install sites in subfolders both WordPress and non WordPress sites.

    Appreciate your help.

    Ivana

    Thread Starter ibojic

    (@ibojic)

    Hi Mika,

    I was hoping you would pick up my question. It was through some of your replies that I managed to come so far.

    Yes, when I installed in a subfolder I did redirect it to the main folder BEFORE multisite activation.

    My .htaccess file:

    RewriteEngine On
    RewriteBase /wordpress/
    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).*) wordpress/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ wordpress/$2 [L]
    RewriteRule . index.php [L]

    404 Looks like:
    Has a header and footer from the template. In the content area is a big “404 Not found” and “This is somewhat embarrassing, isn’t it? It looks like nothing was found at this location. Maybe try a search?” and a form entry for search.

    Appreciate your help.
    Ivana

    Hi, I also wanted to request an update for “Giving WordPress Its Own Directory” codex page.

    I followed the steps for “Using a pre-existing subdirectory install”. It did not work until I contacted my host provider “Bluehost”.

    For Bluehost specifically these are the alternations:

    – No need to copy index.php to the root directory
    – .htaccess file, when copied from subdirectory to the root directory needs following updates:
    https://my.bluehost.com/cgi/help/347 – “Modifying the .htaccess”
    —————-cut and paste from the link above —————–
    Modifying the .htaccess

    You will want to insert the following code block and make modifications as noted in the (#) comments. You will need to change the two instances of example.com to your domain, and the three instances of subdirectory to the folder where you want your site.

    # BlueHost.com
    # .htaccess main domain to subdirectory redirect
    # Copy and paste the following code into the .htaccess file
    # in the public_html folder of your hosting account
    # make the changes to the file according to the instructions.
    # Do not change this line.
    RewriteEngine on
    # Change example.com to be your main domain.
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    # Change ‘subdirectory’ to be the directory you will use for your main domain.
    RewriteCond %{REQUEST_URI} !^/subdirectory/
    # Don’t change these line.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # Change ‘subdirectory’ to be the directory you will use for your main domain.
    RewriteRule ^(.*)$ /subdirectory/$1
    # Change example.com to be your main domain again.
    # Change ‘subdirectory’ to be the directory you will use for your main domain
    # followed by / then the main file for your site, index.php, index.html, etc.
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    RewriteRule ^(/)?$ subdirectory/index.html [L]

    ———————END cut and paste———————————

    With these 2 alternations the codex instruction works.

Viewing 15 replies - 1 through 15 (of 15 total)