21 Oct
Posted by: admin in: Apache Performance, Directadmin Tricks
When you get your new Directadmin server, it comes with default settings like Apache 1.3 and PHP4. I have already written how to update PHP version to PHP5. Today I will post a solution that can be used to upgrade your apache installation on a Directadmin server. The idea is not mine, it is taken [...]
It is often hard to tell which process causes most Apache load. top and ps -aux commands don’t give us anything usable; they only allow us to see that Apache causes server load. We need to identify which scripts are not so good for server load and fix them. The first advice is to view [...]
17 Sep
Posted by: admin in: Apache Performance, Linux Tricks
I do often monitor server apache status as most often reason of server outages is Apache overload. Some web hosting panels are sending notifications when your server is down; some web services like Alertra.com provide you with different notification options and one of my hosters has his internal monitoring service. But what to do if [...]
06 Sep
Posted by: admin in: Apache Performance, PHP Solutions, Regexps
It is often necessary to extract text from a variable that contains HTML or XML code. I’ve created a simple regular expression that will help you to extract all text between certain tags into an array. It is a PHP solution, though regular expression is compatible with other programming languages. preg_match_all(“/<tag>(.*?)<\/tag>/”, $source, $results); This construsion [...]