wp-config Tips and Tricks

20
wp-config Tips and Tricks

description

I gave this presentation at WordCamp Seattle on September 26, 2009. It was an Ignite presentation so there is a lot of information in very little time. A video of the presentation can be found at http://wordpress.tv/2009/09/26/josh-harrison-config-seattle09/

Transcript of wp-config Tips and Tricks

Page 1: wp-config Tips and Tricks

wp-config Tips and Tricks

Page 2: wp-config Tips and Tricks

What is it?

Configuration settings for your WordPress install

http://codex.wordpress.org/Editing_wp-config.php

Page 3: wp-config Tips and Tricks

Created either by using the installer

Or copy wp-config-sample.php

Page 4: wp-config Tips and Tricks

Database Settings

`

Page 5: wp-config Tips and Tricks

Table Prefix

The value placed in front of your database tables

You should change the default value pre-install

Allows multiple WP installs to a single DB

Page 6: wp-config Tips and Tricks

Security Keys

Ensure better cookie encryption

Page 7: wp-config Tips and Tricks

More Security

● Move wp-config.php out of the public html area

● Limit access to wp-config.php

Page 8: wp-config Tips and Tricks

URLs

Override the database value without changing it

Disables these fields in the wp-admin

Page 9: wp-config Tips and Tricks

Custom User Tables

Page 10: wp-config Tips and Tricks

Move wp-content

Page 11: wp-config Tips and Tricks

Other Tips

Page 12: wp-config Tips and Tricks

There's More?

● Language and Language Directory● Specify Cookie Domain● Override File Permissions● FTP / SSH Constants● Control Proxy Access

Page 13: wp-config Tips and Tricks

Developer

Page 14: wp-config Tips and Tricks

Testing

Page 15: wp-config Tips and Tricks

Using SVN

● Put your WordPress site in an SVN repository

● Automatically update the WordPress core files

● Automatically update themes and plugins

● Easily change versions for testing purposes

Page 16: wp-config Tips and Tricks

Using SVN

● Add the WordPress core as an svn:externalhtml/wp http://svn.automattic.com/wordpress/tags/2.8.4

● Copy the wp-content folder to public html● Add the wp-config file to public html

Page 17: wp-config Tips and Tricks

Using SVN

● Move wp-content in wp-config.php

● Change the site URLs in wp-config.php

Page 18: wp-config Tips and Tricks

Using SVN

● Modify your .htaccess file

● Update using svn up● Some plugins will break!

Page 19: wp-config Tips and Tricks

The Good And the Bad

● Good● Very customizable● Clean & concise

● Bad● Test first!● Test again!

Page 20: wp-config Tips and Tricks

http://www.picklewagon.com

Twitter: joshh