Skip to main content

Installing php-fpm and nginx on Debian 8

From the stable and fast server depends on the fate of the site. Its slow work and frequent drops can scare away both visitors and search engines. The latter will also lower the rating of the braking site in the search results and it will not be in the top 10, but, say, in the top 100 for all queries.

Using a bunch of nginx and php-fpm for site maintenance allows you to increase the speed of their work, as well as the stability of the system as a whole. In addition, by refusing to use apache, we simplify the system somewhat and even protect it. After all, if there is no apache, then the attacker will not be able to use, for example, the .htaccess file for his own purposes.

The nginx + php-fpm bundle is quite easy to configure and it is supported by many popular CMS: WordPress, MODX, DLE, various frameworks. All this can work without bulky apache.

When installing a web server, do not do without creating users. Ideally, a separate user should be created for each site. So we can protect other sites if one of the users is hacked. The examples in this article are written taking into account the fact that you created users according to the instructions .

(Further…)

Minimize windows windows like windows

Surely everyone knows that in Windows you can minimize all windows by pressing the Win + D keys. In Linux, to minimize all windows, you need to press ctrl + alt + d. This is not very convenient, especially for those who are still switching from Windows to Linux.

In order to minimize windows in linux by pressing the keys win + d, go to the window settings, select the “Keyboard” tab, find the “Show Desktop” item, double-click on this item and click the Win + D combination. All is ready. Now the windows will be minimized by pressing this shortcut.

Сворачивание окон в линуксе нажатием Win+D



Adding application launch buttons to xfce

XFCE is a very lightweight desktop graphical environment for Linux distributions. It has very minimal hardware requirements for the computer and can work normally with old hardware.

When I decided to try xfce on my laptop, I needed to add icons to the panel to launch applications. In Windows 7, for example, adding an icon to the panel is easy: just select the “pin on the taskbar” item from the context menu in the program list.

(Further…)

Restricting access to the admin site by ip using nginx

If you have a static ip, and you administer the site exclusively from this address, you can restrict access to the admin panel of the site by ip. As a rule, site control panels are located in a folder (occasionally on a subdomain :) For example, WordPress has / wp-admin /. So, you need to restrict access only to this directory. In this case, the configuration code will look like this:

(Further…)