Blog
Invalid command Header
On a web site running Apache, i got following error in log file [Fri Jan 19 06:43:41.146643 2018] [core:alert] [pid 3536:tid 139697024132864]…
phpmyadmin
cd /usr/local/src wget https://files.phpmyadmin.net/phpMyAdmin/4.8.2/phpMyAdmin-4.8.2-all-languages.zip unzip phpMyAdmin-4.8.2-all-languages.zip mkdir /usr/serverok rm -rf /usr/serverok/phpmyadmin mv phpMyAdmin-4.8.2-all-languages /usr/serverok/phpmyadmin mkdir /usr/serverok/phpmyadmin/tmp/ chmod 777 /usr/serverok/phpmyadmin/tmp/ cp /usr/serverok/phpmyadmin/config.sample.inc.php /usr/serverok/phpmyadmin/config.inc.php…
MySQL root can’t login to phpMyAdmin
On Debian/Ubuntu MySQL root user can only login using socket. This is done with Plugin. MariaDB [(none)]> select User, Plugin from mysql.user;…
Getting Started with Amazon ECS
STEP 1: Creating a Cluster First step is creating a cluster. This can be done with CLI or Amazon Console. To do…
aws configure
To configure awscli, run aws configure If you have multiple aws account, see Named Profiles To see list of profiles configured, run…
Install PHP 5.6 on Debian
Debian 9 come with PHP 7. To install PHP 5.6, run apt install apt-transport-https lsb-release ca-certificates -y wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg sh…
curl
View Header To view the response header, use Specify Host Header Example Using Proxy To connect to a proxy using an Authenticated…
Docker exec
docker exec command allow running commands inside running containers. docker exec -ti CONTAINER_ID /bin/bash See docker
Docker Run
Docker run command creates a container from an image and runs it. Here we run the nginx Docker image. -d = detach…
find
find files by sizeFind limit search depthFind files older than X minutes Find Inside File Or -r = recursive-n = show line…
dd
To test the speed of the hard disk, run To create a 200 mb file, run Here is the test result for…