Category Archives: Linux

server_names_hash, you should increase server_names_hash_bucket_size

I was trying to start fresh installation of nginx, but nginx wasn’t staring….

We must always read the logs!

root@pornrack:/etc/nginx/sites-enabled# tail -f /var/log/nginx/error.log

This was I was getting on it…

2013/11/17 10:56:34 [emerg] 12362#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32

Easy! I searched for server_names_hash_bucket_size on  /etc/nginx/nginx.conf and uncommented that line…

 

nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

While I was trying to start nginx after some reconfigurations… i was getting

* Starting nginx nginx
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

Don’t know HOW/WHY I had apache running on 80…
I had to stop it and later uninstall it…

sudo apachectl stop

Remove nginx – the ultimate guide

I had some problems with nginx, ajenti and ajenti-v…

I’v removed nginx the easy way, with apt-get autoremove nginx etc, but when I tried to start the service after install it I was getting awk: cannot open /etc/nginx/nginx.conf and nginx didn’t started etc….

This is how I removed it!

sudo apt-get autoremove nginx
sudo apt-get --purge remove nginx
sudo apt-get autoremove -f && sudo apt-get autoclean -f
sudo find / | grep nginx | sudo xargs rm -rf

 

HHVM by Facebook

HHVM is a new open-source virtual machine designed for executing programs written in PHP. HHVM uses a just-in-time compilation approach to achieve superior performance while maintaining the flexibility and ease of use that PHP developers are accustomed to (dynamic features like eval(), rapid run-edit-debug cycle, etc).

HHVM is used by Facebook to serve billions of web requests per day. To date, HHVM has realized over a 9x increase in web request throughput and over a 5x reduction in memory consumption for Facebook compared with the Zend PHP 5.2 engine + APC.

 

http://www.hhvm.com/

https://github.com/facebook/hhvm

https://www.facebook.com/hphp