Installing WordPress
Pre-Flight
Change Passwords
If this is the first thing you're doing on your accelerator, you will want to make sure you change your shell user, webmin admin user, root, and mysql root passwords. The instructions on how to do this are here.
Create Database and User
- Log into Virtualmin using the information included in your welcome email. The address will be https://yourserveripaddress:10000.
- Click Webmin at the top of the left column
- Expand the Servers section
- Click MySQL Database Server
- In the right section, directly under the MySQL Databases heading, click “Create a new database”
- Choose a name for the database (I'm using wp)
- Choose a character set (UTF-8 is usually a good choice these days)
- Ignore the rest of the options and click the Create button
- You will now see your new database in the list of databases on the main MySQL admin page
- Click the User permissions icon
- Click “Create new user”
- Next to Username, select the second radio button so that “Anonymous user” is no longer selected and enter a username of your choice
- Click “Set to..” next to Password and enter a secure password
- Next to Hosts, select the second radio button and enter localhost
- Click the Create button
- Click “Return to database list”
- Click the Database permissions icon
- Click “Create New Database Permissions”
- Next to Databases, click Selected and choose your WordPress database from the drop-down
- Next to Username, select the second radio button so that “Anonymous user” is no longer selected and enter the username you chose when creating the user
- Change Hosts to the third radio button, and enter localhost.
- In the list of permissions, select the following options
- Select table data
- Insert table data
- Update table data
- Delete table data
- Create tables
- Drop tables
- Manage indexes
- Alter tables
- Click Create
Software Install
Download & Prep
Download the latest version of WordPress from here and unzip it.
Inside this folder is a file called wp-config-sample.php. Rename this file to wp-config.php.
Open the wp-config.php file in your favorite text editor, enter your database information, and save the file. Specifically, you'll enter the following data:
- Replace putyourdbnamehere (next to DB_NAME) with the database name you chose during preflight
- Replace usernamehere (next to DB_USER) with the database username you chose during preflight
- Replace yourpasswordhere (next to DB_PASSWORD) with the database password you chose during preflight
Upload
Connect to your Accelerator via SFTP, using the connection information from your welcome email (and whatever you changed the password to in the first step, of course). By default, the username will be jill.
The default path in your SFTP settings, if you're using the main virtual host on your accelerator, will be /home/jill/web/public/. If you have created a virtual host under the main jill account, it will instead be /home/jill/domains/YOURDOMAIN.COM/web/public/. You can also just let the SFTP server automatically choose the path, which will put you in /home/jill and you can browse to the public web folder from there.
Upload all the contents of the downloaded WordPress folder into this public web directory.
Run the Installation Wizard
- In your web browser, visit the installation wizard. You will access this by visiting the virtual host you installed the files under, followed by wp-admin/install.php. For example, I will access mine at http://wikidoc.joyent.us/wp-admin/install.php.
- Enter the title of your site
- Enter your email address
- Click Install WordPress
At this point WordPress will give you your admin username and an automatically generated password. Make sure you keep this password until you change it. It will also send an announcement email to the address you entered.
- Click Log In and login with the admin username and password that the installer generated for you
- You can now change your password and other admin user information by clicking the small “admin” link in the top right corner of the page.
Optimization
- Caching: Performance of your wordpress site can be greatly enhanced simply by installing a caching plugin like wp-cache.
- Plugins: Some plugins can have an adverse effect on site performance. Disable any unnecessary plugins, and try to determine if remaining plugins are efficient. Often, the WordPress community will be helpful in determining which plugin is best for your purposes.
- Themes: Like any website, make sure your theme is properly optimized. Cut down on unnecessary images, optimize your CSS and javascript, and hardcode things (like site titles) that are unlikely to change to reduce database queries.
- Additional information about optimizing WordPress can be found on the wordpress site.
Additional Resources
For additional help with configuring WordPress after this point:
