Posts by ServerOk

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] [client 112.133.229.111:50559] /home/site.com/public_html/.htaccess: Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://site.com/ This was Ubuntu server with Apache. Problem is due to Apache Headers […]

Read More…

phpmyadmin

Edit

Generate 32 chars length random key and add

Or

Configure Apache On Ubuntu, create file

On CentOS

Add following content

MySQL root can’t login to phpMyAdmin Password Protect phpMyAdmin in CentOS Server Add following config to /etc/httpd/conf.d/phpmyadmin.conf

Create password file

This will create user “admin” […]

Read More…

MySQL root can’t login to phpMyAdmin

On Debian/Ubuntu MySQL root user can only login using socket. This is done with Plugin.

To fix this, first set a password for user root. Change MySQL root password To disable plugin, run following commands in MySQL command prompt as user root.

MySQL phpMyAdmin […]

Read More…

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 in CLI, run

If you login to Amazon ECS console, you will see newly created cluster. If you want to delete cluster, you can do with command line

STEP 2: Creating […]

Read More…

Install PHP 5.6 on Debian

Debian 9 come with PHP 7. To install PHP 5.6, run

Install PHP 5.6 with

Enable SimpleXML module

Install php-fpm if required

See php […]

Read More…

curl

Making POST request from curl Using Host Header in curl curl set user agent Check if HTTP/2 enabled using curl Fetch as Google with curl curl using cookie How to use HTTP Basic authentication with cURL View Header To view response header, use

Specify Host Header Example

Using Proxy To connect to proxy […]

Read More…