Tag Archives | PHP

Linux Ninja Tux

How to : strace php process via apache

This little adventure started today when a customer was complaining of having a slow website (8 seconds plus to serve the home page without any additional resources) for the past 10 days or so. No file modification or change dates matched this timeframe. Also, a scan using clam and another proprietary scanner showed up nothing, […]

hosting

DSO to SuPHP permissions problems and how to fix them

SuPHP is a CGI based handler for PHP, usually run using the suEXEC apache feature. This means that your PHP scripts are run using your linux user account’s privileges, but everything else is usually accessed using Apache’s anonymous account – usually called nobody Running PHP as DSO Apache module on the other hand runs both […]

shortcodes

WordPress : Keep excerpt shortcode contents

Have you found that WordPress strips excerpt shortcodes in your blog posts? The excerpt is a special field associated with each WordPress post intended to provide a teaser. However, managing a separate excerpt for every blog post can become tedious, so WordPress offers a way of providing an excerpt on the fly by taking the […]