Wordpress network: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
/etc/init.d/httpd restart | /etc/init.d/httpd restart | ||
/usr/local/cpanel/bin/apache_conf_distiller --update | |||
:Log into WHM and edit their DNS zone file to include(switch example with their domain) | :Log into WHM and edit their DNS zone file to include(switch example with their domain) | ||
* IN CNAME example.com. | * IN CNAME example.com. |
Revision as of 23:36, 27 June 2011
WordPress Network(MultiSite)
After WordPress Update 3.1 WordPress MultiSite Networking or WordPressMU is now a configuration in the basic install of wordpress. In order to set up wordpress network you will need to make edits to wp-config.php, .htaccess, httpd.conf, and DNS zone file. As well as make a few settings changes in Wordpress Dashboard. Due to this you will need the cPanel and wordpress credentials if you do not already have them.
To view the wordpress instruction go to this link.
Wordpress Network Installation Steps
- Reminder
- They must have wordpress version 3.1 or higher to have a multisite.
- In 3.1+ SuperAdmin is now called Networkadmin.
- Mod_rewrite must also be enabled for multisite to work.
WordpressMU
- If they already have MU setup they will only need to add the .htaccess change.
Exisitng Site
- Package the account
/scripts/pkgacct $USERNAME
- Then proceed with the setup changes
Steps to setup multisite
- Enable Subdomain Wildcard
If they want directories instead of subdomains skip this step
vim /usr/local/apache/conf/httpd.conf
- Add the following line to the bottom of their VHost(switch out example for their domain)
ServerAlias *.example.com
/etc/init.d/httpd restart /usr/local/cpanel/bin/apache_conf_distiller --update
- Log into WHM and edit their DNS zone file to include(switch example with their domain)
* IN CNAME example.com.
- Create universal directory
- Create the directory blogs.dir inside of
mkdir /home/$USERNAME/public_html/wp-content/blogs.dir
- Change permissions to appropriate type(example is for suphp)
chown $USERNAME. /home/$USERNAME/public_html/wp-content/blogs.dir
- Adjust Wordpress settings
- define('WP_ALLOW_MULTISITE', true);
- Edit wp-config.php to have the above line at the top, just below the <php.
vim /home/$USERNAME/public_html/wp-config.php
- Enable Networking in wordpress dashboard
- Go to Tools>>Netwrok
- Choose subdomains or directories depending on customer preference
- The rest autofills and should be correct unless otherwise requested by customer
- Click Install
This will generate lines you will need to add to the config and htaccess files!
- Finish setting up wordpress
- You will edit the generated lines when installing network to the appropriate files
vim /home/$USERNAME/public_html/wp-config.php /etc/init.d/httpd restart
- You will need to log out and log back into wpadmin