How to Enable mhash in PHP built from source

If you have a server that doesn’t come with any panel and all the software was compiled from sources, you have to install the missing packages by yourself, without any scripts, etc. Today we’ll install mhash support for a server that has nothing related with this library. As we’re dealing with a non-rpm system, we’ll have to install… Read More »

How to Update Major Server Software on a Directadmin Server

Sometimes you need to update your server software in order to comply with some new scripts, etc. It is quite hard to do this manually: it takes much time. Directasdmin guys have created a nice script, that allows you to update all you need at once, with a single command. Here is how to do this: Let’s go… Read More »

How to Enable Iconv for PHP on a DirectAdmin Linux Server

I haven’t found a good guide on this that’s why I decided to create my own. iconv functions are great if you’re working with text information stored using different encodings and it is essential to have it on your server. Let’s take we have Directadmin with Apache 2 support (please, read my previous articles to find out how… Read More »

How to Improve MySQL Performance with a Single Line in Config

I have found a way to prevent server overload because of MySQL. The tip seems to be really good, and I am giving the link to the original post. Here it is: Dramatically Improve MySQL Performance In order to make your heavy MySQL servers perform faster all you need is to add a line to your MySQL configuration… Read More »

How to Upgrade Apache From 1.3 to 2.0 on a Directadmin Server

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 from Directadmin Official… Read More »

Winscp: How to Keep Connection Alive

As you know there is a nice Windows software for SSH access named Winscp. It’s a FTP and SFTP client that allows to have multiple accounts and I consider it to be great for SFTP connection. I’ve tried Globalscape CuteFTP Professional, but it doesn’t work with SFTP in the way I like. Also I’ve had some problems saving… Read More »

How to Find Which Script Causes Most Apache Load

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 Apache server status.… Read More »

How to Check FTP Connection with PHP for a List Of Sites

As you might know, PHP has some built-in FTP functions. If you need to check a batch of sites for FTP connection, you can do it with a PHP script. This should be necessary if you have some sites on heavy servers to check them for response, or for anything else you might need. Let me show you… Read More »

How to Create a Gzip Archive in Linux

This post should be useful for those who haven’t used Linux for a long time. I am going to tell you how to create gzip archives in linux. That’s greatly useful when you’re creating some backups, or anything for download, especially if your Internet is quite slow. So, let’s start… Gzip archives are often used with tar files.… Read More »