[SOLVED] Fix WordPress Update Requires FTP Credential

The FTP credential needed when trying to update WordPress is really annoying. However, to fix that problem is easy. It is related to file and folder ownership and permissions.

File and Folder Ownership

We need to change the file and folder ownership to www-data. Apply for both user and group otherwise it won’t work.

Usually the folder of web server directory in Linux is /var/www/yourweb.com/public_html/ we need to change the ownership on public_html itself and files and folders inside it to www-data.

$ cd /var/www/yourweb.com/
$ chown -R www-data:www-data *

File and Folder Permission

Same as above, we need to change the file and folder permissions for both public_html and files and folders inside it. But, isn’t it difficult to change those things one by one?

Therefore, we created a guide to change the file and folder permissions recursively in an easy way. For files you need to change the permission to 755 and for folders 644.

Let us know if you still have problem.

Create and Delete SSL Certificate Let’s Encrypt

Before creating the Let’s Encrypt SSL Certificate you must do the following basic prerequisites first.

Prerequisite

    1. Don’t forget to put your domain inside /etc/hosts file.
    2. Create NGINX configuration file in /etc/nginx/sites-available/ folder.
    3. Create symbolic link to your domain’s NGINX configuration file inside /etc/nginx/sites-enabled/ folder.
    4. Test your setting by executing $ nginx -t. If all good then restart the server $ service nginx restart

    Let’s go enable your http into https and redirect the http to https forever.
    Continue reading Create and Delete SSL Certificate Let’s Encrypt