PHP Unable to load library module.so

If you see in the Apache error_log log-file an error like “Unable to load dynamic library /usr/lib/php/modules/module.so”, you probably have CentOS 6.4 which has a configuration issue in the mcrypt configuration file. Continue reading

Posted in Linux Administration, PHP | Tagged , | Comments Off on PHP Unable to load library module.so

Set up apache and the log path with SELinux

Depending on your backup strategy you might run into troubles of backup the entire /etc directory. Running a default installed Apache on CentOS will have the log directory of Apache linked from within the /etc/httpd/ directory. If you backup solution would backup those as well, the backups would contain the logs and get huge. Continue reading

Posted in Linux Administration, Security | Tagged , , | Comments Off on Set up apache and the log path with SELinux

Find the man page that contains a certain string

Most of the time you might know what program you need and you open the related man page to find the programs parameters. But what if you do not know which man page contains the information you are looking for?
Continue reading

Posted in Linux Administration | Tagged | Comments Off on Find the man page that contains a certain string

Restrict SSH login using SSH keys to a particular IP address

Because most passwords are quite short so you can remember them as well as it is annoying to type the password all the time, You might have already considered creating SSH-keys and configured the SSH passwordless login with SSH-key for your server. But how to secure the access with SSH-key? Continue reading

Posted in Linux Administration, Security | Tagged , , , | Comments Off on Restrict SSH login using SSH keys to a particular IP address

Secure SSH server access

With a server running, SSH is one of the services nearly instantly gets checked out. Only after a couple of hours of going live with your server, you might already notice someone trying to login with passwords from a dictionary. There are some things you can do to reduce those hacking attempts to your SSH server. Continue reading

Posted in Linux Administration, Security | Tagged , , | Comments Off on Secure SSH server access

Change SSH port in CentOS with SELinux

Since version 4 of CentOS, SELinux is providing an additional layer of security to the Linux distribution. As of SELinux in combination with sshd, changing the port or even listening on 2 ports is not as easy as just changing the sshd configuration file. Continue reading

Posted in Linux Administration, Security | Tagged , , | Comments Off on Change SSH port in CentOS with SELinux

Giveaway: Dash – Offline access to documentation

As developer you dig through documentation on a daily basis and most of this documentation is only available online these days, and even if you get them to download the search functionality is gone. But what if you want to develop while you are, for example, in a plane or a train without internet connection? Continue reading

Posted in MacOSX, Review | Tagged , , , , , | 1 Comment

yum – install package that contains a specific file

When i realised that the program to manage the SELinux rules is called “semanage” i tried to find a package of the same name in the yum repositories. But i could not find it. So i had to find it inside the yum repository. I am happy that yum provides an easy way to find a file that is provided within a package. Continue reading

Posted in Linux Administration, Security | Tagged , , , | Comments Off on yum – install package that contains a specific file

Setup Amazon AWS EC2 instance with CentOS

The Amazon AWS provide a so called Free Tier. This is a free subscription for all the AWS services for one year. It includes EC2 instance and EBS Volumes which is nice to test the AWS service. See details about the included services and there limitations at AWS Free Usage Tier. Continue reading

Posted in Linux Administration | Tagged , , , , , | Comments Off on Setup Amazon AWS EC2 instance with CentOS

Linux Partition layout with RAID1 and LVM

While installing CentOS you have to make a very important decision. The partition layout needs to be defined. The correct layout requires a understanding what the partitions are used for. As well, this step of the setup requires your decision if you plan to setup a RAID for your system partitions. Continue reading

Posted in Linux Administration | Tagged , , , | Comments Off on Linux Partition layout with RAID1 and LVM