WordPress multi-site and plesk 10

Codex has instructions for setting up multi-site in WordPress and these link you through to some instructions if you run in to issues with webmail in Plesk.

I’m not using webmail and so these instructions look specifically at getting Plesk to use wildcards. You can carry out these instructions using  PuTTY but I’m going to write the instructions using the GUI as much as possible.

Power Panel setting

In your Virtuozzo/Power Panel using the File Manager navigate to:

/var/www/vhosts

In here you should see a list of all of the domains/subdomains/accounts that you’ve confugured in Plesk.

Broswe through to the one you want to use WordPress multisite with and on in to the conf folder

/<yourdomain>.com/conf

If a vhost.conf file exists click the edit icon on the far right of the row and add the following:

ServerAlias *.<yourdomain>.com

If it does not exist create one and add in the line above.

Plesk settings

Login to the Plesk panel for the account that you want to work with.

Follow these steps:

  1. Go to Websites and domains > DNS Settings
  2. Click on Add Record
  3. In the Record Type dropdown select CNAME
  4. In the Domain Name field enter *
  5. In the Canonical Name field enter <yourdomain>.com

Back to Power Panel

  1. Go to the System Services section
  2. Tick next to the service httpd and click restart service in the bar above the table (wait for the restart to succeed)
  3. Tick next to the service named and click restart (wait for the restart to succeed)

If you want to do this at the command line these are the commands:

service httpd restart
service named restart

Provided you’ve followed the other instructions from WordPress both in the network installation screens and on the initial guide subdomains should now work.

5 Comments

  1. Aftter adding vhosts.conf with wildcard is to website’s folder redirected even subdomain “webmail”, which is dedicated to webmail on server (and which have been working fine before adding vhosts.conf).

    Solution for Plesk 9 (http://codex.wordpress.org/Configuring_Wildcard_Subdomains_for_multi_site_under_Plesk_Control_Panel) is in renaming files zz001_atmail_vhost.conf & zz001_horde_vhost.conf. But they’re removed from Plesk 10…

    Do you have any hint for Plesk 10?

    Comment by Michal Gow on August 18, 2011 at 2:48 pm

  2. jimbowes

    Does the link from Codex at the top of my article help?

    Jim

    Comment by jimbowes on August 18, 2011 at 4:16 pm

  3. jimbowes

    Ah, ok they refer to Plesk 9 as you say. Hmm I’m not sure, I’ll have a think and see if I can find anything.

    Comment by jimbowes on August 18, 2011 at 4:17 pm

  4. That’d be great. I’ve spend on it 16 hours so far without any luck :(

    Comment by Michal Gow on August 19, 2011 at 7:44 am

  5. jimbowes

    Did you try creating those files in 10? As I’m not running 9 either. Did you try in the vhost adding an explicit entry for webmail to differentiate it from the wildcard, did you also try changing the order of it?

    Comment by jimbowes on September 15, 2011 at 6:44 am

Leave A Comment!