How to Restore a MySQL Database with Linux Shell

Today I will show a simple command that will allow you to restore a database from a previously made sql file. No matter, how the backup was done, if it has sql commands, you will restore it in the fastest possible way. If your database backup file exceeds 10 megabytes, it’ll be very hard to restore it using… Read More »

How to Install Ming Support for PHP in Linux

When you need to work with Flash in PHP, you have to install Ming. Ming is an open source library that allows you to deal with flash from command line. We will use it for our PHP scripts. First of all, we need to download the library from Sourceforge. Link that you can find on php.net leads to… Read More »

Two Ways to Exclude yum Updates

How often do you update your Linux server software? If you have chosen yum to do this for you, you should have some packages that aren’t really necessary for update; they can even cause yum errors. In order to exclude some packages you should use of two methods proposed in this post. The first one is to add… Read More »

How to Delete a Big Number of Files in a Folder – Linux Command

If you’re using temporary files you should notice that after some time it is hard to delete them as their number is growing. If you have many files and try to delete them with a usual command rm -f you should receive something like this: [root@server html]# rm -f * -bash: /bin/rm: Argument list too long What to… Read More »

Setting Custom Error Pages for All User Domains with .htaccess on a Directadmin Server

Sometimes it is useful to use custom error pages on all user domains  (In case of maintenance, new software installation, etc). It’s a pity you are unable to do it for all user domains in Directadmin, just for a single one. But htaccess comes to help us this time. Go to /home/admin/domains (certainly, replace admin with your username)… Read More »