Archive for the ‘Linux’ Category

Xdebug debug with Netbeans on Linux

XDebug is a free PHP extension to debug variables of your applications. Combined with Netbeans for PHP debug features (break points, variable watching and flow execution navigation, see screenshot on the left), it allows to have a complete debug environment. What it’s really interesting is the possibility to place breakpoints in any file, even though [...]

How to recursively check syntax of PHP files

The executable of PHP supports the ‘-l’ option, that checks the syntax instead of parsing the file. Using the command ‘find’, it’s possibile to do a interesting operation: syntax checking of all the files recursively, to avoid parse errors in some script !! find ./ -type f -name \*.php -exec php -l {} \; the [...]

help of useful commands

In this post, just a link of files contains help guide ([command] –help) for the most common unix shell commands. cpfindgrepgunzipgziphelplsmvpstarwget

Monitor linux web-servers with monit

“monit is a utility for managing and monitoring processes, files, directories and devices on a Unix system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. E.g. monit can start a process if it does not run, restart a process if it does not respond and stop a process [...]