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
![Page 1: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/1.jpg)
wp-config Tips and Tricks
![Page 2: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/2.jpg)
What is it?
Configuration settings for your WordPress install
http://codex.wordpress.org/Editing_wp-config.php
![Page 3: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/3.jpg)
Created either by using the installer
Or copy wp-config-sample.php
![Page 4: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/4.jpg)
Database Settings
`
![Page 5: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/5.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/6.jpg)
Security Keys
Ensure better cookie encryption
![Page 7: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/7.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/8.jpg)
URLs
Override the database value without changing it
Disables these fields in the wp-admin
![Page 9: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/9.jpg)
Custom User Tables
![Page 10: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/10.jpg)
Move wp-content
![Page 11: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/11.jpg)
Other Tips
![Page 12: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/12.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/13.jpg)
Developer
![Page 14: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/14.jpg)
Testing
![Page 15: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/15.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/16.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/17.jpg)
Using SVN
● Move wp-content in wp-config.php
● Change the site URLs in wp-config.php
![Page 18: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/18.jpg)
Using SVN
● Modify your .htaccess file
● Update using svn up● Some plugins will break!
![Page 19: wp-config Tips and Tricks](https://reader036.vdocument.in/reader036/viewer/2022080210/554bb9c2b4c9053a298b4bd4/html5/thumbnails/19.jpg)
The Good And the Bad
● Good● Very customizable● Clean & concise
● Bad● Test first!● Test again!