Hacker News new | ask | show | jobs
by falldowngoboom 6014 days ago
I've heard about easy Wordpress upgrades, but never experienced them. Here's my cheatsheet:

  * download latest.tar.gz and rename
  * untar
  * mv wordpress ../wordpress-x.x.x
  * cd wordpress-x.x.x
  * cp wordpress-current/.htaccess . [only if wordpress is in site root]
  * cp -r wordpress-current/uploads/ .
  * cp -r wordpress-current/themes/ .
  * cp wordpress-current/wp-config.php .
What am I doing wrong?

(Also moving from a development install to production is also ugly. I have to search and replace hostnames in the mysqldump of the database!)

1 comments

Well, you could turn that into a shell script...

But what I think you are missing is the upgrade option that pops up in your dashboard. Yeah, there are some downsides, like security. I just chown the file tree to the webserver user for as long as it takes to do the upgrade and then back.