# Updating WordPress on Fedora using SSH2 Protocol
Published: 2011-04-22
Updated: 2011-06-22
Author: Alexander Conroy
Categories: Wordpress
Description: This command is essential for being able to update Wordpress using SSH2 protocol when running on Fedora and using YUM for updates.
---
This is the missing link for you Fedora Users, without this package installed you will not even see the SSH2 Option in wordpress for updates.
> yum install php-pecl-ssh2
then restart apache
> httpd -k restart
After installing that (and having SSH2 installed and all the other Apache / PHP Goodies) the SSH method opens up in WordPress.
Note you do not need an authorized key, just username and password for SSH. Notice that the host can be anything from localhost to the IP Address of the domain, any way you would log into SSH.
Also make sure to set the following in your wp-config,
> define(‘FTP_BASE’, ‘/var/www/vhostsyourdomain.com/httpdocs/’);
>
> define(‘FTP_CONTENT_DIR’, ‘/var/www/vhosts/yourdomain.com/httpdocs/wp-content/’);
>
> define(‘FTP_PLUGIN_DIR ‘, ‘/var/www/vhosts/yourdomain.com/httpdocs/wp-content/plugins/’);
Nice thing is you can use your root user and password (for you dangerous types) to upgrade, just don’t give it to anyone else!!!! This is a security risk!!
Other good resources on this topic (but missing the above command and advice):
---
[Back to Index](/llms.txt)