Archives for Linux - Page 8
How to setup Subversion + Apache
A complete guide If you want to setup a tool to manage the subversion over web , try
Fixing OpenSSL Padding Oracle vulnerability (CVE-2016-2107)
This works well on my Ubuntu # Based on Method1: $ sudo apt-get update $sudo apt-get install –only-upgrade openssl #check if it patches successfully. $ zgrep...
Allowing Slashes in URL with Apache
I have a url like this so in normal situation, we only have 3 sub folder: countries,us,12/pensylvainia , but in Apache2 , it treats this as 4 :...
Mysql – repair/check all tables in all databases
The below command will go through all tables in all database databases to do a repair check. mysqlcheck -uroot -p -A --auto-repair
Ubuntu – Mysql – too many sleep connections
You got error ” too many connections” when connecting to database, when you check the server “show processlist” you see a lot of process having “sleep” status. Here is...
Ubuntu – mysql 5.6 – max connections 214
You try to increase your connections to 1000 by editing /etc/ (change max_connections=1000) , but when you login to your database, you can only see your mysql only accept...
Install PHP on Ubuntu 16.04
List all php packages installed: dpkg -l | grep php| awk '{print $2}' |tr "\n" " " Remove all php package: sudo aptitude purge `dpkg -l | grep php|...
Ubuntu – adding startup script
Edit file: / This file will auto run at startup. This file is a bash file, it might be run when all the services is not ready yet,...
Good article to detect a DOS attack
DDOS attack measures
Apache DOS attack – CLOSE_WAIT
Our servers recently were crashed due to a large number connections to web (apache) services, we didn’t see anything abnormal on the web. The server will crash when there...