A quick guide on how to set up a website in Docker

Hello everyone! I will try to describe, without going into complicated terms, how to quickly and easily raise a site in Docker using docker-compose. First step First, we need the site itself. Let's assume that we already have some index.php that sends "Hello world" to the browser. Let's also assume that you already have Docker... Read more...

Restoring the MySQL innoDB database from ibd and frm files

Recently, when I moved, I did not have time to pick up my databases from the server before it ended. But I managed to pick up the var directory, which, as you know, also stores MySQL databases in the /var/lib/mysql directory. Actually, in this article I will talk about my experience in restoring databases from these files. Who needs the... Read more...

How do I use Linux commands in PHP?

It will be a short article, because there is nothing much to tell. I'll probably talk about the commands on the windows servers sometime next time. Today about linux. The shell_exec feature will be used, accepting one option with a string in which the server command is located. By the way, the team does not work in a safe mode. Thanks... Read more...

Debian 8 Jessie update to Debian 9 Stretch and possible errors

At first I was very afraid to do it on a live, working server precisely because with older versions I had a sad experience, where it was easier to reinstall the system than to correct the existing errors. That's why I originally made all the necessary backups. Namely: Folder /var - there I have all the sites. Folder /etc - configs And of... Read more...

The lock file /var/lib/apt/lists/lock could not be accessed

If you get the following error when executing commands with apt-get: E: Unable to access the lock file /var/lib/apt/lists/lock - open (11: Resource is temporarily unavailable) E: Unable to block directory /var/lib/apt/lists/ To get rid of this error, just remove the lock rm /var/lib/apt/lists/lock Such an error occurs if you close... Read more...

Automation of bash action

For a while I played a game where there were some very annoying actions that needed to be repeated over and over again. I found a solution to this problem with bash. I’ll keep silent about the name of the game. This is not a call now to sculpt a cloud of bots, but just a small manual on how to automate actions using bash . Usually used on... Read more...