Wednesday, January 30, 2019

Wordpress disable ftp on Ubuntu Server

How to skip WordPress FTP Credentials on Ubuntu

If you have any experience with installing Ubuntu, you will have surely run into this problem:
ftp credentials are required when ever your try to install a theme or plugin.

This is frustrating especially, if you installing just one WordPress website on your server and you do not want to install ftp, for installing only a theme and a couple of plugins. Moreover, you are looking for a short cut. Obviously, FTP is also a security risk and SFTP would have to be installed. 


Steps to disable ftp credentials popup WordPress

Prerequisite:
  • You must already have Ubuntu Server(version 16) installed.
  • WordPress is installed. Click here to install WordPress
  • Configured a WordPress blog or website. 
  • Nano must be installed.
          To install Nano run the following command: 
          
          #sudo apt-get install nano


1. Logon to your Ubuntu Server
2. Open WordPress website configuration file in nano editor:

#sudo nano nano /var/www/wordpress/wp_config.php

 The command sudo lets you edit the configuration file using administrator rights. Nano is my favourite Debian file editor. The location of where you have installed you WordPress website,                    "/var/www/wordpress/" and in this folder you will find the configuration file.

3. In nano editor add below line, preferable at the end of the file: 

    Define(‘FS_METHOD’,’direct’)

If the editor is empty then you have typed an incorrect path.


References