Saturday, November 26, 2016

Ubuntu - ApacheBench

$ sudo apt install apache2-utils
$ ab -c 50 -n 5000

Fix Apache Error: Could not reliably determine the server’s fully qualified domain name

$ sudo systemctl status apache2
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
   Active: inactive (dead)
     Docs: man:systemd-sysv-generator(8)

Nov 26 00:48:49 kripx systemd[1]: Stopped LSB: Apache2 web server.
Nov 26 00:49:04 kripx systemd[1]: Starting LSB: Apache2 web server...
Nov 26 00:49:04 kripx apache2[8738]:  * Starting Apache httpd web server apache2
Nov 26 00:49:04 kripx apache2[8738]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using Set the ' ServerName' directive globally to suppres

Just open apache2.conf via your terminal
$ sudo nano /etc/apache2/apache2.conf

Put ServerName localhost at end of the file, then restart you Apache service.

Thursday, November 24, 2016

My programmer setup (UBUNTU)

This is just a public raw post.. Just as note for myself about my so called "dev-machine" setup. I am Fedora lovers but most of my VPS are running on Ubuntu and Centos. My computer at office are running Ubuntu LTS.
$ sudo apt-get install \
vim \
vim-gnome \
git-cola \
meld \

I use Git for tracking my source code changes for a few projects. I don’t work in it that much, so it is nice to have a GUI for certain things. The git-cola package has done that nicely in the past. Installing it also installs the actual git application.
$ sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
$ sudo apt update
$ sudo apt install ubuntu-make
$ sudo umake ide phpstorm


Database - 15 Ways to Kill Your MySQL Application

Tuesday, November 22, 2016

Linux - Permission /var/www/html

Problem :
fatal: could not create work tree dir '/var/www/html/secret': Permission denied

Solution :
$ sudo usermod -a -G www-data <username> 
$ sudo chown -R www-data:www-data /var/www
$ sudo chmod -R g+rwX /var/www