PHP

Compile PHP 5.6 with pthreads and ZTS Ubuntu/Debian

Compile PHP with pthreads and ZTS on Ubuntu or Debian …and all most common extensions including multi-threading, PDO and mongo extension. 1. Setup your installation path first In the first step, we download the latest PHP sourcecode and download the sourcecode of pthreads and the mongo extension. I know it can be a struggle to…

Unix: Delete files starting with a dash

Sometimes you accidently create files like -c: -rw-r–r– 1 root root 329 Dec 11 08:59 -c When you try to view, edit or delete them, the dash confuses the actual program:

Solution Use the — operator: vi — -c The — switch will tell the shell there are no more arguments for this execution.…

cowsay: command not found

Getting the error message instead a cow saying something to you in ASCII art ? -bash: cowsay: command not found To install cowsay or cowthink, simply do apt-get install cowsay cowthink. Debian installs those tools into /usr/games/cowsay, but /usr/games is not in the PATH environment variable of root user by default, making bash print the…

Solution to “set failed… device or resource busy”

Problem: Cannot change wlan network (device interface) settings (iwconfig) on the RaspberryPi or your Linux Computer / Notebook, because it yields one of these lock errors due to busy device or resource: set failed on device wlan0; set failed on device mon0; failed: Device or resource busy wlan0 device or resource busy set ESSID: set…

Changing NTFS to ext4 with Debian to speedup Samba

I am using a RaspberryPi with an external HDD attached as my local fileserver. I found out that the ntfs.mount / ntfs-3g drivers are really slow and use 80-90% of the CPU on uploading – leading to a maximum speed of 2 MB/s. As the ext4 drivers run in the kernel and usually perform better…