Paranoid WordPress

This is just going to be a quick post.

This blog is hosted on WordPress. I am making this post as I just updated WordPress just the other day. It’s nice to be able to do it right in the admin site. To do this you will need to change the file permissions of the WordPress install. Many times in the forum any questions regarding file permissions will have some responses to set the folders to 755 or even worse 777 with the webserver user being the owner. This will allow the person who has taken over your site to do whatever they want inside your wordpress install.

If you have ssh access to your site you can create a little script which will allow you to switch back and forth easily. First set the owner of all the files to some user who has no access. Then make www-data (or whatever your webserver user is) the group. Then change the permissions to 640 or 644 on all the folders. I even do this on my uploads folder, so I have to run this script every time I add any media. The webserver user will only have read access, so if you are compromised they should not be able to add/edit anything on your server. You can then use these two scripts:

site-upgrade

sudo chown -R www-data:www-data /www/wordpress/ #where ever wordpress is

site-normal

sudo chown -R user:www-data /www/wordpress/ #set it back to the original user

What’s nice about this is that you just change the owner. Run site-upgrade, upgrade the site, upgrade your plugins, and then run site-normal. It is one extra step, but it gives peace of mind to any paranoid WordPress admins.

Google Music, I mean Play, as an App on Windows 7

I have been using Google Music ever since I was able to get an account. I have already synced all the my music to it. It works great in my browser. I have one issue though. This:
Multiple Tabs
It becomes just another tab in my browser. It could even be just another tab in just another instance of Chrome. This is a pain. A song I don’t like comes up and I want to go to the next or my phone rings and I need to pause the song. It is a firstworldproblem, but annoying nonetheless.

I wanted to make it more of an app. It should have its own spot in my taskbar. Because I run Windows 7 it should pinned as well so it is always there.

Chrome to the rescue

Google Chrome makes this easy. Navigate to your Google Music page http://music.google.com. Click the little wrench > Tools > Create application shortcuts. You should get a window that pops up letting you choose where to put the shortcut.Google Music Application Shortcut

It will now work just like any other application and have its own spot in your taskbar.