Difference between revisions of "WordPress"
Jump to navigation
Jump to search
(wp-includes/languages) |
({{tag|Engine Room}}) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== | ==Mac OS X== | ||
===To enable automatic installs and upgrades using FTPS=== | |||
*<code>mkdir wp-content/upgrade</code> | |||
*<code>chmod g+w wp-content/{upgrade,plugins}</code> | |||
*Edit <code>wp-config.php</code> and add: | |||
**<code>define('FS_METHOD', 'direct');</code> | |||
For more information, see: | |||
*http://thefragens.com/blog/2010/06/wordpress-automatic-updates/ | |||
*http://codex.wordpress.org/Editing_wp-config.php | |||
===To create a local WordPress mirror=== | |||
See http://codex.wordpress.org/MacOS_X_Local_Mirror | |||
==To upgrade WordPress== | |||
Assumptions: | Assumptions: | ||
#cd gets you to the parent of the httpdocs directory | #cd gets you to the parent of the httpdocs directory | ||
Line 25: | Line 39: | ||
#rm httpdocs | #rm httpdocs | ||
#ln -s wordpress-''newversion'' httpdocs | #ln -s wordpress-''newversion'' httpdocs | ||
#Browse ''wesbite''/wp-admin/upgrade.php | #Browse ''wesbite''/wp-admin/upgrade.php (normally, this will happen automatically) | ||
#Reactivate all plugin-ins | #Reactivate all plugin-ins | ||
And you're done. | And you're done. | ||
{{tag|Engine Room}} |
Latest revision as of 12:25, 30 December 2011
Mac OS X
To enable automatic installs and upgrades using FTPS
mkdir wp-content/upgrade
chmod g+w wp-content/{upgrade,plugins}
- Edit
wp-config.php
and add:define('FS_METHOD', 'direct');
For more information, see:
- http://thefragens.com/blog/2010/06/wordpress-automatic-updates/
- http://codex.wordpress.org/Editing_wp-config.php
To create a local WordPress mirror
See http://codex.wordpress.org/MacOS_X_Local_Mirror
To upgrade WordPress
Assumptions:
- cd gets you to the parent of the httpdocs directory
- wordpress directories are named wordpress-version, e.g. wordpress-2.3.3
- httpdocs is a symlink to the current wordpress directory
To upgrade:
- cd
- wget http://wordpress.org/latest.zip
- unzip latest.zip
- rm latest.zip
- mv wordpress wordpres-newversion (e.g. 2.3.3)
- mysqldump database name of blog > database name of blog.sql
- Update the file wp-files-to-preserve to include all files and directories you want to or must keep. Create it if it does not exist. Typical, it includes:
- .htaccess
- favicon.ico
- wp-config.php
- wp-content/plugins
- wp-content/themes
- wp-content/uploads
- wp-includes/languages
- cd wordpress-oldversion (e.g. 2.3.1)
- find `cat ../wp-files-to-preserve` | cpio -pdvlm ../wordpress-newversion
- cd ..
- rm httpdocs
- ln -s wordpress-newversion httpdocs
- Browse wesbite/wp-admin/upgrade.php (normally, this will happen automatically)
- Reactivate all plugin-ins
And you're done.