Server Preparation

  • setup subdomain blog.example.com
    • PHP on fastcgi support
    • SSL support (with SSL and non-SSL in one directory)
  • setup MySQL database, user and password
    • 1 DB for wp
    • 1 DB for wp/buddypress users and usermeta
    • give main user rights to user DB ("
      ALL PRIVILEGES

      ")

  • create php.ini (as seen on faq.hosteurope.de)
    • mkdir -p /etc/phpconfigs/example.com/subdomains/blog/
    • cp /etc/php5/cgi/php.ini /etc/phpconfigs/example.com/subdomains/blog
  • costumize php.ini
    • memory_limit = 512M
      upload_max_filesize = 2048M
      max_input_time = 900
      max_execution_time = 900
  • create vhost.conf
    • create and edit 
      /var/www/vhosts/example.com/subdomains/blog/conf/vhost.conf
    • create wildcard subdomain entry
      • ServerAlias *.blog.bau-ha.us
    • reference php.ini for fastcgi
    • <Directory "/var/www/vhosts/bau-ha.us/subdomains/blog/httpdocs">
      <Files ~ (\.php)>
      FCGIWrapper "/usr/bin/php5-cgi -c /etc/phpconfigs/bau-ha.us/" .php
      Options All
      </Files>
      </Directory>
      <Directory "/var/www/vhosts/bau-ha.us/subdomains/blog/httpdocs"><Files ~ (\.php)>FCGIWrapper "/usr/bin/php5-cgi -c /etc/phpconfigs/bau-ha.us/" .phpOptions All</Files></Directory>
  • propagate vhost.conf to plesk
    • /usr/local/psa/admin/bin/websrvmng -a -v
  • restart apache
    • /etc/init.d/apache2 restart
  • download wordpress mu from mu.wordpress.org, untar and put into
    /var/www/vhosts/example.com/subdomains/blog/httpdocs/
  • go to blog.example.com
  • follow instructions
  • edit wp-config.php
    • // uncomment this to enable WP_CONTENT_DIR/sunrise.php support
      define( 'SUNRISE', 'on' );