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 »
As you might already know, most recent version of Apache is 2.4.9 (for today). If you want to upgrade to it, you should perform too many changes in your server software, since it has references to many other packages. If you need a stable server – you should upgrade it to legacy 2.2.27 version. You can download source… Read More »
Nowadays everyone can afford a VPS – its prices start from $5 per month. Today I will describe the process of setting a PPTP VPN server, that can be used to secure your own Internet connection. If you’re paying for a VPS or even for a server – why paying more for a separate VPN access if you… Read More »
Sometimes you need to change column order in a table. If you don’t have access to latest phpmyadmin version (4.0 and above), you don’t have any graphic solution to do this and you’ll have to use an SQL query. First of all, you need to identify the type of field you want to move. It should look like… Read More »
If you need to debug a process in a linux environment, the simplest yet very effective solution should be strace. It can be easily installed with “yum install strace” or “apt-get install strace” depending on the type of Linux you’re on. Here are some usage samples. First of all, if you don’t have a shortcut to strace, you… Read More »