Forums

Problems with multisites subfolders installation (8 posts)

  1. fifouille
    Member
    Posted 5 months ago #

    Hi, i tried to install a wordpress multisites in subfolders (in /var/www/social/).
    I can reach the network admin. But when i create a new blog like /social/communication, the dashboard and the blog are not available.
    I use the.htaccess and the wp-config.php wordpress give me in the network admin.

    I have another problems with Permalinks. If i use custom ones, it doesn't work.
    Is it a proble with my vhost ?

    <VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www/
    <Directory />
    Options FollowSymLinks
    AllowOverride All
    </Directory>
    <Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    # This directive allows us to have apache2's default start page
    # in /apache2-default/, but still have / go to the right place
    #RedirectMatch ^/$ /apache2-default/
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride All
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined
    ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    </VirtualHost>

    Can you help me ? Thank you

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    vhost only matters if you're using subdomains.

    What error are you getting on your subfolders?

  3. fifouille
    Member
    Posted 5 months ago #

    In the admin dashboard, when i want see the dashboard of a new blog or see it in the public side, i have a 404 error.
    I follow the steps given me by the installation :
    - put the lines required in wp-config.php
    - create a .htaccess given by the admin dashboard

    What happens ?

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    And you're going to domain.com/social/blogname, correct?

  5. fifouille
    Member
    Posted 5 months ago #

    Yes that's what i want. But it does not work and the permalinks doesn't work anymore.

  6. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    What's in your .htaccess?

  7. fifouille
    Member
    Posted 5 months ago #

    Hello Ipstenu, i don't how but now it works. I did the installation a hundred times with the same .htaccess in the same place in my server :

    RewriteEngine On
    RewriteBase /auber/
    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]

    The only thing that i make different is that i changed the wp-config.php with the that line :
    define ('WP_ALLOW_MULTISITE', true ) ;

    before connecting for the first time to the dashoboard.

    Do you know what was the problem ? Thanks a lot.

  8. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    Well. Yes, you're SUPPOSED to put define ('WP_ALLOW_MULTISITE', true ) ; in before that first time. It's listed in the directions.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.