Thursday, September 6, 2018

AH01797: client denied by server configuration

If you get this message in your logs, it means mentioned Directory or File has been prohibited by server configuration. 

You have mentioned that this directory or file should not be accessible by user.

In many cases, most common forbidden file is xmlrpc.php of wordpress because it may be one reason of DDOS attack. That's why system administrators block this file to access using GET method.

Other forbidden object can be uploads or config directory.


Wednesday, September 5, 2018

Font - Text has turned into boxes in Ubuntu 16.04

Without any cause all text has turned into boxes 'rectangles' everywhere in Ubuntu 16.04.
find /usr/share/fonts -iname '*.ttf' -type f -exec sudo chmod -v 644 {} \;
find /usr/share/fonts -iname '*.otf' -type f -exec sudo chmod -v 644 {} \;
sudo fc-cache -r -v

Python error while installing any package on Ubuntu

Error :
Errors were encountered while processing:
 python-pkg-resources
 python-zope.interface
 python-twisted-core
 python-twisted-web
 python-ubuntu-sso-client
 ubuntu-sso-client
 ubuntu-sso-client-qt
 python-aptdaemon
 python-aptdaemon.gtk3widgets
 oneconf
 software-center
 sessioninstaller
E: Sub-process /usr/bin/dpkg returned an error code (1)


Solution :
sudo apt-get clean
sudo apt-get update
sudo apt-get install --reinstall python-minimal python-lockfile


AWS CLI - Copy data of one s3 bucket to another s3 bucket of same AWS account

Once aws account is configured using secret and access keys, run following command.
aws s3 sync s3://bucket1 s3://bucket2

AWS - SignatureDoesNotMatch (client): Signature not yet current:

Solution :

The issue is with date, you need to fix the date by command.
sudo ntpdate ntp.ubuntu.com