Linode Library Home
Linode Library RSS Feed
Home :: Web Applications :: CMS Guides
Print View View Source

Manage Web Content with WordPress

Published: by

WordPress is popular dynamic blog-focused content management system. The software is built upon the popular LAMP stack and features an extensible plugin framework and extensive theme system, which allows site owners and developers to deploy easy to use and powerful publishing tools. As a result, WordPress has in many ways become the default choice for developers and systems administrators who need easily managed blog systems.

This guide assumes you have a complete and up to date system, and that you have completed the getting started guide. If you are new to Linux system administration, you may want to review our administration basics guide or the rest of the documents in the using Linux series.


Install Prerequisites

Before installing WordPress, you must ensure that your system has a fully functioning LAMP stack. Alternatively, you may choose to deploy WordPress on top of a LEMP stack; however, this may affect some aspects of configuration. Follow the appropriate guide for the distribution of Linux that your system runs.

Additionally, this guide assumes that you are deploying WordPress on the domain, where the directory /srv/www/ is the document root where all web accessible files are stored. As the names and locations of domains and files will certainly differ for your system, make the necessary modifications to the commands in this document to conform to the requirements of your deployment.

Install WordPress

As of this writing, the latest version of WordPress is 3.0. The latest version of WordPress is always available from the URL Issue the following sequence of commands to download and install the required files:

mkdir /srv/www/
cd /srv/www/
tar -zxvf /srv/www/
mv /srv/www/ /srv/www/`date "+%Y-%m-%d"`.tar.gz
cp -R /srv/www/* /srv/www/
rm -rf /srv/www/

These commands create a src/ folder within the /srv/www/ directory to store and manage pristine copies of the source files that you use to deploy your WordPress site. The WordPress software contains a mechanism for downloading and installing new versions of WordPress and plug-ins from within the administration interface.

Configure WordPress

Ensure that the WordPress installation process has the ability to create the required configuration file by issuing the following command:

chmod 777 /srv/www/

Visit in your web browser, and follow the steps outlined by the configuration process. Begin with "Creating a Configuration File," and continue past the next informational page by clicking on the "Let's Go!" button. Supply WordPress with the database credentials established when you installed the database server. Finally, select the "Run the install" option, and supply the required values as prompted.

As soon as the installation completes, issue the following commands to reset file permissions and ownership of your files to ensure basic security:

chmod 755 /srv/www/
chown root:root /srv/www/

Additionally, if you are using the Apache web server on a Debian or Ubuntu-based system, you will want to issue the following commands to ensure that mod_rewrite is enabled:

a2enmod rewrite
/etc/init.d/apache2 restart

You will now be able to log into your new WordPress powered web site site. You can continue the configuration of your WordPress site from the web based interface. Congratulations! You have now successfully installed WordPress!

Install WordPress Super Cache

Further configuration of WordPress is largely beyond the scope of this document, but the following case provides an overview of the process for installing a new WordPress plugin. In the following procedure, you will install WP Super Cache, which provides a robust caching system that can substantially increase your site's performance. Begin by issuing the following commands:

cd /srv/www/
mv /srv/www/ /srv/www/

If your system does not have the unzip tool installed, you can install it using your system's package management tool. You may now visit the "Plugins" page of the WordPress administration interface, which is located at "". Select the "Activate" link in the "WP Super Cache" section to load the plugin and begin its configuration.

Congratulations, you have now installed the WP Super Cache Plugin! You can install other plugins from the WordPress Plugin Directory using the method described above at any time.

Monitor for Software Updates and Security Notices

When running software compiled or installed directly from sources provided by upstream developers, you are responsible for monitoring updates, bug fixes, and security issues. After becoming aware of releases and potential issues, update your software to resolve flaws and prevent possible system compromise. Monitoring releases and maintaining up to date versions of all software is crucial for the security and integrity of a system.

Please monitor your WordPress instance for updates from the automatic upgrade tool to ensure that you are aware of all updates to the software and can upgrade appropriately or apply patches and recompile as needed. You may additionally want to monitor the mailing lists to

When upstream sources offer new releases, use the automatic tools to upgrade in a prompt manner. These practices are crucial for the on going security and functioning of your system.

Creative Commons License

This guide is licensed under a Creative Commons Attribution-NoDerivs 3.0 United States License.

Last edited by System on Tuesday, April 19th, 2011 (r262).