Wordpress network: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m 18 revisions |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 16: | Line 16: | ||
'''<u>Exisitng Site</u>''' | '''<u>Exisitng Site</u>''' | ||
:Package the account | |||
/scripts/pkgacct $USERNAME | /scripts/pkgacct $USERNAME | ||
:Then proceed with the setup changes | :Then proceed with the setup changes | ||
Line 23: | Line 23: | ||
;Enable Subdomain Wildcard | ;Enable Subdomain Wildcard | ||
''If they want directories instead of subdomains skip this step'' | ''If they want directories instead of subdomains skip this step'' | ||
vim /usr/local/apache/conf/ | mkdir -p /usr/local/apache/conf/userdata/std/2/(CPANELSUSERNAMEHERE) | ||
:Add the following line to the | vim /usr/local/apache/conf/userdata/std/2/(CPANELSUSERNAMEHERE)/WPmultisite.conf | ||
:Add the following line to the WPmultisite.conf you just made.(switch out example for their domain) | |||
ServerAlias *.example.com | ServerAlias *.example.com | ||
Now backup the apache conf and rebuild it. | |||
cp -Rp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.preeWPMSsetup | |||
/scripts/rebuildhttpdconf | |||
/etc/init.d/httpd restart | /etc/init.d/httpd restart | ||
: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. | ||
;Create universal directory | ;Create universal directory | ||
:Create the directory blogs.dir inside of | :Create the directory blogs.dir inside of | ||
mkdir /home/$USERNAME/public_html/wp-content/blogs.dir | mkdir /home/$USERNAME/public_html/wp-content/blogs.dir | ||
:Change permissions to appropriate type(example is for suphp) | :Change permissions to appropriate type(example is for suphp) |
Latest revision as of 23:51, 23 October 2014
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
mkdir -p /usr/local/apache/conf/userdata/std/2/(CPANELSUSERNAMEHERE) vim /usr/local/apache/conf/userdata/std/2/(CPANELSUSERNAMEHERE)/WPmultisite.conf
- Add the following line to the WPmultisite.conf you just made.(switch out example for their domain)
ServerAlias *.example.com
Now backup the apache conf and rebuild it.
cp -Rp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.preeWPMSsetup /scripts/rebuildhttpdconf /etc/init.d/httpd restart
- 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