WordPress configuration for connecting to a remote database


I will describe here step by step configuration of WordPress in configuration of two servers. These can be physical servers, or installed on virtual machines, either using VirtualBox or HyperV.

Usually we encounter these configurations above, of course there are also other solutions, such as in the case of the hosting service provider, which has a database elsewhere, and in another location keeps a directory on the files of the website, but I will deal with the classic case, when we distinguish between two different servers.

Why such a solution? For a simple reason – security. There is no external access to the database server, i.e. from the Internet. It is in favour of the so-called NAT.

I will describe the solution that I implemented at home on two laptops, which serve as servers at home for my own learning purposes.

Have you reached this place? Great! Let’s get started.

Continue reading “WordPress configuration for connecting to a remote database”

SELinux security policy

I’m not an SELinux expert, but when I read many tutorials on the subject and saw dozens of tips that all said in one voice: turn off SELinux, because it causes problems, I thought it was time to challenge this thesis and prove that SELinux could be easy to use.

In a situation where a service does not run because of problems with permissions, creating a process ID (PID) file, you should update SELinux’s policy on enforcing the rules against the application, which by default is not included in SELinux’s Type Enforcement (TE) policies.

Continue reading “SELinux security policy”

Welcome to the Sysadmin blog

This blog will be devoted to issues related to the administration of Linux servers. I focused on popular distributions such as Debian 9.8.0, CentOS 7.6, Fedora 29. Of course I won’t stop there, because I have a RHEL (Red Hat Enterprise Linux) 7.7 instance on Virtual Box.

I will describe the solution that I implemented at home on three laptops that serve as servers at home for my own learning purposes. In addition, I bought myself a VPS, on which I configured the environment to host this very site. I also intend to buy another VPS in the future and move the installation of mail server and Samba on one machine. Ultimately, I want to turn off two other laptops (mail server and Samba), hide them in a drawer and have everything in the network.