WordPress not able to create directory — April 18, 2018

WordPress not able to create directory

First of all check which server user is accessing your files. You can check it by

echo exec('whoami');

Now go to your server terminal and change ownership of your wordpress installation directory to this user or group. In ubuntu like this

sudo chown -R user:group /var/www/wordpress
Advertisements
Ubuntu SSH timeout — April 16, 2018

Ubuntu SSH timeout

If ssh session expires too soo you can easily prevent it with client side settings.
edit your local SSH config file in ~/.ssh/config and add this:

ServerAliveInterval 120

For additional information visit this link.

WordPress after migration keep redirecting to installation steps — April 13, 2018

WordPress after migration keep redirecting to installation steps

So I imagine that you have imported your DB and uploaded wordpress files to new server and You have changed the DB variables in wp-config.php. But it still redirect you to installation screen( check screenshot )
The only reason is that WordPress is not able to find its tables. It is able to connect to you DB but not able to find tables. This is because you have forgot to change ‘$table_prefix’ in your wp-config.php

$table_prefix  = 'wp_some_other_prefix';

I made this mistake too 🙂

Ubuntu wordpress uploads permission issue —

Ubuntu wordpress uploads permission issue

So the issue I faced was

When I changed directory permission to www-data:www-data then WordPress was able to upload files but then ftpuser was not able to edit files.

So easy solution is to add that ftpuser to www-data group

Change the directory owner and group:

sudo chown www-data:www-data /var/www/[new directory]

allow the group to write to the directory with appropriate permissions:

sudo chmod -R 775 /var/www

Add ftpuser to the www-data group:

sudo usermod -a -G www-data [my username]

Logout and login again.

Setup apache Virtual Host and Nginx Server Blocks (Virtual Hosts) —
Ubuntu Install wordpress command line —
AWS EC2 instance allow ping — April 10, 2018