WordPress

WordPress Asking For FTP Credentials

In this short post, I am going to share with you how to fix problem on WordPress asking for FTP credentials. This is a problem I encountered recently when I try to update one of my company WordPress websites to the latest version. The WordPress requesting me to enter the FTP’s login ID and password. I was so shocked when seeing the message. For your info, I logged in as an Admin user. So, I should have the full access to update the WordPress. This is the first time I see this error message.

As usual, I quickly search for solution on Google and I found the answer. It is due the folder permission doesn’t allow me to do any update on the ‘wp-content’ folder. You can fix this problem easily by changing the folder permission to allow read and write access.

I am going to show you how to change the folder permission here. In my case, my WordPress is hosting on a Linux server, thus this guide is relevant to Linux environment only.

How to fix problem on WordPress asking for FTP credentials

First, you need to login to the hosting server. I assume you have access to the WordPress hosting server.

Using the following command to change your current directory to your WordPress root document directory.

In my case, my root document directory is /var/www/mywebsite/

 cd /var/www/mywebsite

Next, you will be changing the ownership of the all the folders, sub-folders and files to the user and group that running the webserver service. In this case, the user and group that running the webserver service is apache. You can change the ownership with the following command.

 chown -R apache:apache *

Lastly, you will be changing the permission of all the folders, sub-folders and files to have read and write access. You can change the permission with the following command.

 chmod -R g+w *

 

To Your Success,

Kwah Choon Hiong


Kwah

Share
Published by
Kwah

Recent Posts

How to Scan a Document to Your Phone with Microsoft Office Lens?

Do you know that you can use your mobile phone to scan documents? Of course,…

4 years ago

How to Cast Phone to PC

Today, I want to show you how to cast your mobile phone to your PC.…

4 years ago

Install and Configure Fail2Ban On CentOS 7

In this article, I will show you how to install and configure Fail2ban service on…

5 years ago

Bulk Delete WordPress Posts

Have you ever want to bulk delete to your WordPress posts records and you have…

5 years ago

What is a Landing Page?

Perhaps you hear about the terms “Landing Page”. Sometimes, we also call it as “Lead…

6 years ago

How to Embed Google Forms in WordPress?

In this article, you will be learning how to embed Google Forms in WordPress. Google…

6 years ago