Sunday, February 4, 2018

How to install wordpress with apache, mod_proxy_fcgi and php-fpm on Ubuntu 16.04

Hi everyone,

In one of the previous posts we've discussed how to setup basic website to work with apache and php-fpm. And today I'd like to continue that topic and install wordpress to work with apache and php-fpm. Once you've got that basic website to work with php-fpm, there are not many differences from 'non-php-fpm' wordpress setup. Anyway, I am still going to describe it here in details.

Saturday, February 3, 2018

Reboot android into recovery/download mode using adb (without buttons)

Hi guys,

Sometimes it's useful to reboot your android phone into recovery/download mode. For example, if you want to do a factory reset or root your device. One of the ways of rebooting into such mode is by using special combination of buttons. But if you don't know such combination, there is another way of doing that - by using usb cable and special program called 'adb' (android debug bridge). Below we will discuss this second way. Also, I will be doing everything on Linux, because this is what my website about. But you can also do it on Windows or Mac OS.

Friday, February 2, 2018

How to setup apache event mpm, php-fpm and mod_proxy_fcgi

In this article I will show you how to install Apache event mpm, php-fpm and mod_proxy_fcgi.

Also this article supposes that you have Ubuntu 16.04 and apache 2.4.18. Of course you can also do similar steps on other versions of Ubuntu, but keep in mind that you need to have Apache version of at least 2.4.10. For example, Ubuntu 14.04 has Apache 2.4.7 and some features that I use in this article do not work there (SetHandler with proxy:fcgi).

Wednesday, January 10, 2018

How to redirect from non-www to www in Apache

In this post I will show you how to redirect from one site to another in apache. Actually, it's pretty easy to do. But let's learn it by example.

Two sites: site.com and www.site.com.

Apache config looks like this /etc/apache2/sites-available/site.conf:
<VirtualHost *:80>
  ServerName site.com
  DocumentRoot /var/www/site
</VirtualHost>
So both sites can be loaded independently, but there is no redirect.