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.
Linuxoid Channel
Sunday, February 4, 2018
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.
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.
Labels:
adb,
android,
android sdk,
download mode,
recovery mode
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).
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:
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.
Saturday, January 7, 2017
How to install google play store on android emulator (Android 7.1.1, API 25)
Recently I have been doing some stuff on android emulators and discovered that there is no google play store over there. Then I found some articles on how to install google play store on emulator (for example this website: www.flinkd.org) But most of the existing tutorials were for android 5, API 21 and when I tried to do them, links to gapps archives were broken and the archive format was slightly different than it is today on opengapps.org. So today I will give you new updated tutorial on how to install google play store on android emulator.
Let's start with a brief overview of what you might need and what are the possible ways of getting google play store on your android emulator.
Let's start with a brief overview of what you might need and what are the possible ways of getting google play store on your android emulator.
Labels:
android,
android emulator,
android sdk,
emulator,
Googe Play Store,
Google
Thursday, January 5, 2017
Linux - How to copy all files including hidden with cp command
Sometimes we need to copy an entire folder, including all its content from one location to another. For that purposes we can use cp command. But most of users (including me) experience problems with it. If you try to copy files using star wildcard "*", it wont copy hidden files and folders.
For example:
For example:
mkdir /tmp/dir1 cp -r /home/username/* /tmp/dir1This method does not copy hidden files and folders, such as '/home/username/.bashrc'.
Wednesday, January 4, 2017
How to add swap file in Debian or Ubuntu
Swap is used to allow operating system run in fail-over mode, meaning that if it's running out of RAM, it will start swapping some memory pages from RAM into the swap file, on disk. The best way to create swap - is to mount it into partition. But if you don't have a swap partition, or don't have time to create it, you can also add swap using a regular file. Below I will show how to add swap file in Debian based Linux distros.
Subscribe to:
Posts (Atom)