wp-config Tips and Tricks

3,670 views
3,562 views

Published on

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/

Published in: Technology, Business
1 Comment
3 Likes
Statistics
Notes
No Downloads
Views
Total views
3,670
On SlideShare
0
From Embeds
0
Number of Embeds
823
Actions
Shares
0
Downloads
27
Comments
1
Likes
3
Embeds 0
No embeds

No notes for slide

wp-config Tips and Tricks

  1. 1. wp-config Tips and Tricks
  2. 2. What is it? Configuration settings for your WordPress install http://codex.wordpress.org/Editing_wp-config.php
  3. 3. Created either by using the installer Or copy wp-config-sample.php
  4. 4. Database Settings `
  5. 5. 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
  6. 6. Security Keys Ensure better cookie encryption
  7. 7. More Security ● Move wp-config.php out of the public html area ● Limit access to wp-config.php
  8. 8. URLs Override the database value without changing it Disables these fields in the wp-admin
  9. 9. Custom User Tables
  10. 10. Move wp-content
  11. 11. Other Tips
  12. 12. There's More? ● Language and Language Directory ● Specify Cookie Domain ● Override File Permissions ● FTP / SSH Constants ● Control Proxy Access
  13. 13. Developer
  14. 14. Testing
  15. 15. 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
  16. 16. Using SVN ● Add the WordPress core as an svn:external html/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
  17. 17. Using SVN ● Move wp-content in wp-config.php ● Change the site URLs in wp-config.php
  18. 18. Using SVN ● Modify your .htaccess file ● Update using svn up ● Some plugins will break!
  19. 19. The Good And the Bad ● Good ● Very customizable ● Clean & concise ● Bad ● Test first! ● Test again!
  20. 20. http://www.picklewagon.com Twitter: joshh

×