If you ever made backups from command line, you’d probably wanted to do this on a regular basis, including date and time of your backup (e.g. to keep backups for a week or so). Here is a simple command, that will allow you to do this: You can specify your own format by adding or removing date parameters.… Read More »
It’s a strange thing that such a popular software is not yet included into Directadmin custombuild, but you are always welcome to install it by yourself. Let me start this brief tutorial about git installation. If you need a quick solution, you can use yum: yum install git But this will allow you to install version 1.7, that… Read More »
Sometimes when you need to install something that interacts with libz, you might get the following message (I have faced it while installing git): Solution is simple – most probably you already have a library with right version, just the symbolic link to it is wrong. First of all, find libz.so version you are using: You should see… Read More »
Sometimes when you need to list a folder via FTP with huge number of files, you might see the following message: So you will only get first 10000 files listed. If you need more, you need to change a setting in your init.d section. This solution is provided for PureFTPd FTP server, where this parameter can be set… Read More »
Sometimes you need to avoid using cURL for getting external web content for any reasons. You’re lucky that PHP has some built-in functions that allow you to get data from the Web without cURL. But if you are using default values, there is no option to set the timeout for a operation and it’s sometimes annoying. In order… Read More »
Let’s say you want to rename all files you have in a folder from .html to .php. There is a simple way to do this: rename .html .php *.html Just one line – no need for creating any shell scripts with loops.
If you are getting this error on a fresh server – most probably your nginx configuration is not tuned. In order to avoid this error, we’ll add a line to config. So open /etc/nginx/nginx.conf and add this line under http section You can set up more than 16 Mb if you need, but generally it is enough for… Read More »
A brief explanation what to do if you get updatedb: command not found error.
Sometimes you might need to open Microsoft project files without having the software installed. Especially when you’re using Linux :) Here is the link to free online mpp viewer, that offers almost same functionality as viewer from Microsoft. Just upload the file you would like to view and enjoy.
If you want to launch Selenium on a Linux server, you need to have Java support installed. If your Java version is lower than 1.6, most probably you will get the following error while trying to launch Selenium: [root@ns1 selenium]# java -jar /usr/local/bin/selenium-server-standalone-2.41.0.jar -role hub May 27, 2014 2:06:12 p.m. org.openqa.grid.selenium.GridLauncher main INFO: Launching a selenium grid server… Read More »