Tags
, , ,

OpenVPN Install (Ubuntu 20.04)

openvpn-install

This script will let you set up your own VPN server in no more than a minute, even if you haven’t used OpenVPN before. It has been designed to be as unobtrusive and universal as possible.

GitHub: openvpn-install

I tested it on Ubuntu 20.04, and it works like a charm.

Tags
, ,

Adding Block Storage to an Existing Cloud at Linode

This site is hosted at Linode’s smallest package. Besides this blog, I have some other domains and small WordPress-based sites here. Most of them are not busy site. So, $5/mo is just gret. But, there is a small problem: storage.

Yesterday, I almost utilised 95% of the 25GB of storage limit. I was thinking of upgrading the to the higher specs. $10/mo is still a good deal. But, I only need the storage at this moment. Paying $10/mo will give me additional 25GB of storage.

I already knew that Linode also provides block storage, and I never looked up for this addons. So, I gave it try and tried to prove that the how-to works as written. So, from the panel, I chose to add 20GB of storage and follow the instruction in the input fields.

It took only less than a minute I think to create the disk storage.

Once the disk created, I only need to run some commands as instructed in the configuration page. It was that simple.

After that, I moved some of my files to the new partition, and changed some configurations. Also, I moved MySQL storage to this partition, because it utilises the most. the process also pretty straightforward.

And, I only need to pay extra $2/mo for 20GB additional storage.

Nice!

Tags
, ,

nginx error: client intended to send too large body

After moving this site to DigitalOcean‘s cloud environment, I found a problem when uploading a file from my blog posting interface. Looking up from the error log, it says "client intended to send too large body: 1122400 bytes". I wanted to upload a file larger than 1 MB. I’m using nginx for the web server, and the solution is pretty simple.

Edit /etc/nginx/nginx.conf configuration file, and add client_max_body_size 20M; between http { }. Save the config file and start the nginx. Problem solved. If you need higher value, just change the 20 MB to something higher.

Tags
,

.htaccess Snippets

.htaccess Snippets — A collection of useful .htaccess snippets.

Tags
, , , ,

Photon: WordPress.com's Content Delivery Network

Dealing with side loads for heavy-traffic website sometime can be painful. But, of course there are some common practice to deal with this kind of situation. For example, you can take advantage of cache system, offload to other service to reduce server load/bandwidth, or using CDN (Content Delivery Network).
For WordPress-powered sites, you can take advantage from its Jetpack. This free plugin offered lots of handy features to help you work with your WordPress installation. One of them is a featured called Photon.

Give your site a boost by loading images in posts from the WordPress.com content delivery network. We cache your images and serve them from our super-fast network, reducing the burden on your Web host with the click of a button.

That’s right. You should see some big hints there: content delivery network, cache, super-fast network. To activate this feature, just hit the “Activate” button, and you’re set. All your uploaded media files will be served using WordPress.com infrastructure. After having this feature activated, all image URLs in your posts will be modified. For example:

  • Original URL: http://domain.com/dotsios300.png
  • New URL: http://i2.wp.com/domain.com/dotsios300.png

If you are interested, here is an example of the image header served from WordPress.com network.

HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: public, max-age=63115200
Content-Type: image/png
Date: Sun, 06 Oct 2013 17:06:28 GMT
Expires: Wed, 07 Oct 2015 05:06:26 GMT
Last-Modified: Sun, 06 Oct 2013 17:05:27 GMT
Server: ECS (sin/47C6)
X-Bytes-Saved: 8597
X-Cache: HIT
X-Content-Type-Options: nosniff
X-nc: HIT iad 90
Content-Length: 46456
Tags
, , , , , , ,

vBulletin Performance Optimization

I have been dealing with vBulletin for almost a year now. I manage a vBulletin installation for my friend at Fashionese Daily forum. Anyway, Fashionese Daily forum have used other forum/discusion engines like punBB and MyBB. It’s now using vBulletin 3.7.3 Patch Level 1.
It’s a pretty busy-traffic forum anyway. In average, there are 1,000 new posts everyday. According to forum stats, there are 500 – 600 online users during the prime ours (registered and guests). From the very beginning, I try to maintain its performance so that the forum is available.
Based on many articles about vBulletin optimization, here are what I did:

Tags
, , , ,

Get Information About Web Hosting Before You Buy One

I have been blogging for about 7 years. During that period, I experienced different types of situation — especially about dealing with many technical stuff. Let’s take the technical aspects of blogs. In my early years, I tried many blog services. And, when I wanted to move forward, I decided to get my first domain and hosting account. But, sometime I was unlucky because I got a bad service — bad uptime, not-responsive support staff, expensive service, etc.
These days, there are many hosting providers out there. Each of them offers many great features, discounts, and the price — sometimes — does not make any sense. The whole idea is that we — as customer — get many options of hosting providers. If we want to buy domain or hosting account, the process is very easy. The difficult part is getting the best service. Sometime, it’s easy. But, it can be tricky at the same time. Reading as many information about webhosting might be the best practice we can do. Just to make sure that we will make the best decision. For example, get the difference between Linux web hosting and windows web hosting.
There are many resources about web hosting articles, one of them is Web Hosting Articles & Tutorials. This site is provided by Web Hosting Rating. There are many useful articles, and those give us answers on common situation in choosing web hosting service. For example, we have a limited budget. A cheap web hosting account might be our solution. There is an article about finding reliable cheap web hosting. The article gives good information to consider:

When looking for a good web host, see if they provide 24-hour support and then proceed onto checking the response rate by sending a ticket with a question and seeing how long it takes for them to reply. The reason for this is simple – you want to get help as quickly as possible if you encounter any problems, or if the host has any problems.

If we question ourselves whether cheap web hosting is good or not, there is another information about this. Sometime, cheap web hosting can be good. Again, choosing a web hosting can be very tricky. It’s always good to spend few hours reading references. The website I mentioned offers many useful articles and it’s not only about choosing cheap or expensive web hosting. It also has articles about cPanel tutorials, domain names, etc. What makes it better is that it is using blog-like design. As bloggers — or even non-bloggers — this should be good because the articles are well-organized.