WordPress is a powerful web publishing platform. You can use some of WordPress’s more advanced features or tweak your WordPress deployment for better performance.
Serving Uploads Faster¶
To improve performance for your WordPress application, create a symbolic link application to serve your WordPress application’s media directly. To create and configure the symlink application:
- Log in to the control panel.
- Click Domains / websites ‣ Websites. The list of websites appears.
- Click the name of the website that contains the WordPress application.
- Click Add an application ‣ Create a new application. The Create a new web app form appears.
- In the Name field, enter a name for the application.
- In the App category field, click to select Symbolic link.
- In the Extra info field, enter /home/username/webapps/wordpress/wp-content/uploads/, where username is your username and wordpress is the name of the WordPress application.
- In the URL field, enter wp-content/uploads for WordPress applications mounted at the root of a domain (/) or enter path/wp-content/uploads where path is the URL path for the WordPress application.
- Click the Save button. The application is installed and added to website’s list of applications.
- Click the Save button. The changes to the website are saved.
Now the files in wp-content/uploads are served by your server’s front-end process directly, bypassing the PHP interpreter.
To help your WordPress application handle a larger number of visits, you can automatically cache many pages of your WordPress application using the WP Super Cache plugin. To install WP Super Cache:
- Log in to WordPress.
- Click Plugins ‣ Add New. The Install Plugins page appears.
- In the search field, enter WP Super Cache and click Search Plugins. The Search Results table appears.
- Under WP Super Cache, click Install Now. The Installing Plugin page appears.
- Click Activate Plugin. The Plugins page appears with a table of installed plugins.
- Under WP Super Cache, click Settings.
- If Permlink Structure Error appears:
- Click Permalinks Options Page. The Permalink Settings page appears.
- In the Common settings section, select a permalink URL scheme other than Default.
- Click the Save Changes button. A Permalink structure updated notification appears at the top of the page.
- In the sidebar, click Settings ‣ WP Super Cache. The WP Super Cache Settings page appears.
- Click to select Caching On (Recommended).
- Click the Update Status button.
Now, static pages will be served to your users instead of dynamically generated pages where possible.
As of WordPress version 3.0, WordPress MU has become part of the core WordPress software. With the Multisite features of WordPress 3.0, you can create a network of WordPress blogs from a single installation of WordPress using subpaths (for example, example.com/blog1, example.com/blog2, etc.) or subdomains (for example, blog1.example.com, blog2.example.com, etc.). To use the Multisite feature of WordPress to create a blog network:
Create a WordPress site and application.
Log in to the control panel.
Click Domains / websites ‣ Websites. The list of websites appears.
Click the Add new website button. The Create a new website form appears.
In the Name field, enter a website name.
For each domain name you want to use with the website, add it to the list of domains. In the Domains field, enter the domain name. Enter one or more domain names. If the domain has not yet been added to the control panel, click the Create link that appears at the bottom of the list of domains to add it.
If you’re planning to use subdomains for multisite blogs (like marysblog.example.com and johnsblog.example.com), add a wildcard subdomain for the domain name (or names) for the site.
For example, if you entered example.com in the Domains field, also add *.example.com.
Don’t forget to point new domains to the WebFaction name servers.
Click Add an application ‣ Create a new application. The Create a new web app form appears.
In the Name field, enter a name for the WordPress application.
In the App category menu, click to select WordPress.
Click the Save button. The application is installed and added to website’s list of applications.
Click the Save button. The website is created and added to the list of websites.
Wait two minutes while the website record changes take effect.
Enable WordPress Multisite.
- Open ~/webapps/app/wp-config.php in a text editor.
- On a new line beneath <?php, add define('WP_ALLOW_MULTISITE', true);.
- Save and close the file.
Configure WordPress Multisite.
- Log in to WordPress.
- In the menu on the left, click Tools ‣ Network. The Create a Network of WordPress Sites page appears.
- Click to select the address type you would like to use for blogs on the WordPress network:
- Choose Sub-domains for network blogs to use subdomains to form URLs (like marysblog.example.com and johnsblog.example.com).
- Choose Sub-directories for network blogs to use subdirectories to form URLs (like example.com/marysblog and example.com/johnsblog).
- In the Network Details section, adjust any preferences as desired.
- Click the Install button. The Enabling the Network page appears.
- The Enabling the Network page provides several important steps to complete the setup. Complete the directions provided before continuing.
- Log out of the WordPress site.
You can now make and manage new Multisite blogs: login to the WordPress Dashboard and use the Super Admin module in the menu.