FPM, FastCGI Process Manager is a PHP FastCGI implementation. Using php-fpm you can have a website running as its own user instead of a common user like Apache or www-data. In this post, we will go through the process of installing and configuring php-fpm with Nginx on CentOS 6.
php-fpm package is available in the official CentOS repository. There is no need to enable third party repositories in order to use php-fpm.
nginx package is available in Fedora EPEL repository.
Enable Fedora EPEL.
In this tutorial, I will provide step by step process to setup MySQL replication. We will create one master and one slave. We will use two CentOS 6 servers - one for master and the other for slave. This following steps have been tested on two virtual machines.
Our master server will have IP address 192.168.122.10.
Our slave server will have IP address 192.168.122.12.
You might want to run SELinux in permissive mode.
Perform these steps on the master:
Install MySQL server.
yum install mysql-server -y
Redmine is a software project management tool which has Wiki, issue tracer, source code browser and other cool features built in. If you want to install Redmine with MySQL and Nginx on CentOS 6, follow these steps.
I always use EPEL repository with CentOS. EPEL provides additional RPM packages. We can use Nginx and some Ruby gem packages from EPEL.
Enable EPEL:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
Install required packages:
yum install nginx mysql-server ruby rubygem-rack rubygem-rake ruby-mysql
Redmine requires a Ruby gem called i18n. I couldn't find the RPM for i18n gem. I had to install i18n gem using the gem installer.
gem install -v=0.4.2 i18n
Start MySQL server:
/etc/init.d/mysqld start
Use the MySQL secure installation program:
mysql_secure_installation
Connect to the MySQL server as root:
mysql -u root -p
Create a MySQL database and user for Redmine:
mysql> CREATE DATABASE redmine character set utf8;
mysql> GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost' IDENTIFIED BY 'secret_password' WITH GRANT OPTION;
Amazon Simple Storage Service or Amazon S3 is a storage service with a web API. I use Amazon S3 to store backups of my blog and other sites. I made a simple python script to handle file uploads to S3.
In order to use Amazon S3, first create a bucket using your Amazon AWS account. As the name suggests, bucket is a container. You can create buckets using the AWS management console.
The script we're going to write will take two input parameters
Nagios is a popular networking monitoring software. Nagios lets you monitor your IT infrastructure, be it servers, routers, switches or other devices. In this post, I will walk you through the steps of installing and configuring a basic setup of Nagios on CentOS.
At the end of the tutorial you will be have a working Nagios setup to monitor
Whenever there is a problem or recovery with any of the above, Nagios will alert you via email.
Unless you have a strong reason to compile Nagios yourself, you should use the binary packages available for your Linux distribution.
RPMForge provides packages that are not included in CentOS repositories. We will use the Nagios packages from RPMForge.
For 32 bit machines use these commands:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm
For 64 bit machines use these commands:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
As per http://www.fwbuilder.org/guides/firewall_builder_installation.html#000150 you may face some issues like "fwbuilder statically linked with QT crashes on start on your CentOS system"
Though I would like to go ahead and install it on a CentOS 5.3 - i386 machine for trial purpose.
This is what I did:
Referring to the link : http://www.fwbuilder.org//docs/firewall_builder_packages.html
I created a Firewall Builder RPM packages repository as mentioned below:
1. Created file: vi /etc/yum.repos.d/fwbuilder.repo
2. Included the below mentioned contents:
[fwbuilder]
I have configured Nagios.
However I have come across ntop and Cacti as well.
I am now confused which one to go for.
Could someone suggest me any one among the 3 mentioned above?
Many of us have suffered from failing package repository mirrors. Some are slow, some won't have updated content, etc. You might want to remove/blacklist a particular mirror in your yum configuration.
Before trying to remove a mirror, install the fastest mirror plugin.
yum install yum-fastestmirror -y
The fastest mirror plugin is capable of determining mirror speeds and cache it. If that works for you well and good.
If you have freshly install CentOS - 5.3 and if you trying to install Nagios on the same then refer this link mentioned below this works like a gem.
http://www.linux4beginners.info/node/nagiosfedora
Before you start up with the installation of nagios on CentOS 5.3 my recommendation is that you stop your firewall and disable SELinux.
Command to check the status of the firewall on CentOS 5.3 - service iptables status
Command to check the status of the firewall on CentOS 5.3 - service ip6tables status
I am a newbie on Linux. I have visited this link http://www.howtoforge.com/centralized-backup-server-with-amanda-on-centos but did not know where to do the changes if I want to use my hardisk as the back up device.
I am getting the error messages like after I used the following command in the bash login
-bash-3.2$ for ((i=1; $i<=15; i++)); do /usr/sbin/amlabel intra intra-$i slot $i; done
"/etc/amanda/intra/amanda.conf", line 22: a quoted string expected
"/etc/amanda/intra/amanda.conf", line 22: end of line expected
Recent comments
3 weeks 4 days ago
6 weeks 4 days ago
9 weeks 1 day ago
9 weeks 1 day ago
10 weeks 4 days ago
11 weeks 23 hours ago
13 weeks 2 days ago
14 weeks 1 day ago
32 weeks 3 days ago
33 weeks 3 days ago