How to tar/untar, compress/uncompress files/folders using php script

  • Post category:SSH
  • Post comments:0 Comments

How to tar/untar, compress/uncompress files/folders using php script
How to tar/untar, compress/uncompress files/folders using php script

Uploading and downloading files is a chore every webmaster has to cope with on daily basis, but if you do this by compressing the files, uploading the tar or zipped and uncompressing them on server, life becomes a little easier.

Similarly taking backup on a server becomes easier if you just compress the files/folder on server and download the tar.gz file. Usually these commands are run over SSH, but if you do not have SSH access, you can place the commands in php script too.
(more…)

Continue ReadingHow to tar/untar, compress/uncompress files/folders using php script

How do I manually kill a process on my Linux server?

  • Post category:SSH
  • Post comments:0 Comments

Log into your server as the root user and find the process PID that you wish to kill. You can do that by issuing the ps command with the aux options. See example below.

ps aux

This will display a process list and each visible process should have a line similar to the one below.

username 31262 0.0 0.0 12168 1752 ? S 00:25 0:00 somecommand

(more…)

Continue ReadingHow do I manually kill a process on my Linux server?