Category: Ubuntu Server Configuration

  • Nginx with http/2 and usability problems

    Nginx with http/2 and usability problems

    So Nginx released the mainline version 1.9.5 and then 1.9.6 with an experimental http/2 module. For those using spdy, the upgrade in itself should be simple, by simply replacing “spdy” with “http2” in the listen directive in the server configuration. The server will not start till this change is made. Sadly, what should have been…

  • Disable SSLv3 on Nginx to prevent #POODLE vulnerability

    In the wake of POODLE vulnerability discovered in SSLv3, surprising number of people are not sure how to disable SSLv3. So here is how to do it. In your Nginx SSL configuration, find the line that shows the protocols. It will be something like this: ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; Remove the SSLv3 from it…

  • Varnish config for wordpress with ngx_pagespeed and wp-touch

    This is the Varnish config I am using currently. It is working with wp-touch, pagespeed and wordpress and (bonus) deals with the pagespeed not allowing pages to cache. No time for pretty comments and explanations, here’s the code. I will answer questions, or come back and explain the code in comments – but it is…

  • Ioncube with Nginx+php-fpm giving 502 gateway error SOLVED

    Ubuntu 13.10 seems to be having trouble with ioncube and php-fpm. My earlier guide on loading ioncube may not work for you anymore. This is really strange and I have no idea why no one seems to mention it, but if you are getting frustrated trying to install the ioncube loader on php-fpm, just ignore…

  • Meteor::Socket bind: Address already in use at Meteor/Socket.pm line 115.

    If, after installing meteor server, you get an error like Meteor::Socket bind: Address already in use at Meteor/Socket.pm line 115. when trying to start it up with ./meteord -d or /etc/init.d/meteord start, it means that you likely have another instance of meteor running. Unless you have changed ports around, you can kill the exising instance…

  • Installing Meteor Server on Ubuntu

    Meteor is a javascript server that does interesting things like live updating your live blog with far less load on your server than without it. However, setting it up is iffy, and the instructions are not idiot proof. So here are the steps distilled from my hits and misses, so that you may not have…

  • Upload Error: client intended to send too large body

    If you are using Nginx and are unable to upload files exceeding 1MB or so (most common) and get your error log shows “client intended to send too large body”, then here is the fix. Edit your Nginx configuration file (which on Debian/Ubuntu will be found at /etc/nginx/nginx.conf) and edit the setting for client_max_body_size to something…

  • Nginx-1.5.6 with ngx_pagespeed (Google Pagespeed module) and ngx_cache_purge

    Nginx-1.5.6 with ngx_pagespeed (Google Pagespeed module) and ngx_cache_purge

    So I got tired of fiddling around with repositories offering builds that compiled ngx_pagespeed with Nginx. I was getting a lot of errors, was using older versions of Nginx and was not able to make the dotdeb repository work. I was wary of compiling, because I’m a creature of habit, and I like my Nginx…

  • PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

    If you are trying to upgrade, and suddenly start getting errors like: Incompatible Archive. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature Here are some things to check. This basically means that WordPress is not able to unzip the downloaded packages to install the upgrades. Check to see available space on…

  • Free space in your WordPress install by deleting old image sizes

    If you change your theme often, your uploads folder will accumulate thumbnails of images in many sizes that you no longer use. This consumes disk space unnecessarily. I wish someone coded a plugin for this, but failing that, a handy way to do this via SSH is: find . -name *-250×250.* | xargs rm -f…