BIP KB Tag: centos

How To Install Apache 2.2.x And PHP 5.3.x On CentOS 5

This guide assumes you have a minimal CentOS installation and are not planning on running a control panel such as cPanel, which installs the Apache web server for you. Some of the software versions listed below may need to be changed as they are updated. As of the writing of this article, Apache 2.2.16 and PHP 5.3.3 are the latest versions. Install the required packages using Yum yum install bison flex gcc db4 db4-devel libx...
By lee, January 24, 2015


How To Enable Automatic Software Updates On CentOS 5

It's important to keep your server software up-to-date. The commands below will enable automatic nightly updates using CentOS 5's default yum package manager. yum -y install yum-cron crontabs vixie-cron service cron start chkconfig --level 2345 yum-cron on service yum-cron start If you have any questions, feel free to leave a reply below and I will be more then happy to answer any questions you may ha...
By tilisha, January 24, 2015


How To Install And Configure X11 With Remote VNC Access On Centos 5

The instructions below will walk you through the process of installing the X window system, GNOME desktop environment, and configuring VNC so that you can access it remotely. yum -y upgrade yum -y groupinstall "GNOME Desktop Environment" yum -y install vnc-server As a general rule of thumb, you should never run X windows as root. In this example, we will add a system user with the username 'wkst' and configure X windo...
By tommy, January 24, 2015


How To Change The Time Zone In Linux

To set the timezone in Linux, update /etc/localtime with the appropriate timezone file from /usr/share/zoneinfo. Example: rm -f /etc/localtime ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime This would set your time zone to PST/PDT (Pacific Time) because that is the time zone Los Angles is located in....
By steve, January 24, 2015


How To Change Your Hostname

Change the hostname line in /etc/sysconfig/network to the hostname you want (this file may be different on FreeBSd and others). Your hostname should be something prefixing a domain you own (this is referred to as a fully qualified domain name, FQDN), so server1.yourdomain.com for example, not just yourdomain.com. Changing it in that file ensure that your hostname gets set each time networking starts, however you'...
By jason, January 24, 2015


How To Disable Shell Access For A Specific User

If you would like to disable shell access for a specific user you can do the following. In this example we will disable shell access for username johnsmith: chsh -s /bin/false johnsmith Please note that this disables shell access for the user when they are logging in using the normal means. If the user is able to execute commands through a PHP/CGI script they can spawn their own shell. ...
By tilisha, January 24, 2015


How To Extract The Contents Of An RPM File

Sometimes it can be useful to extract the contents of an RPM file without actually installing it. In order to do so, use the following command: rpm2cpio file.rpm | cpio -idmv Please Note: This will extract the rpm into whatever directory you are in, including all of it's sub-directories. So for example, if you change directory into / and run the command above the rpm will be extracted and files/directories placed just...
By tasia, January 24, 2015


ImageMagick [Imagick] PHP Class Broken Or Fails To Install

Introduction to Imagick Some versions of CentOS (including the most recent 5.5) have an issue with a buggy 6.4.8 RPM version of ImageMagick. This version prevents the Imagick PHP class from working properly and also prevents the extension from being installed via PECL. If you are using this PHP class on your site, you will see an error something like: Fatal error: Class 'Imagick' not found in /home/user/public_html/file.ph...
By peggy, January 24, 2015


How To Install IOTop On CentOS 5

Iotop is a Python program with a top like UI used to show on behalf of which process is the I/O going on. This can come in handy for administrators trying to track down a specific process that may be causing a disk I/O bottleneck. Pre-RequisitesIOTop uses features that are a part of a newer kernel build than what CentOS ships with, so you must upgrade your kernel to at least 2.6.20. The process of doing so is outside ...
By tommy, January 24, 2015


How To Lock And Unlock A System User Account

Disabling shell access doesn't fully lock a user out of a server. They can still login via ftp/pop/imap/smtp servers if they are running on the local server and are checking local user authentication. Below you will find instructions on how to fully lock a system users account. In this example, we will lock the system user peterhope /bin/passwd -l  In this example, we will unlock the system user peterhope ...
By justin, January 24, 2015


How To Upgrade CentOS 32Bit 4.x To 32Bit 5.x

We have found the following guide very useful in this process. This works for both dedicated servers as well as VPS nodes: cPanel ServersIf your server has cPanel installed you first need to remove filesystem from the exclude line in /etc/yum.conf. If you don't the yum upgrade procedures below will fail.Setting file attributes chattr -Ria /bin chattr -Ria /etc chattr -Ria /etc chattr -Ria /include chattr -Ria /lib chatt...
By daniel, January 24, 2015


How To Install And Run Minecraft On A Linux VPS

Debian based distributions are recommended for easiest installations. Prerequisites Start by installing the latest version of java. You can check if you already have the latest version by running java -version Debian, Ubuntu sudo apt-get update sudo apt-get install openjdk-7-jre screen CentOS, Redhat, Fedora yum update yum install java-1.7.0-openjdk screen You should also install screen so you c...
By alirolleston, January 24, 2015


How To Install OpenDKIM With Postfix On CentOS

Postfix OpenDKIM will give Your mail a signature that will eventually lower the spam score of the mail coming from your domain. This will help significantly to exclude these mails from being considered as spam by other servers, including google (google “accidentally” often considers a clean mail as spam because it has no dkim signature). On a Centos box, install OpenDKIM first. It comes from the Epel repos, so if ...
By jimmy, February 6, 2015


How To Synchronize A Directory From One Linux Server To Another Using Rsync

In this tutorial we will be using Rsync to synchronize a directory from Linux ServerA to Linux ServerB over SSH using two CentOS servers. To begin we recommend you setup SSH keys between the two servers. To do this you can follow our below tutorials though is not required : How to Set Up SSH Keys with Linux Commandline How to add your SSH public key to CentOS First lets make sure RSYNC is installed. yum install rsync Ok ...
By jason, March 17, 2015


How To Set Up SSH Keys With Linux Command Line

Introduction To Setting Up SSH Keys In this tutorial we are going to setup encrypted SSH Keys for authentication. There are many benefits to this type of setup which include: No longer needing to enter a password (unless you encrypt your keys with password protection *recommended*) Once public/private key pair authentication is configured, you can disable password authentication completely and only allow access via the key. Sto...
By jack, March 17, 2015


How To Add Your SSH Public Key To CentOS

Introduction to SSH Public Key In this tutorial we are going to add our public key for authentication through SSH. There are many benefits to this type of setup which include: No longer needing to enter a password (unless you encrypt your keys with password protection *recommended*) Once public/private key pair authentication is configured, you can disable password authentication completely and only allow access via the key. St...
By samantha, March 17, 2015


How To Install NGINX On CentOS 6

Install Nginx *WARNING* For this how to (Install Nginx) we will be using a third party yum repository. First we will install the third party repository provided by EPEL (Extra Packages for Enterprise Linux). More details can be found here: Fedora EPEL Project To install the yum EPEL Repo run the below command as root: rpm -Uhv http://mirror.cogentco.com/pub/linux/epel/6/i386/epel-release-6-8.noarch.rpm Now lets inst...
By fro, March 17, 2015


How To Install NTP Server On Centos 6

Introduction to NTP In this how to we will be installing the NTP (network time protocol) daemon. We first start by installing ntp: yum -y install ntp Now we will configure NTP to start on bootup. chkconfig ntpd on Lets now make sure our time is up to date on our server: ntpdate 0.centos.pool.ntp.org You should see an output like: # ntpdate 0.centos.pool.ntp.org 6 Mar 12:39:40 ntpdate[19226]: step time se...
By fredric, March 17, 2015


How To Configure SSH Key Access Authentication Only On Your CentOS SSH Server

Introduction to SSH Key pairs This how to assumes you have SSH Key installed on your server. If you do not you can follow either of the how to’s below: How to Set Up SSH Keys with Linux Commandline In this tutorial we will be: Changing The SSH Servers Po1rt Allowing connections only va PubkeyAuthentication. We will begin by editing your SSH servers configuration file: /etc/ssh/sshd_config vi /etc/ss...
By samantha, March 17, 2015


How To Install Ruby On Rails On Ubuntu 12.04 LTS

Install Ruby Introduction This tutorial will show you how to install Ruby Version Manager (RVM) which can be used to install Ruby, and then RubyGems, which can be used to install the Ruby on Rails framework. Finally, we’ll create an empty application and see it run: SSH to your Pod as root, and then run the following: root@rubyserver:~# \curl -L https://get.rvm.io | bash -s stable root@rubyserver:~# source /etc/profile.d...
By chris, March 18, 2015


Apache CentOS 6 Can Not Send eMail And Drupal Gets HTTP Request Status Fails

Pressflow Send Mail error I’m installing a Pressflow 6 on a new machine running CentOS 6. I’m using Apache MPM Worker with FastCGI. Then I get the classical mail error: Unable to send mail. Please contact the site administrator if the problem persists. Then I try to use sendmail: sendmail -v yourmail@example.com < testmail Where testmail is a file containing these lines: Subject: test mail Ozu Yasujiro Oz...
By bobby, March 18, 2015


How To Lock Down Your Linux Server For Additional Security

Introduction to Linux Security Linux Security. Most people rarely secure a freshly installed server right off the bat, but in the world we live in this is an absolute must. So if it’s so important to, why do so many people wait and do it last, if at all? I’m as guilty as the next person. It often comes down to just wanting to to start developing and doing the fun stuff. Hopefully this tutorial will show that it is far better se...
By chris, March 21, 2015


How To Proxy Port 80 To 2368 For Ghost With Nginx

Intro to Port 80 Follow this tutorial to install Ghost. Make your Ghost blog accessible on port 80 instead of 2368. We will use Nginx to proxy all requests for port 80 to 2368. Start by installing Nginx with one of the following commands, depending on what operating system you are running: CentOS For CentOS the first thing you will need to do is create a Nginx yum repository: vim /etc/yum.repos.d/nginx.repo an...
By peggy, May 6, 2015


How To Install testlink On CentOS

Install testlink Introduction In this Tutorial you will learn how to install Testlink 1.9.3 on CentOS 6.2: Using yum to install required packages yum install mysql-server php php-mysql php-gd php-ldap Modify /etc/php.ini to optimize php configuration for TestLink session.gc_maxlifetime = 2400 max_execution_time = 120 Set up web server and mysql services chkconfig httpd on chkconfig mysqld o...
By jill, May 7, 2015


How To Install And Configure Piwik Web Analytics Tool For Your Websites

Piwik is an open-source and free alternative to Google Analytics. It tracks and displays reports about the location of user visits, Where they came from (i.e website, directly, or something else), the visitors browser, screen size, operating system details, what the visitors did on your website, the time of visits and more. In this article, let’s show you how to install Piwik Analytics tool to track our website usage. I...
By jessica, May 13, 2015


How To Install php-tidy Module / Extension On CentOS / RHEL

I'm a new CentOS / RHEL / Red Hat / Fedora Linux server admin. I need to install tidy library support using php. How do I install php-tidy on RHEL or CentOS Linux for Apache server? You need to install the following module using the yum command on RHEL/ CentOS/ Fedora/ Scientific Linux server: php-tidy - The php tidy package contains a dynamic shared object that will add support for using the tidy library to PHP.   Install php-tidy mo...
By pam, May 17, 2015


How To Install And Configure SSH On CentOS

How do I install and configure both ssh server and client under CentOS Linux operating systems? You need to install the following packages (which are installed by default unless you removed it or skipped it while installing CentOS) openssh-clients : The OpenSSH client applications openssh-server : The OpenSSH server daemon     OpenSSH Installations under CentOS Linux To install the server and client type: ...
By tapish01, September 6, 2015


How TO Install Tiki Wiki CMS Groupware on a CentOS/Fedora VPS

In this tutorial we will show you how to easily install another great CMS – TikiWiki on a CentOS VPS or Fedora VPS. Tiki Wiki CMS Groupware or simply TikiWiki is very powerful, full-featured Wiki, content management system and online office suite. It is free and open source application written in PHP, actively developed by a very large community. Tiki Wiki can be used to create websites, wikis, Web applications, knowledge base, port...
By linda, October 7, 2015


How To Install Plone 4. 1. 3 On CentOS 6. 2

In this tutorial I will show you how to install Plone on a BIP media CentOS VPS server. I'm migrating from a slow provider to super fast BIP server. Here's how I got my new server ready for Plone-4.1.3. Starting with a newly installed CentOS 6.2 box, I ran a "yum update" to get all of the current software for the pre-installed packages. Install the following packages using yum: make readline-devel patch li...
By tabitha, October 15, 2015


How To Install The Diazo Themes for Plone on CentOS Linux

Intro to Diazo Themes I wanted to try this great new way to theme my Plone web site. I added Diazo Themes plone.app.theming to my build-out according to the instructions. Everything seemed to go well, however the theme never showed when I viewed my web site. It turns out this is actually a common problem and easy to fix. It took me some time to find the solution so I though I would share it with all of you. lxml Issues ...
By tabitha, October 15, 2015


How To Install Roundcube Webmail

The following tutorial will show you how to install and set-up the Roundcube webmail interface on a CentOS VPS. What is Roundcube Webmail? Roundcube Webmail is a web-based IMAP email client written in PHP. Its most prominent feature is the pervasive use of Ajax technology to present a more fluid and responsive user interface than the one of traditional webmail clients. It provides full functionality you expect from an email client, incl...
By frank, October 20, 2015


How To Install Joomla on a CentOS 7 Linux VPS

In this tutorial you will learn now to install Joomla on a Centos 7 VPS using Apache web-server and MySQL database. OVERVIEW Install Joomla. Joomla is one of the most popular free content management systems (CMS) in the world that allows you to easily create and manage a dynamic website. It has an intuitive management interface to control all the features and functionality this powerful CMS poss...
By brian, November 11, 2015


How to install LAMP (Linux Apache, MariaDB & PHP) on CentOS 7

In the following tutorial we are going to show you how to install LAMP (Linux Apache, MariaDB & PHP) on a CentOS 7 VPS. What is LAMP? LAMP is actually an acronym for a web services solution stack consisting of Linux, the Apache HTTP Server, the MySQL or MariaDB database engines, and the PHP, Perl or Python programming language. All components are free and open-source software, and the combination is suitable fo...
By patrick01, November 11, 2015


How To Install LIFERAY CentOS / RedHat Linux 6.x

In this Tutorial you will learn how to Install LIFERAY CentOS. Liferay CentOS is a lightweight yet powerful open-source platform for developing web portals. It is a popular choice by users across a range of industries because of its flexibility and ease of use. Liferay CentOS Portal includes a portal, web content management system, document management system and social collaboration services. Install LIFERAY CentOS P...
By addy, December 2, 2015


How To Setup CentOS WebPanel On A VPS

WebPanel Abstract This article will show you how to setup CentOS WebPanel on your Virtual Private Server -VPS. There are multiple alternatives available but I will focus on an easy approach and let you inspect the other options on your own. This article does not show you what to do after you deployed the WebPanel. It will only point you to the next steps. Intro On the internet you will be able to find out th...
By george02, December 19, 2015


How to Install the latest OpenSSL 1.0.2h Version on CentOS 6/7

latest OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library. The latest OpenSSL 1.0.2h was released on 03-rd of May 2016. If you are worried about your server security you should update the OpenSSl package to the latest version. Unfortunately all ...
By ivan, May 4, 2016


How To Install Locate On CentOS Server

Introduction This how-to will show you how to install locate on a CentOS server. This command is often the easiest and fastest way to find the location of files and directories. This is very useful when you’re working on a Linux system for which you are not well acquainted. When you install mlocate, it will install the two commands locate and updatedb. It will also install a cron job that updates the database daily. Pr...
By BIP, August 20, 2016