How to check last reboot on your Linux system

It is necessary from time to time check when you Linux server was restarted. It might be interesting for security reason, when somebody had access to your server and reboot it. Also it is useful to know how stable is your server, how often it was restarted, manually or independently due to hardware, kernel or software crash.

You the following command: last reboot
last reboot linux

Apache

I will try to be short ad possible with sharing my knowledge and opinion about Apache. Pros and cons will be the best way,

Pros:

1. Popularity. Still number one Web server around internet
2. Well documented and mature product
3. Quite easy to install, easy to configure.
4. Almost all in one solution (build in support of PHP, CGI, PERL)
5. Present in all popular Linux distributions.
6. Compatible with major management systems: Webmin, Fantastico, Cpanel, ISP config. Part of Zend server.
Cons:
1. Technologically outdated
2. Not good for the single server for many concurrent connections
3. Consumes far more RAM than new generation web servers
4. MOD PHP is very slow solution for PHP requests handling

Which Linux to choose

My first experience with linux was in 1997 when I've tried SlackWare linux 5.0. I remember how I've installed it and look like a reindeer on black screen waiting for the interface, but see nothing, only black screen and #root with blinking cursor. Well… I continued to use Windows NT 4.0 server and silently thinking about linuxzzzz guys as masochists stacked in DOS era. Until bad stuff happened. The project I appeared to be involved in requested from me to create file server for my Linguistics University library with 10 500 000 small TXT files obtained from metropolitan. Having quite fast SCSI in RAID-5 devices I couldn't realize why the performance is so slow. Another fact that this library set could contains up to 60 sub sub sub folder in depth with different languages folders names and up to 13000 thousands files per folder, by which smart gurus explained me that NTFS file system will not cope with it. 

Continue reading

How to remove all useless file from /tmp folder in Linux.

There are many files could be stored in /tmp folder which are needed by running software on your Linux system. Removing them could cause you data loss.

However there is a safe way to do this.

Use the following command:

TMPTIME=0

This will remove all files from tmp folder.

However there is more elegant solution, but possible less stable. Use TMPFS for /tmp folder. That means that everytime you reboot, you get clean /tmp folder, as all file are stored in RAM of your system.

To see how setup TMPFS follow this link: TMPFS