December 2015
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  

Categories

December 2015
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  

xmlrpc.php attack on WordPress – High CPU usage

xmlrpc.php attack on WordPress – High CPU usage

Just noticed that incoming emails were being delayed by about 30 minutes, we host our emails on Google Apps, so that couldn’t have been the issue. Next step was to investigate the server where the DNS of our domain was being hosted. Turns out the server was […]

Disable / Hide PHP Notices & Warnings – Server wide

Disable / Hide PHP Notices & Warnings – Server wide

A client’s website was continuously getting PHP Notices regarding PHP session clean up issues. The solution turned out to be more complicated than initially thought, sessions need to be moved into RAM.

A quick solution for this is to disable PHP from displaying Notices

error_reporting […]

ERROR: Installation can not proceed. Please fix your /etc/hosts file – Zimbra

This error took me an hour to solve ERROR: Installation can not proceed. Please fix your /etc/hosts file You need to make sure the hostname is on the first line and should match the hostname of the server. All the documentation I see mentions something like mail.domain.com. This leads to confusion because usually your server […]

Native memory allocation (mmap) failed to map XX bytes for committing reserved memory – JDK 1.8 – CentOS 6.7

While trying to check whether java was working I was repeatedly getting the following error: java -version

# # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory. # Possible reasons: # The system is out of physical RAM […]

ifconfig: command not found – CentOS 7 minimal

ifconfig: command not found – CentOS 7 minimal

 

-bash: ifconfig: command not found ifconfig is not longer bundled in the minimal image of CentOS 7. You could just use the alternative ip addr which will give you the same info ifconfig gives, but if you’re set in your ways like I am, you will […]

Install Memcached – CentOS 7

Install Memcached – CentOS 7

yum install memcached

Edit the config located at /etc/sysconfig/memcached

add neww

PORT=”11211″ USER=”memcached” MAXCONN=”1024″ CACHESIZE=”640″ OPTIONS=”-l 127.0.0.1″

Make sure you set the OPTIONS section as above, also increase the CACHESIZE according to your needs

Start it up: systemctl start memcached

Add it to startup:

systemctl enable memcached Add memcache to […]

RedHat Linux 7 build yum source server

RedHat Linux 7 build yum source server

1. Create a new directory

mkdir -p /var/www/rhel7.1/x86_64/{isos,dvd}/

2. Upload RedHat installation CD image, path after uploading the

/var/www/rhel7.1/x86_64/isos/rhel-server-7.1-x86_64-dvd.iso

3. Set the boot automatically mount the CD image to /var/www/rhel7.1/x86_64/dvd echo “/var/www/rhel7.1/x86_64/isos/rhel-server-7.1-x86_64-dvd.iso /var/www/rhel7.1/x86_64/dvd iso9660 loop,ro 0 0” >> /etc/fstab

mount -a 4. build http server (nginx), is used […]

Nginx self-signed https and reverse proxy

Nginx self-signed https and reverse proxy

The company’s wiki server and docker private registry in the company’s desktop cloud, since public IP resource constraints, these servers can not be coupled with each public network IP, it can only be accessed through a public IP, so you need to use Nginx Be a reverse proxy to […]

powershell commands

PowerShell is the command line included with Windows. It is a very handy tool for doing simple tasks without the GUI. In this guide, Getting a Process Rather than using the Task Manager or a similar tool, you can use PowerShell to retrieve information about a specific process and kill it, if needed. This will […]

Apache’s Mesos and Google’s Kubernetes

Kubernetes is an open source project that brings ‘Google style’ cluster management capabilities to the world of virtual machines, or ‘on the metal’ scenarios. It works very well with modern operating system environments (like CoreOS or Red Hat Atomic) that offer up lightweight computing ‘nodes’ that are managed for you. It is written in Golang […]