Category Archives: CentOS

Install Nginx, PHP 5.4 & PHP-FPM on CentOS6 via REMI Repository

I’ve written a guide on how to install Nginx, PHP 5.4 and PHP-FPM on Ubuntu/Debian, now heres a guide how I did it on CentOS 6.

Add REMI repo:

## Remi Dependency on CentOS 6 64BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm

## Remi Dependency on CentOS 6 32BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
  
## Remi Dependency on CentOS 5 64BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

## Remi Dependency on CentOS 5 32BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
									

(more…)

Posted in CentOS, Linux, Nginx, Server & OS | 44 Comments

Install Apache, PHP 5.4 & APC on CentOS5.7/6 via REMI Repository

I’ve written a guide on how to install Nginx, PHP 5.4 (Updated) and PHP-FPM on CentOS a while back, now heres a guide how to install Apache with PHP on Centos5.7/6.

Add REMI repo:

## Remi Dependency on CentOS 6 64BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

## Remi Dependency on CentOS 6 32BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
  
## Remi Dependency on CentOS 5 64BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

## Remi Dependency on CentOS 5 32BIT##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
									

(more…)

Posted in CentOS, Linux, Server & OS | 8 Comments

Installing MySQL 5.5 on CentOS 6 via REMI Repository

MySQL is the world’s most used relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases.

The MySQL development project has made its source code available under the terms of the GNU General Public License, as well as under a variety of proprietary agreements. MySQL was owned and sponsored by a single for-profit firm, the Swedish company MySQL AB, now owned by Oracle Corporation.

Add REMI repository:

## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
 
## CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

## check available mysql version ##
yum --enablerepo=remi,remi-test list mysql mysql-server

## Sample Output ##
Loaded plugins: changelog, fastestmirror, presto, refresh-packagekit
...
remi                               | 3.0 kB     00:00     
remi/primary_db                    | 106 kB     00:00     
Available Packages
mysql.i686                        5.5.21-1.fc14.remi                        @remi
mysql-server.i686                 5.5.21-1.fc14.remi 
									

(more…)

Posted in CentOS, MySQL, Server & OS | 4 Comments

Installing VSFTPD with virtual users on CentOS 6

Vsftpd supports virtual users with PAM (pluggable authentication modules). A virtual user is a user login which does not exist as a real login on the system in /etc/passwd and /etc/shadow file. Virtual users can therefore be more secure than real users, because a compromised account can only use the FTP server but cannot login to system to use other services such as ssh or smtp.

This guide will show how to install Vsftpd with virtual users on CentOS 6.

  • Berkeley DB (version 4) databases
  • pam_userdb.so

Install Berkeley DB and Utilities under CentOS and Vsftpd:

# yum install db4-utils db4 vsftpd
									

(more…)

Posted in CentOS, Linux, Server & OS | 1 Comment

Linux /boot: Out of Disk Space

Fix Linux /boot: out of disk space when doing a kernel upgrade.

Verify using df command itself, enter:

# df -H /boot

--Sample Output

Filesystem             Size   Used  Avail Use% Mounted on
/dev/xvda1             102M    71M    27M  73% /boot
									

(more…)

Posted in CentOS, Linux, Server & OS | Leave a comment

From SVN to Git – Installing Git on Centos

I’m a long time SVN user, I used SVN for almost 6 years way back php version 4, until Git came along. This is not to compare SVN over Git or which one is better but rather reasons why I came up with the business decision to use GIt as my company’s version control. Here are some reason why I chose to move to Git:

  • Git is incredibly fast compared to SVN and CVS.
  • Fully distributed. The repository owner can’t dictate how one individual should work. User can create branches and commit changes while disconnected from the network/internet, then developers can later synchronize local repository with any number of other repositories.
  • Synchronization can occur over many media. An SSH channel, over HTTP via WebDAV, by FTP, or by sending emails holding patches to be applied by the recipient of the message. A central repository isn’t necessary, but can be used.
  • Branches are even cheaper than they are in Subversion. Creating a branch is as simple as writing a 41 byte file to disk. Deleting a branch is as simple as deleting that file.
    (more…)
Posted in CentOS, Git, Linux, Symfony 2 | 1 Comment