Guide for configuring WordPress Multisite

Post Reply
User avatar
isscbta
Team Member
Posts: 137
Joined: Mon Jul 19, 2021 1:41 am
Has thanked: 17 times
Been thanked: 3 times

In case when you are going to install WordPress Multisite, there are two options:
1. Add domains/subdomains as an alias for the main domain
2. Add domain/subdomain as usual in myVesta, then delete public_html/ which would be automatically created for particular domain/subdomain, and in place of that deleted public_html/, place symlink of the main multisite

Code: Select all

In your SSH, as root, run:
rm -rf /home/user/web/subsite.com/public_html
ln -s /home/user/web/maindomain.com/public_html /home/user/web/subsite.com/public_html
chown -h user:user /home/user/web/subsite.com/public_html
And eventually you will have to add this in your /etc/php/x.x/fpm/pool.d/subsite.com.conf conf file under open_basedir:

Code: Select all

/home/user/web/maindomain.com/public_html:

Tags:
Post Reply