Posts Tagged ‘WordPress’

 

WordPress SFTP

Tuesday, June 16th, 2009

wordpress-logoI don’t like to use FTP at all when I can help it. It’s an old protocol and doesn’t hold up in regards to security. I could use FTPS, which is a Secure Sockets Layer over FTP, requiring a key exchange, but frankly, that sounds like too much work for me. Since I already use SSH and SSH has file transfer capability, I usually use that to manage things. It’s commonly called SFTP. Unfortunately, this breaks many apps that expect you to be using FTP, such as WordPress.

Little known to me was that this wasn’t the fault of WordPress; those glorious developers had already added ssh file transfer support to it some time ago. What was lacking was communication between PHP and SSH. When I researched online, I found instructions on how to get them talking to each other, which kicks in the SFTP support in WordPress. I’ll detail them here for reference. (Note, this is on Ubuntu Hardy, and I’m using Apache 2 and PHP5.)

user@computer:~$ sudo apt-get install libssh2-1-dev php-pear
user@computer:~$ sudo pecl install -f ssh2
user@computer:~$ sudo nano /etc/php5/apache2/php.ini

Find the section titled “Dynamic Extensions” and below, add:

extension=ssh2.so

Save it and exit, and then just do an Apache restart.

thanks to [Kevin van Zonneveld]

Frist Psot!

Friday, May 1st, 2009
screenshot of my "d" issue

screenshot of my "d" issue

WordPress is crazy weird. I had this problem when I set up this server, where I was trying to have the domains switch from looking like “domain.com” and force the addition of www, to make it look like “www.domain.com”. I’ve done this before and it’s generally pretty easy. Little did I know, but WordPress seems to set itself up the opposite way. I spent a good part of the day wrecking my Apache configuration before I realized that it was a setting in the WordPress admin panel screwing with me the whole time.

Also, I noticed the Helvetica I have installed in Ubuntu has some weird dropped “d” thing going on. Quite interesting really.