I’ve been trying to copy my multisite of a domain and moving it to
C:/wamp/www/at-groep
I configured wp-config.php, .htaccess correctly. I created virtual hosts etc. I will give some examples of what I did. The error message I get is:
If your site does not display, please contact the owner of this
network. If you are the owner of this network please check that MySQL
is running properly and all tables are error free.Could not find site at-groep.local. Searched for table atgroep_blogs
in database at-groep. Is that right?What do I do now? Read the bug report page. Some of the guidelines
there may help you figure out what went wrong. If youâre still stuck
with this message, then check that your database contains the
following tables:atgroep_users – atgroep_usermeta – atgroep_blogs – atgroep_signups
atgroep_site – atgroep_sitemeta – atgroep_registration_log –
atgroep_blog_versions
I checked if the tables were there, and they were.
Whilst I expected to expected to see the website’s root page.
The configuration is like:
This is my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /at-groep/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /at-groep/index.php [L]
</IfModule>
This is my httpd-vhosts.conf
<Directory "C:/wamp/www/at-groep">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/at-groep"
ServerName at-groep.local
Errorlog "C:/wamp/www/ERROR_LOG_AT_GROEP"
TransferLog "C:/wamp/www/TRANSFER_LOG_AT_GROEP"
</VirtualHost>
This is my wp-config.php
/* Multisite */
define( 'WP_ALLOW_MULTISITE', false );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'at-groep.local' );
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
/* That's all, stop editing! Happy blogging. */
I am using Wampserver 2.5
.
I expected to see the multisite working on my local machine. Can someone assist me on this one?
Ok the syntax for access rights changed in Apache 2.4 so try amending the Virtual Host definition as follows. Also in my opinion it is better to place the
<Directory>...</Directory>
set inside the<VirtualHost>
section. It at least visually links the 2, although its not illegal to do it the way you did it.If you dont actually want to allow the universe to see your dev site replace
with
If you want to use another PC in your local network as a client use something like this
Using only the first 3 of the 4 quartiles will allow any ip in that subnet.
Also you will need to add the domain name to your HOSTS file
C:windowssystem32driversetchosts
Its also a good idea to read and understand how to move a WP website there are some changes you will likely have to make to the database as WP stores the URL that was used when the site was originally installed and uses it internally. This can mess you up when moving a site.
SECOND ATTEMPT
The
.htaccess
also looks wrong as you have a Virtual Hosts defined rather then running from a sub folder. See if changing theRewriteBase
andRewriteRule
helps..htaccess:
Alternatively look at this WP Doc on
.htaccess
I dont know your exact setup so I cannot suggest anything more specific than this.