Scanning for malware with Linux Malware Detect (LMD)

Linux Malware Detect (LMD), also known as Maldet, is a malware scanner for Linux released under the GNU GPLv2 license. It is particularly effective for the detection of php backdoors, darkmailers and many other malicious files that can be uploaded on a compromised website. It will help you do detect infected websites and clean the infection, however securing the compromised user or website is still necessary to avoid re-infection. Continue reading “Scanning for malware with Linux Malware Detect (LMD)”

HowTo: Save A File In Vim / Vi Without Root Permission

This happens lot of times. I login as a normal user and start to edit httpd.conf or lighttpd.conf or named.conf in vim / vi text editor. However, I’m not able to save changes due to permission issue (all config files are owned by root). How do I save file without creating a temporary file (/tmp/httpd.conf) and then move the same (mv /tmp/httpd.conf /etc/httpd) as root using vim / vi itself? Continue reading “HowTo: Save A File In Vim / Vi Without Root Permission”

Otvoreno protestno pismo zbog pravne i političke torture

Komunalni inspektor je, nakon odluka Opštinskog veća i Skupštine opštine, doneo zabranu Aleksandru Gvozdenu na upotrebu imena opštine Aleksinac u nazivu sajta i internaconalnom domenu.

Nisam imao nameru da se oglašavam ovim povodom. Pre svega, jer ne želim da se bavim glupostima. Možda bi neko rekao “imam pametnija posla”, ali ovde se stvarno radilo o glupostima. Takođe, ne verujem da su sve ostale probleme rešili, pa je ovo sada najveći. Možda bih i oglasio nakon 2 godine dopisom SO, jer je njima toliko i trebalo da mi odgovore na zahtev.

Međutim, nakon Rešenja komunalnog ispektora, u kome je rok izvršenja “Odmah” (?!) i u kome preti izvršenjem o mom trošku, morao sam da odreagujem. Continue reading “Otvoreno protestno pismo zbog pravne i političke torture”

JS validacija, jednostavan način

Postoje 2 načina za validaciju formi na osnovu mesta izvršenja validacije. Jedna je obavezna server-side validacija (php, asp, java), a druga je na klijentskoj strani i za to se uglavnom koristi Java Script. Kažem uglavnom, jer moderni browser-i imaju ugrađene validatore. Continue reading “JS validacija, jednostavan način”

Install PHP 5.4 as standalone

PHP 5.4 is not packaged on most Linux distributions so it may be easiest to install it from source. On Debian-based Linux systems, you can use the following commands to install PHP 5.4 in such a way that it won’t effect any other versions of PHP that you may have installed: Continue reading “Install PHP 5.4 as standalone”

How To Install nginx on Ubuntu / Virtualmin

Nginx is a lightweight webserver that supports most of the functionality of Apache, but is faster and uses less memory. It is suited to websites that have a large amount of static content, or virtual machines with limited memory. For more information, see http://wiki.nginx.org/Main

Continue reading “How To Install nginx on Ubuntu / Virtualmin”