Skip to main content

WORDPRESS MULTISITE CONFIGURATION ON CENTOS 7

First install wordpress.For that follow
#cd /var/www/html
#vi wp-config.php
Add the following line above "/* That’s all, stop editing! Happy blogging. */"
/* Multisite */
define('WP_ALLOW_MULTISITE', true);

Open httpd.conf and enable .htaccess file
#vi /etc/httpd/conf/httpd.conf
<Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
</Directory>

Create a directory for multisites
#mkdir /var/www/html/wp-content/ blogs.dir
Now restart httpd restart
#service httpd restart

Go to browser and login to wordpress dashboard
From Tools > Network setup
Select sub domain or sub directory based upon our need .Give  Network title and email and cick install



 
 Now open wp-config.php file and add contents given there. Similary open .htaccess file and enter the contents given there


Now login again and we have configured wordpress for multisite configuaration.