Title: Installing plugins
Last modified: August 21, 2016

---

# Installing plugins

 *  [Blakenic](https://wordpress.org/support/users/blakenic/)
 * (@blakenic)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/installing-plugins-15/)
 * I keep getting an annoying error on wordpress whilst trying to install a plugin.
   Here is an example of the error message: [http://i.imgur.com/wxEJitu.png](http://i.imgur.com/wxEJitu.png)
 * However he is verification that I the FTP does work: [http://i.imgur.com/eVtBb8n.png](http://i.imgur.com/eVtBb8n.png)
 * Information about the server:
    I am running CentOS 6 on a VPS.
 * I have tried the upload functionality too and get this error message: [http://i.imgur.com/l8eZc4f.png](http://i.imgur.com/l8eZc4f.png)
   
   I have chmod the directory to 0755
 * Seems like all this thing does is spit error messages.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Chirag Swadia](https://wordpress.org/support/users/chiragswadia/)
 * (@chiragswadia)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/installing-plugins-15/#post-4489314)
 * You should add the following code with your FTP details in wp-config.php
 *     ```
       define( 'FTP_USER', 'username' );
       define( 'FTP_PASS', 'password' );
       define( 'FTP_HOST', 'ftp.example.org:21' );
       ```
   
 * Other thing you can do is give full permissions to the current user so that wordpress
   can automatically create folders and files in `wp-content/plugins`
 * Run these two commands with www-data replaced with your username and
    wordpress
   replaced by the path to your wordpress installation.
 *     ```
       chirag$ cd /var/www
       chirag$ sudo chown -R www-data:www-data wordpress
       ```
   
 *  Thread Starter [Blakenic](https://wordpress.org/support/users/blakenic/)
 * (@blakenic)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/installing-plugins-15/#post-4489372)
 * Gave it 0755 permission to the wp-content and all it’s subdirectories I still
   get the same error “write to” message.
    The thing you suggested adding to the
   file I already tried.
 *  [Chirag Swadia](https://wordpress.org/support/users/chiragswadia/)
 * (@chiragswadia)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/installing-plugins-15/#post-4489382)
 * Have you checked who is the owner of the directory and which user is trying to
   upload the plugin files into `wp-content/plugins` directory. Are they same ?
 *  Thread Starter [Blakenic](https://wordpress.org/support/users/blakenic/)
 * (@blakenic)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/installing-plugins-15/#post-4489389)
 * How do I do that in CentOS? I think there is only the Root user as I have not
   made any other users.
 *  [Chirag Swadia](https://wordpress.org/support/users/chiragswadia/)
 * (@chiragswadia)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/installing-plugins-15/#post-4489394)
 * Please try adding
 * `define('FS_METHOD', 'direct');`
 * this to your wp-config file ?
 *  Thread Starter [Blakenic](https://wordpress.org/support/users/blakenic/)
 * (@blakenic)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/installing-plugins-15/#post-4489486)
 * That allowed the FTP host to work now 🙂
    However there is still an issue with
   allowing it to right. [http://i.imgur.com/9eSZ9pG.png](http://i.imgur.com/9eSZ9pG.png)
   Also here is a screenshot that only the root is using it: [http://i.imgur.com/jQ9tY3o.png](http://i.imgur.com/jQ9tY3o.png)
 *  Thread Starter [Blakenic](https://wordpress.org/support/users/blakenic/)
 * (@blakenic)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/installing-plugins-15/#post-4489487)
 * Fixed:
    To anyone else having this problem add this to the end of your wp-config.
   php file:
 * define( ‘FTP_USER’, ‘username’ );
    define( ‘FTP_PASS’, ‘password’ ); define( ‘
   FTP_HOST’, ‘ftp.example.org:21’ ); define(‘FS_METHOD’, ‘direct’);
 * (fill in the FTP details with yours)
 * then chmod 755 to the wp-content directory using this command:
    chmod -R 777 /
   dir1/dir2/dir3/wordpress/wp-content/

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Installing plugins’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [Blakenic](https://wordpress.org/support/users/blakenic/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/installing-plugins-15/#post-4489487)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
