Quantcast
Channel: Websetnet
Viewing all 4268 articles
Browse latest View live

CentOS 7 & Nvidia kmod tutorial

$
0
0

 

Ladies and gentlemen, you know I like CentOS quite a bit. It’s really a dandy operating system, for home use as well as work, or if you want, the other way around, and it really surprises with its simplicity and flexibility. True, we started on the wrong foot due to a rather severe lack of extra repos and stuff, then we fixed it, and pimped it to the max.

With the release of build 1503, things are looking even brighter, and I thought this would be a good opportunity to refresh my Nvidia guide for this fine distro, and this time show you how it’s done using the ELRepo kmod package, so you don’t have to manually reinstall the driver every time there’s a kernel upgrade. Let us.

Teaser

Preparations

You don’t need to bother too much, but it’s always useful to have the necessary build tools in place and blacklist Nouveau, which we have already learned how to do in the first article. Now, once this step is done, we need a new repo. To add the ELRepo, uh, repo, you will need to perform two steps. The first one is to get the repository key, so you don’t get warnings about unsigned packages.

rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

And after that, install the binary. Do note the exact version could change, so consult the website if you get a 404 not found error.

rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

Search for Nvidia drivers

Next, let’s search for the drivers – yum search nvidia. You will get a long list of entries, and we need to understand what we get here. What you want is the kmod-nvidia package with the right architecture (32-bit or 64-bit) and the driver version that best suits your needs. Even on my elderly LG laptop, the 340 series is quite all right.

Then, you also want the compatibility files that match the selected version. Lastly, it’s not a bad idea to also install the nvidia-detect tool, which can also check for conflicts. The results are self-explanatory, but I can understand where people new to Linux or CentOS might struggle.

kmod-nvidia.x86_64 : nvidia kernel module(s)
kmod-nvidia-304xx.x86_64 : nvidia-304xx kernel module(s)
kmod-nvidia-340xx.x86_64 : nvidia-340xx kernel module(s)
nvidia-detect.x86_64 : NVIDIA graphics card detection utility
nvidia-x11-drv.x86_64 : NVIDIA OpenGL X11 display driver files
nvidia-x11-drv-304xx.x86_64 : NVIDIA 304xx OpenGL X11 display driver files
nvidia-x11-drv-304xx-32bit.x86_64 : Compatibility 32-bit files for the 64-bit : Proprietary NVIDIA driver
nvidia-x11-drv-32bit.x86_64 : Compatibility 32-bit files for the 64-bit : Proprietary NVIDIA driver
nvidia-x11-drv-340xx.x86_64 : NVIDIA OpenGL X11 display driver files
nvidia-x11-drv-340xx-32bit.x86_64 : Compatibility 32-bit files for the 64-bit : Proprietary NVIDIA driver
yum-plugin-nvidia.noarch : Yum plugin to prevent update of NVIDIA drivers on : unsupported hardware
bumblebee.x86_64 : Bumblebee is a project that enables Linux to utilize the : Nvidia Optimus Hybrid cards
xorg-x11-drv-nouveau.x86_64 : Xorg X11 nouveau video driver for NVIDIA graphics : chipsets

Our final set includes:

yum install kmod-nvidia-340xx.x86_64 nvidia-x11-drv-340xx.x86_64 nvidia-detect.x86_64

Installation & glamor warning

The driver will now install. This can take a few minutes. Relax!

Installing

During the setup, you may also get a warning, informing you that one of the installed packages is incompatible with the kmod driver. You will need to resolve this conflict.

WARNING:
Disable glamoregl or uninstall xorg-x11-glamor
See: http://elrepo.org/tiki/kmod-nvidia (Known Issues) for more information

What this is about? Well glamor is a part of the ATI driver framework, so this definitely does not work with Nvidia, which is why you should remove the package after you finish installing the driver.

yum remove xorg-x11-glamor
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
–> Running transaction check
—> Package xorg-x11-glamor.x86_64 0:0.6.0-2.20140918git347ef4f.el7 will be erased
–> Processing Dependency: libglamor.so.0()(64bit) for package: xorg-x11-drv-ati-7.4.0-1.20140918git56c7fb8.el7.x86_64
–> Running transaction check
—> Package xorg-x11-drv-ati.x86_64 0:7.4.0-1.20140918git56c7fb8.el7 will be erased
–> Processing Dependency: xorg-x11-drv-ati for package: xorg-x11-drivers-7.7-6.el7.x86_64
–> Running transaction check
—> Package xorg-x11-drivers.x86_64 0:7.7-6.el7 will be erased
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
xorg-x11-glamor x86_64 0.6.0-2… @base/$releasever 258 k
Removing for dependencies:
xorg-x11-drivers x86_64 7.7-6… @base/$releasever 0.0
xorg-x11-drv-ati x86_64 7.4.0… @base/$releasever 444 k

Transaction Summary
================================================================================
Remove 1 Package (+2 Dependent packages)

Installed size: 702 k
Is this ok [y/N]:

Reboot and enjoy

And that’s it. Now, your CentOS 7 is even perfecter than before. Don’t forget my pimping guide, or the sequel, which guarantees you will be having all the fine bits and pieces like LibreOffice, VLC, Steam, Skype, Chrome, and other cool and useful software.

CentOS, ready

Conclusion

There you go, another fine topic mastered and slain. This one is really cool, because it allows you to have Nvidia drivers as a seamless part of your overall CentOS experience, without any manual tampering and tweaking. Indeed, if you look at my two guides for how to enhance the basic CentOS set into a perfect desktop, it comes down to several extra repositories, and very little manual work. Good stuff. Just like Ubuntu.

Well, this should come handy. You’ve learned how to work with additional repositories, search for drivers, and even fix a conflict with the default package set. Now, your CentOS karma should be complete. Or whole. However karma is measured. Take care.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Install Laravel PHP Framework on CentOS 7 / Ubuntu 15.04

$
0
0

Hi All, In this article we are going to setup Laravel on CentOS 7 and Ubuntu 15.04. If you are a PHP web developer then you don’t need to worry about of all modern PHP frameworks, Laravel is the easiest to get up and running that saves your time and effort and makes web development a joy. Laravel embraces a general development philosophy that sets a high priority on creating maintainable code by following some simple guidelines, you should be able to keep a rapid pace of development and be free to change your code with little fear of breaking existing functionality.

Laravel’s PHP framework installation is not a big deal. You can simply follow the step by step guide in this article for your CentOS 7 or Ubuntu 15 server.

1) Server Requirements

Laravel depends upon a number of prerequisites that must be setup before installing it. Those prerequisites includes some basic tuning parameter of server like your system update, sudo rights and installation of required packages.

Once you are connected to your server make sure to configure the fully qualified domain name then run the commands below to enable EPEL Repo and update your server.

CentOS-7

# yum install epel-release

# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

# yum update

Ubuntu

# apt-get install python-software-properties
# add-apt-repository ppa:ondrej/php5

# apt-get update

# apt-get install -y php5 mcrypt php5-mcrypt php5-gd

2) Firewall Setup

System Firewall and SELinux setup is an important part regarding the security of your applications in production. You can make firewall off if you are working on test server and keep SELinux to permissive mode using the below command, so that you installing setup won’t be affected by it.

# setenforce 0

3) Apache, MariaDB, PHP Setup

Laravel installation requires a complete LAMP stack with OpenSSL, PDO, Mbstring and Tokenizer PHP Extensions. If you are already running LAMP server then you can skip this step to move on and just make sure that the required PHP extensions are installed.

To install AMP stack you can use the below commands on your respective server.

CentOS

# yum install httpd mariadb-server php56w php56w-mysql php56w-mcrypt php56w-dom php56w-mbstring

To start and enable Apache web and MySQL/Mariadb services at bootup on CentOS 7 , we will use below commands.

# systemctl start httpd
# systemctl enable httpd

#systemctl start mysqld
#systemctl enable mysqld

After starting MariaDB service, we will configure its secured password with below command.

#mysql_secure_installation

Ubuntu

# apt-get install mysql-server apache2 libapache2-mod-php5 php5-mysql

4) Install Composer

Now we are going to install composer that is one of the most important requirement before starting the Laravel installation that helps in installing Laravel’s dependencies.

CentOS/Ubuntu
Run the below commands to setup ‘composer’ in CentOS/Ubuntu.

# curl -sS https://getcomposer.org/installer | php
# mv composer.phar /usr/local/bin/composer
# chmod +x /usr/local/bin/composer

composer installation

5) Installing Laravel

Laravel’s installation package can be downloaded from github using the command below.

# wget https://github.com/laravel/laravel/archive/develop.zip

To extract the archived package and move into the document root directory use below commands.

# unzip develop.zip

# mv laravel-develop /var/www/

Now use the following compose command that will install all required dependencies for Laravel within its directory.

# cd /var/www/laravel-develop/
# composer install

compose laravel

6) Key Encryption

For encrypter service, we will be generating a 32 digit encryption key using the command below.

# php artisan key:generate

Application key [Lf54qK56s3qDh0ywgf9JdRxO2N0oV9qI] set successfully

Now put this key into the ‘app.php’ file as shown below.

# vim /var/www/laravel-develop/config/app.php

Key encryption

7) Virtua Host and Ownership

After composer installation assign the permissions and apache user ownership to the document root directory as shown.

# chmod 775 /var/www/laravel-develop/app/storage

# chown -R apache:apache /var/www/laravel-develop

Open the default configuration file of apache web server using any editor to add the following lines at the end file for new virtual host entry.

# vim /etc/httpd/conf/httpd.conf

ServerName laravel-develop
DocumentRoot /var/www/laravel/public

start Directory /var/www/laravel
AllowOverride All
Directory close

Now the time is to restart apache web server services as shown below and then open your web browser to check your localhost page.

CentOS

# systemctl restart httpd

Ubuntu

# service apache2 restart

8) Laravel 5 Web Access

Open your web browser and give your server IP or Fully Qualified Domain name and you will see the default web page of Laravel 5 frame work.

Laravel Default

Conclusion

Laravel Framework is a great tool to develop your web applications. So, at the end of this article you have learned its installation setup on Ubuntu 15 and CentOS 7 , Now start using this awesome PHP framework that provides you a lot of more features and comfort in your development work. Feel free to comment us back for your valuable suggestions an feedback to guide you in more specific and easiest way.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Setup DirectAdmin Hosting Control Panel on CentOS 6 / 7

$
0
0

Direct Admin is a Graphical User Interface (GUI) web hosting control panel that provides you the administrative options for managing all the parts of your hosting account and can be used for the management of web hosting and making your users easier to perform common web hosting account management tasks. DirectAdmin automates the tasks for creating separate packages and defining your customized rules so that the web servers can be easily shared and give web site owners a way to quickly set-up and manage their web sites.

The DirectAdmin control panel is very low cost and has become one of the most popular web hosting control panel in use today that provided every feature that you would like to set up on your web site with shared hosting.

Preparing Servers

In this article we going to show you the complete installation steps for DirectAmin Web Hosting control Panel on CentOS 6 and CentOS 7 servers.

1) Hostname Setup

Let’s prepare your CentOS server with basic parameters by configuring its proper Host names and IP address. To configure the basic server parameters, login to your server using the root or sudo credentials and configure your host name using below commands.

CentOS 6

# vi /etc/sysconfig/network
HOSTNAME=cantos-6

# vi /etc/hosts
72.25.10.175 centos-6 centos-6.linoxide.com

CentOS 7

# Hostnamectl set-hostname centos-7

# vi /etc/hosts
72.25.10.173 centos-7 centos-7.linoxide.com

2) Firewall Settings

After host name setup configure your firewall and SELinux to permissive mode so that you won’t get any issue during your installation setup but keep a note that enable it back and allow only your required ports in firewall if you are working on production environment.

CentOS 6

# Service iptables start

# vi /etc/sysconfig/selinux
SELINUX=permissive

CentOS 7

# systemctl start firewalls

# setenforce 0

3) System Update

Now run the following command to update your CentOS 6/7 servers with latest patches and updates.

# yum update

You asked to press Y for Yes and N for No to exit from the update, so press “Y” key and hit enter to start installing missing packages and their updates.

4) Installing Packages

Before starting the DirectAdmin installation setup, we will be installing few packages that must be installed on your CentOS 6 or 7 server.

Let’s run the below command to install some dependent packages on your CentOS server.

CentOS 6

# yum install wget zip unzip gcc gcc-c++ flex bison quota make perl bind bind-libs bind-utils openssl openssl-devel libaio libcom_err-devel libcurl-devel gd zlib-devel libcap-devel cronie bzip2 autoconf automake libtool which patch mailx cyrus-sasl-devel perl-ExtUtils-Embed db4-devel

After successful execution of above command you will be asked whether to proceed for the installation of these packages including their dependencies and updates. So, press “Y” key to proceed the installation.

CentOS 7

In CentOS 7, we need to install the following dependencies for with addition to some general packages installation as shown below.

# yum install wget unzip psmisc net-tools libdb-devel perl-DBI systemd-devel

Downloading DirectAdmin

To download the latest installation script for DirectAdmin we will be using the following command on CentOS 6/7 servers as shown.

# wget http://www.directadmin.com/setup.sh

Assign the executable permissions to the downloaded script by using the below command.

# chmod 755 setup.sh

Now you can see by list your current directory that it should have the proper executable permissions.

Starting DirectAdmin Installation:

To start installation of DirectAdmin on CentOS 6/7, let’s point to installation script and execute it within your current direct directory where you have downloaded then press “Y” key to install the required pre installation packages as shown.

#./setup.sh

*** 64-bit OS ***

*****************************************************
*
* DirectAdmin requires certain packages, described here:
* http://help.directadmin.com/item.php?id=354
*
* Would you like to install these required pre-install packages? (y/n): y

This might take a while to install the prerequisites, after that you will be asked to configure some of the following settings. So, choose the best appropriate answers according to your environment and give correct Client ID and License ID that you have got from DirectAdmin against your public IP.

Complete!
*
*****************************************************

Please enter your Client ID : xxxxx
Please enter your License ID : xxxxxx
Please enter your hostname (server.domain.com)
It must be a Fully Qualified Domain Name
Do *not* use a domain you plan on using for the hostname:
eg. don’t use domain.com. Use server.domain.com instead.
Do not enter http:// or www

Enter your hostname (FQDN) : centos-7.linoxide.com
Client ID:
License ID:
Hostname: centos-007.linoxide.com
Is this correct? (y,n) : y
Is ens160 your network adaptor with the license IP (72.25.10.173)? (y,n) : y
Your external IP: xx.xx.xx.xx
The external IP should typically match your license IP.

Is 72.25.10.173 the IP in your license? (y,n) : y

DirectAdmin will now be installed on: Enterprise 7.1
Is this correct? (must match license) (y,n) : y
You have chosen custombuild 2.0.
–2015-12-08 22:13:35– http://files.directadmin.com/services/custombuild/2.0/custombuild/build
Resolving files.directadmin.com (files.directadmin.com)… 69.162.69.58, 208.167.226.3, 216.144.254.90
Connecting to files.directadmin.com (files.directadmin.com)|69.162.69.58|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 617821 (603K)
Saving to: ‘/usr/local/directadmin/custombuild/build’

100%[====================================================================================>] 617,821 431KB/s in 1.4s

2015-12-08 22:13:37 (431 KB/s) – ‘/usr/local/directadmin/custombuild/build’ saved [617821/617821]

Would you like the default settings of apache 2.4 with mod_ruid2 and php 5.5 cli? (y/n):y

After downloading the updates and packages with your client id and license id for your IP address you see a multiple number of DirectAdmin processes taking place on your screen to complete the installation setup.

DirectAdmin Web Access

Upon successful completion of the installation setup of DirectAdmin, you can access its Web Console on your web browser with the FQDN of your server and port ‘2222’.

http://your-servers-ip:2222

Make sure that the port 80 and 2222 is allowed in your firewall/iptable settings.

Conclusion

In this article you have learned about installation of DirectAdmin on CentOS 6 and 7 server. DirectAdmin is one the best alternative to WHM-cPanel and its quite cheap and fairly easily to setup. Thank you for reading this article we hope you find it much helpful. Don’t forget to leave your valuable comments.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Setup Munin Monitoring System on CentOS 7

$
0
0

Hello Everybody! Welcome to our today’s article on one the most widely used, free of cost and Open Source Munin Network Resource Monitoring System. Its a perl software application can help you monitoring your each and every asset that keeps record of it and sends you the critical alerts of services for your servers, switches, applications, and any any other devices connected to your network whether its your computers, network, storage or the whole IT infrastructure. It shows all the information in graphs through a web interface that emphasis on plug and play capabilities.

Munin has a master/node architecture in which the master connects to all the nodes at regular intervals and asks them for data, then stores the data in RRD files to updates the graphs if needed. So, after completing its installation a high number of monitoring plugins will be playing with no more effort.

Prerequisites

Your systems hardware resources depends upon your own requirements while in this article we will be using the following system resource for Munin installation on CentOS 7.

Munin installation setup requires the basic web server packages to be installed on the server. So, after basic networking setup configure your hostname, IP address and firewall settings by keeping SELinux into permissive mode.

Then start installing packages by update your system first and enabling EPEL repository on it using below commands.

# yum install epel-release
# rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

# yum update

You will be asked to press “Y” key and hit Enter to proceed for installing all required updates. Once the updates are successfully installed on your system then proceed to the installation of Apache Web server.

Apache Web Setup

To setup your Apache web server, we need to start by installing its package using the below ‘yum’ command.

# yum install httpd

Upon completion of packages installation, start and enable its service and check that its active and enabled using the following commands respectively.

# systemctl enable httpd
# systemctl start httpd
# systemctl status httpd

Apache Status

Installing Munin

We can install Munin and Munin Node using the below ‘yum’ command through its available repository on CentOS 7 as shown.

# yum install munin munin-node

Hit “Y” plus Enter key to start installation of Munin and Munin Noe including a large number its required dependencies.

Once the installation is complete, start its service and enable it at auto start during reboot by using the following commands.

Munin Node Status

Munin Configurations

Now configure Munin by open its default configuration using any editor as used in below command.

# vim /etc/munin/munin.conf

# a simple host tree, change localhost with your FQDN.

[localhost]
address 127.0.0.1
use_node_name yes
:wq!

After saving the Munin configuration file, Open its apache virtual host configuration file to add access permissions to your network.

# vim /etc/httpd/conf.d/munin.conf

Munin Network

After saving the configuration file changes , restart apache web server service using command below.

# systemctl restart httpd

Now we are going to add a new user and password to the /etc/munin/munin-htpasswd file as the Munin statistics are protected with a username and password, so we need to setup the basic Apache Authentication.

# htpasswd -c /etc/munin/munin-htpasswd admin

This will add a new user with the name “admin” and asks for the new password as shown.

Apache Auth

# vi /etc/munin/munin-node.conf

host_name munin.linoxide.com

Save and close the file and restart munin-node services and access the following link by mentioning your FQDN or IP from the client which is in your network that was allowed in configuration file.

http://your_servers_IP/munin

Munin Web Access

Welcome to Munin Web Console

Here is the Munin dashboard, now you can check the graphs of your required servers.

Munin Dashboard

We can customize Munin dashboard by adding different available plugins and add multiple node to it. While using its web console we have options to create multiple groups and categories according to the required group of services.

You can check and see the status of your critical service by opening its graph from the Munin web console that will show you the current and past data from its maintained hostory as shown in below image.

Munin Load Graph

Conclusion

Munin installation has been setup. We hope you have enjoyed reading this article. The installation of Munin is quite simple, now simply add the client node and start monitoring your whole IT infrastructure using this awesome tool without paying any charges. Now enjoy using Munin on your environment and feel free to share your thoughts or suggestions in comments section.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

Install Habari on a CentOS 7 VPS

$
0
0

habariHabari is a free and open source publishing platform and application framework with a modular, object-oriented Core. In this guide we will install Habari on a CentOS 7 VPS with Apache, MariaDB and PHP. Its installation is pretty easy and straightforward.

To start the installation of Habari, log in to your server as user root:

ssh root@IP

and as usual, run the following command to make sure that all packages on your CentOS 7 VPS are up to date:

yum -y update

Now, we will install Apache web server:

yum install httpd

Once it is installed, start Apache and set it to start on system start up:

systemctl start httpd
systemctl enable httpd

Habari is PHP based application, so we will install PHP among with few PHP modules required by the application:

yum -y install php php-pdo php-common php-mbstring php-gd php-mysql

Habari requires already created empty database. It supports multiple database backends but in this tutorial we will install and use MariaDB. Run the following commands to install MariaDB on your server:

yum install mariadb mariadb-server

Start the MariaDB server and enable it to start on system start up:

systemctl start mariadb
systemctl enable mariadb

Run the mysql_secure_installation script to secure the database server and set your MariaDB root password.

Now, log in to the MariaDB server  using user ‘root’  and create new database and user for Habari:

mysql -u root -p

CREATE DATABASE habari;
CREATE USER 'habariuser'@'localhost' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON `habari`.* TO 'habariuser'@'localhost';
FLUSH PRIVILEGES;
exit

Don’t forget to replace ‘PASSWORD’ with an actual strong password.

Go to Habari’s official website and download the latest stable version of the application. At the moment of writing this article it is version 0.9.2.

wget http://habariproject.org/dist/habari-0.9.2.zip

Create a directory for Habari’s installation and unpack the zip arhive to the document root directory on your server:

mkdir -p /var/www/html/habari
yum -y install unzip
unzip habari-0.9.2.zip -d /var/www/html/habari/

Change the ownership of the ‘/var/www/html/habari/’ directory:

chown -R apache:apache /var/www/html/habari/

Create Apache virtual host for your website. First create ‘/etc/httpd/conf.d/vhosts.conf’ file with the following content:

vim /etc/httpd/conf.d/vhosts.conf

IncludeOptional vhosts.d/*.conf

and create the virtual host:

mkdir /etc/httpd/vhosts.d/
vim /etc/httpd/vhosts.d/yourdomain.com.conf

<VirtualHost YOUR_SERVER_IP:80>
ServerAdmin webmaster@yourdomain.com
DocumentRoot "/var/www/html/habari/"
ServerName yourdomain.com
ServerAlias www.yourdomain.com
ErrorLog "/var/log/httpd/yourdomain.com-error_log"
CustomLog "/var/log/httpd/yourdomain.com-access_log" combined

<Directory "/var/www/html/habari/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Restart the Apache web server for the changes to take effect:

systemctl restart httpd<p/re>

Now, open your favorite web browser and point it to http://yourdomain.com to run the web installer. You will have to choose your database type and enter the necessary information to complete the installation.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

Introduction to IRC with XChat, Irssi and UnrealIRCD on CentOS 7.0

$
0
0

This time we are going to talk about the Internet Relay Chat, or simply IRC. In the first part of this article we will review this protocol, how to use Irssi or XChat to connect on Freenode and other IRC networks,enter on channels and talk to people. After that, you will see how to start your own IRC service with UnrealIRCd.

Table of contents

  • Introduction
  • Connecting on IRC
  • Basic IRC commands
  • Serving IRC with UnrealIRCd

Introduction

You may remember the IRC chats, when there was no such thing as Facebook Google+ or LinkedIn and our social networks were IRC chat channels. Today we have a lot of alternatives to talk to someone on the internet, along with the social networks we have many popular messaging services, such as Whatsapp, Skype, Hangouts and so on.

However, despite IRC is not the main communication program on the internet, it is still alive and a great tool. It is a lightweight, widely deployed and  standardized protocol, originally created on 1988 by BBS users as a replacement and improvement for the talk program and that by its characteristics, saw the birth and death of many other messaging systems.

Connecting on IRC

To connect to an IRC network, you will need a client software. Here are some good clients for Linux.

Irssi

Irssi is a curses based IRC client, it is pretty great, customizable, allows the use of scripts and dismiss the need of a X server.

Install

yum install irssi

Connect to a network with the -c flag,

irssi -c irc.freenode.org

To switch between Irssi windows can be a little tricky at the first time,  you can use [Ctrl+n] to go to next window and [Ctrl+p] for the previous. the /window command.

/window [ next | previous ]

Use the list parameter to display a list with the open windows

/window list

You can then jump to the listed window number with [Alt+#], where # is the window number between 1-9. Another way to do this is with the goto parameter

/window goto [1-9]

You can also find good tips on how to use Irssi on quadpoint website.

XChat

XChat simplify the process for new comers by giving you point and click options to commands and most actions.

You can install XChat with yum

yum install xchat

Connect to IRC networks, using the dialog presented to you when you just start XChat, also accessible from  menu XChat->Network List [Ctrl+s]

Connect to IRC networks on XChat

As you sucessfully connect to the network, you can select one of the options to join to channels. You can also use the menu Server->List of Channels.

IRC join Freenode XChat

Basic IRC commands

Now you have a client ,here are some commands that you can use on IRC. When you first connect on a network, you will be given a nickname based on your system login by the client, and to change your nickname to Tuxman for instance, try this.

/nick Tuxman

With a new, you may want to enter on a channel. To list channels related to development try

/list #devel*

Once you find the channel you are interested on, try to join with /join #channelname.

/join #linux

OK, you are on a channel, you can start talking now, to know who is on the channel, do this with names

/names

Maybe you want to know more about who is someone on the network, try whois.

/whois MrRobot

Want to a chat window with someone? query.

/query MrRobot

Register you nick

You don’t need to create an account to chat on IRC networks. However, if you want to prevent your nickname of being be used by someone else, you must register you nickname on the network. This will also give you access to resources that require registered nicknames, such as cloaking and access to more channels.

Let’s suppose that you want to register the Tuxman nickname on Freenode. Ask the NickServ to REGISTER your nickname

/msg NickServ REGISTER password me@email.com

After that you must get your verification code that was sent to the email you provided and send it to NickServ

/msg NickServ VERIFY REGISTER nickname verifycode

You have registered your nickname, now you can identify yourself to the network

/msg NickServ IDENTIFY password

Connect and identify at Irssi startup with -n and -w flags.

irssi -c irc.freenode.net -n nickname -w password

You should also change your password from time to time, use the following command

/msg nickserv set password newpassword

Installing UnrealIRCd

Among other Ircd implementations there is the UnrealIRCd. It is fully featured, modular and highly documented, also the most implemented IRC server nowadays, corresponding to more than 50% of the currently running IRC servers.

Extra Requirements

Here is some requirements to get best of your UnrealIRCd, despite it is not required, it is strongly recommended as you will see.

Ntp – You must have correct time and date, ntp is your best choice to maintain time and date correct.

Install ntp

yum install ntp

Enable ntpd

chkconfig ntpd on

OpenSSL – This is also optional,  this will be used if you want SSL/TLS support.

yum install openssl

Zlib – This will let you to compress the network packets and reduce the load over the links.

yum install zlib

Get UnrealIRCd

Download Unrealircd.

wget –no-check-certificate https://www.unrealircd.org/downloads/Unreal3.2.10.5.tar.gz

Extact the tarball

tar zxvf Unreal3.2.10.5.tar.gz

Enter the sources tree

cd Unreal*

Enable chroot irc user and irc group (recommended)

This step is optional but strongly recommended as it will allow you to drop superuser rights and run UnreadIRCd under an unprivileged user account, inside a chrooted environment, and thus will make the whole setup much safer.

To do this you must edit include/config.h file within the sources directory.

Chroot environment feature is defined by the following directive

/* #define CHROOTDIR    */

Define the IRC_USER constant

/* #define IRC_USER  “<user name>” */

Define the IRC_GROUP constant

/* #define IRC_GROUP “<group name>” */

enable-user-chroot

Create group for ircd

groupadd ircd

Create ircd user and add it to the ircd group.

useradd ircd -s /bin/false -g ircd

Set the password for the ircd user to make sure no one can enter.

passwd ircd

Configure the build

At this point you follow the questions on the screen,  and you can use default settings most of then, however, I advice you to answer Yes when asked to enable ssl support.

./config

Configuring UnrealIRCd build

Build the sources

make

Install files

make install

If you enabled the ircd user, group and chroot features, you should now change the ownership of UnrealIRCd directory.

chown -R ircd:ircd /home/ircd/UnrealIRCd

Configure

It is time to make your IRC daemon work. For this edit the unrealircd.conf, the configuration file for UnrealIRCd. You can find the well documented file doc/sample.conf under your UnrealIRCD directory tree, it may help you in your journey. I created this working snippets with a brief description.

me – This block sets some basic server settings, name, basic info and the numeric value that must be unique across server on the same network.

me {

name “irc.localhost”;
info “My Server”;
numeric 1;

};

admin –  Here you set who is the server administrator, its name, nickname and email.

admin {

“George Jedi”; /* Name */
“geroge”;/* Nick Name */
“george@heaven.net”; /* Email */

};

class clients/servers – This sets how clients and other servers are handled by the our server respectively. ping frequency, maximum of clients connections, frequency of reconnection tries, receive and send queues.

class clients {

pingfreq 90;
maxclients 500;
sendq 100000;
recvq 8000;

};’

class servers {

pingfreq 90;
maxclients 10; /* Max servers we can have linked at a time */
sendq 1000000;
connfreq 100; /* How many seconds between each connection attempt */

};

allow – Define who can connect to the server and how. First block allows user connections from any IP or hostname and limits the connections to 5 per IP. Second block allows only one authenticated connection to people from ugly.people.com

allow {

ip *;
hostname *;
class clients;
maxperip 5;

};

allow {

ip *@*;
hostname *@*.ugly.people.com;
class clients;
password “jayajaya”;
maxperip 1;

};

listen – Which ports to listen for connections. On the block we are listening at port 6697 for user clients connecting over secure socket layer (SSL). Note also the line simple statement for plaintext connections at port 6667

listen *:6697 {

options {

ssl;
clientsonly;

};

};
#listen *:8067;
listen *:6667;
#listen *:6660-6669;

oper – Operator attributes, in this example we use an operator nicknamed george that can connect from anywhere with the “fuba” password

oper george {
class clients;
from {
userhost *@*;
};

password “fuba”;
flags {

netadmin;
can_gkline;
can_kline;
can_unkline;
can_gzline;
can_zline;
can_restart;
can_die;
can_rehash;
global;

};

swhois “Example of a whois mask”;
snomask cFfkoSsqNG;

};

loadmodule – Loads modules, these are the minimum recommended

loadmodule “modules/commands.so”;
loadmodule “modules/cloak.so”;

log – How log files will be written, on the example we log events flagged as errors, kills and so

log ircd.log {

maxsize 5MB;
flags {

errors;
kills;
oper;
tkl;

};

};

set – You may set many other things here, in our example we have a network at domain gaia.net called gaianet, that connect people to the #welcome channel, we set 3 different alphanumeric cloak keys, set the hosts on the network, create a #help  channel and other options that are detailed on nrealircd.org.

set {

kline-address my@email.address;
auto-join #welcome;
op

options {

hide-ulines;

};

maxchannelsperuser 10;
services-server         “services.gaia.net”;
default-server              “localhost”;
network-name                “gaianet”;
help-channel                “#help”;
hiddenhost-prefix           “gaia”;

cloak-keys {

“aoAr1O6fh3Q6w4Hnl3J7hVz4Zb7x4YwpW”;
“andaoAr1HnR6gl3sJ7uhVzO6fh3Q6w4oN3″;
“a2Ja2JO6fh3Q6w4oNs7O6fh3Q6w4oN3s7″;

};

hosts {

local           “locop.gaia.net”;
global          “ircop.gaia.net”;
coadmin         “coadmin.gaia.net”;
admin           “admin.gaia.net”;
servicesadmin   “csops.gaia.net”;
netadmin        “netadmin.gaia.net”;
host-on-oper-up “no”;

};

};

Start UnrealIRCd

With all things in place, you can start your IRC daemon now.  Add the following command on rc.local to start UnrealIRCd when your system starts.

/home/ircd/UnrealIRCd/unreal start

It should run with no problems, however if face any problem during the startup, read the error messages on the terminal and also on the ircd.log file to figure out what is wrong.

Conclusion

You are done for now, your client and server should be running now, you can talk to people worldwide using some of the global networks or using your own network. However, it is a good idea to learn more on the IRC protocol, how to manage networks, channels and users, etc. The following documents should help you.

RFC documents

The following RFC defines the standards for the IRC protocol. You should read this before you can get best of IRC.

RFC-1459, RFC-2810, RFC-2811, RFC-2812, RFC-2813, RFC-7194

UnrealIRCd support and docs

Refer official documentation of UnrealIRCd to acquire more information. It contains all details that are not described on this document. You can also get help from IRC by connecting on irc.unrealircd.org:6667 on the #unreal-support channel. Thanks for reading!




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Configure Logrotate

$
0
0

It’s always important to keep your server logs around for as long as it makes business sense. You’ll need them for auditing system access, discovering abuses, or to identify root causes to problems, among other reasons. The challenge, though, is that depending on the service being provided and the amount of traffic received, your logs are capable of growing to gargantuan sizes, consuming every last bit of disk space available.

Logrotate allows us to better manage our logs to prevent from consuming too much disk space. Depending on the schedule you decide on, your logs can be rotated every day, week, or month. Each rotation renames your existing log file, usually by appending a ‘.’ and number to the end, and then creates a new file. To preserve storage the logs that have been rotated can be compressed using Gzip.

Thankfully, most major Linux distributions, like Ubuntu, automatically rotates most logs found under /var/log.

Installation

Logrotate is installed by default on most recent distributions.  As of this writing that means Ubuntu 15.10 and CentOS 7 – 1511. However, if you find that your installation does not include it, it can easily be installed through Yum or Apt.

Create a Log Rotate Configuration

Logrotate configuration files are stored under /etc/logrotate.d. When the logrotate cron job runs, it will look execute any configuration found in that directory.

The following example is that of a default Apache2 log from a CentOS 7 server. We can use it as a template for our own application logs, separate from the default ones.

/var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
        /bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true
    endscript
}

Here’s an explanation of the settings used above.

Logrotate supports many more options than what’s listed above. To see a complete list, you can man logrotate or visit linuxcommand.org logrotate page. Here are a few options you may find useful.

 

Test Your Configuration

As with anything, before you roll your configuration into production you will want to test it to ensure everything works. Logrotate includes a feature that allows us to run a configuration, in debug mode, without it doing any work. If there are errors discovered in the syntax or some other issues, you will be notified.

sudo logrotate -d /etc/logrotate.d/myapp.conf

The output will look similar to the example below. The output displays the discovered logs based on the location /var/httpd/*log, and what was done for each log. None of the logs were rotated since I ran the test on a server that was newly built. However, if the logs had more content and were aged a little more, we would see a message indicating our logs were rotated. For now, we can take this as our configuration file syntax is correct.

empty log files are not rotated, old logs are removed
considering log /var/log/httpd/access_log
  log does not need rotating
considering log /var/log/httpd/error_log
  log does not need rotating
not running postrotate script, since no logs were rotated



FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to install Confluence on CentOS 7

$
0
0

logo-confluenceConfluence is a wiki team collaboration software which is written in Java. It is a centralized place where you and your team members can work together on projects.

With Confluence you can add custom features via plugins, integrate Microsoft Office and SharePoint, easily edit and publish project related tasks and more.

In this article we will cover the steps needed for installing Confluence on a CentOS 7 VPS.

REQUIREMENTS

We will be using our CentOS 7 Linux VPS template for this tutorial. Before proceeding you should check the system requirements for Confluence.

The server on which you will install Confluence will need a working LAMP (Linux, Apache, MySQL & PHP) stack installed. So if you need to install LAMP you can do that by following our excellent article.  However, do not install MariaDB as shown in the tutorial since Confluence supports MySQL instead of MariaDB . We will cover the MySQL installation later in this article.

UPDATE THE SYSTEM

As always, make sure your server is fully up-to-date with the command below:

# yum update

Also, install a text editor of your choice. We will use nano as our text editor:

# yum install nano
INSTALL AND SETUP JAVA

Confluence requires JAVA in order to run. We are going to install Oracle’s JAVA JDK 8. Use the command below to download JDK 8:

# wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm" -O /opt/jdk-8-linux-x64.rpm

Install JAVA:

# yum install /opt/jdk-8-linux-x64.rpm

Configure the JAVA package using the alternatives command:

# JDK_DIRS=($(ls -d /usr/java/jdk*))

# JDK_VER=${JDK_DIRS[@]:(-1)}

# alternatives --install /usr/bin/java java /usr/java/"${JDK_VER##*/}"/jre/bin/java 20000

# alternatives --install /usr/bin/jar jar /usr/java/"${JDK_VER##*/}"/bin/jar 20000

# alternatives --install /usr/bin/javac javac /usr/java/"${JDK_VER##*/}"/bin/javac 20000

# alternatives --install /usr/bin/javaws javaws /usr/java/"${JDK_VER##*/}"/jre/bin/javaws 20000

# alternatives --set java /usr/java/"${JDK_VER##*/}"/jre/bin/java

# alternatives --set javaws /usr/java/"${JDK_VER##*/}"/jre/bin/javaws

# alternatives --set javac /usr/java/"${JDK_VER##*/}"/bin/javac

You can check if JAVA has been properly setup on your server using:

# java -version
INSTALL MYSQL

You need to install MySQL from the community repository.

Download and install the repo:

# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

# sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm

Update the package index:

# yum update

Now install and start MySQL:

# yum install mysql-server mysql-client

# systemctl start mysqld

Enable MySQL to start on boot:

# systemctl enable mysqld

With the MySQL installation out of our way, we can now create a database for the Confluence installation. But first, run the mysql_secure_installation script to harden your MySQL server:

# mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

Now, log into MySQL as root and create the database:

# mysql -u root -p

mysql> CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin;
Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON confluence.* TO 'confluenceuser'@'localhost' IDENTIFIED BY 'your_password';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
INSTALL CONFLUENCE

You need to download the appropriate Confluence ‘Linux 64-bit/ 32-bit installer’ from their download page.
We are using a 64-bit CentOS 7 VPS, so we will use the 64-bit installer.

You can use the arch command to check whether you are running a 64 or 32 bit OS on your server. For example our CentOS 7 OS is 64-bit:

[root@linuxvps /]# arch
x86_64

Ok, now let’s get down to business. We are downloading the 64-bit installer:

# wget https://downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-5.9.1-x64.bin

Make the bin file executable:

# chmod a+x atlassian-confluence-5.9.1-x64.bin

Run the installer with ‘root‘ user privileges and the installation will create a dedicated Linux user account named ‘confluence‘ which will be used to run Confluence:

# ./atlassian-confluence-5.9.1-x64.bin

You will get the following output:

Unpacking JRE ...
Starting Installer ...
Dec 03, 2015 10:43:54 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.

This will install Confluence 5.9.1 on your computer.
OK [o, Enter], Cancel [c]

Press enter.

Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (uses default settings) [1],
Custom Install (recommended for advanced users) [2, Enter],
Upgrade an existing Confluence installation [3]

You can proceed with a custom install if you want, but we will enter 1 in our CLI for an Express install with the default settings:

See where Confluence will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/confluence
Home Directory: /var/atlassian/application-data/confluence
HTTP Port: 8090
RMI Port: 8000
Install as service: Yes
Install [i, Enter], Exit [e]

Press Enter again to start the Confluence installation which will give you the below output:

Extracting files ...

Please wait a few moments while Confluence starts up.
Launching Confluence ...
Installation of Confluence 5.9.1 is complete
Your installation of Confluence 5.9.1 is now ready and can be accessed via
your browser.
Confluence 5.9.1 can be accessed at http://localhost:8090
Finishing installation ...

As you can see, Confluence is listening on port 8090. You can change this and the URI path in the server.xml file. And indeed, we need to change the URL from which we will access Confluence. Therefore, enter the conf directory:

# cd /opt/atlassian/confluence/conf

However, you need to shutdown Confluence first and then edit the server.xml file.

# sh /opt/atlassian/confluence/bin/shutdown.sh

# nano server.xml

Now, find the ‘localhost’ value and replace it with your server IP address.

Save and exit the file. Next step is to configure a MySQL datasource connection for Confluence. In order to do that, you need to install the MySQL JDBC driver. Below is the procedure to do that. Execute the below commands:

# cd /opt
# wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.35.tar.gz
# tar -zxvf mysql-connector-java-5.1.35.tar.gz
# cd /opt/mysql-connector-java-5.1.35
# mv mysql-connector-java-5.1.35-bin.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/

With these commands you are downloading the JDBC driver in the /opt directory, extracting it and then move the unpacked jar file in the appropriate Confluence directory (/opt/atlassian/confluence/confluence/WEB-INF/lib/).

Next, edit the server.xml file again:

# nano /opt/atlassian/confluence/conf/server.xml

Find the following lines:

<Context path="" docBase="../confluence" debug="0" reloadable="true">
   <!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->

Insert the underneath lines within the Context element (between the ‘<Context path=”” docBase=”” ‘ and ‘<!– Logger is deprecated in Tomcat 5.5.” ‘ line):

<Resource name="jdbc/confluence" auth="Container" type="javax.sql.DataSource"
          username="confluenceuser"
          password="your_password"
          driverClassName="com.mysql.jdbc.Driver"
          url="jdbc:mysql://localhost:3306/confluence?useUnicode=true&amp;characterEncoding=utf8"
          maxActive="15"
          maxIdle="7"
          defaultTransactionIsolation="READ_COMMITTED"
          validationQuery="Select 1" />

Of course replace your_password with the password you configured during the creation of the confluence database. Save and close the file. Now edit the web.xml file located in the WEB-INF directory:

# nano /opt/atlassian/confluence/confluence/WEB-INF/web.xml

Insert the following components just before </web-app> near the end of the file:

<resource-ref>
    <description>Connection Pool</description>
    <res-ref-name>jdbc/confluence</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
   <res-auth>Container</res-auth>
</resource-ref>

Save and close the web.xml file.

After all these changes you’ve made to the configuration files, you can now start Confluence. Issue this command:

# sh /opt/atlassian/confluence/bin/start-confluence.sh

For troubleshooting use the Confluence log file (/opt/atlassian/confluence/logs/catalina.out).

You can now finish the Confluence installation at: http://your_server_IP:8090 . You will be welcomed by the installation page as shown in the picture below:

confluence

 

Click on Production Installation (you can choose a Trial Installation of course, since the Product install requires you to have an active Confluence license), choose if you want to have an addon and enter your license key in the following screen.

Then, set up the database. Choose MySQL and Direct JDBC Connection. Enter the corresponding settings:

Driver Class Name: com.mysql.jdbc.Driver

Database URL: jdbc:mysql://localhost:3306/confluence?useUnicode=true&characterEncoding=utf8

Username: confluenceuser

Password: your_password

Then click on Next and finish the Confluence configuration.

Congratulations, if you followed our steps carefully you now have a fully working Confluence installation on your CentOS 7 VPS. For more information about Confluence, visit their official documentation.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Install Tine 2.0 on CentOS 7

$
0
0

tine 2.0 vpsIn this tutorial we will show you how to install Tine 2.0 on a CentOS 7 VPS with Apache, PHP and MariaDB.
Tine 2.0 is an open source groupware and customer relationship management (CRM) application. Listed below are some of the main Tine 2.0 features:

  • Address book
  • Calendar
  • CRM
  • File manager
  • Human resources
  • Inventory
  • Synchronisation with mobile devices
  • Task management
  • Time tracker
  • VoIP integration
  • Web based mail client etc.

In order to install Tine 2.0 on your server, you need to make sure it meets the following requirements:

  • PHP 5.3 or later with the following PHP extensions enabled: ctype, date, dom, gd, hash, iconv, json, mcrypt, mysql, pdo_mysql, SimpleXML, SPL, xml and zip;
  • Apache Web Server 2.0 or later compiled with mod_rewrite module;
  • MySQL 5.0 or later or MariaDB installed on your virtual server.

Make sure that all OS packages are up to date by executing the following command:

yum -y update

Install the required packages:

yum install mariadb mariadb-server httpd php php-common php-gd php-ldap php-mcrypt php-mbstring php-xml unzip

Start the Apache web server and MariaDB database server and enable them to start on boot:

systemctl start httpd
systemctl start mariadb

systemctl enable httpd
systemctl enable mariadb

Download the latest stable version of Tine at http://www.tine20.org/download/ to the ‘/opt’ directory on the server. Then, extract it and move the Tine files and directories to the ‘/var/www/html/tine’ directory. At the time of writing this tutorial, the latest stable version of Tine is 2.0.

cd /opt/
wget http://packages.tine20.org/source/2015.07.6/tine20-allinone_2015.07.6.zip
mkdir -p /var/www/html/tine
unzip -d /var/www/html/tine tine20*.zip

Create a new MariaDB database and user for the Tine 2.0 application:

mysql -uroot -p
MariaDB [(none)]> CREATE DATABASE tinedb DEFAULT CHARACTER SET 'UTF8';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON tinedb.* TO 'tine'@'localhost' IDENTIFIED BY 'y0ur_passw0rd';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> quit

Create a new Apache configuration file (e.g. /etc/httpd/conf.d/your-domain.com.conf):

vi /etc/httpd/conf.d/your-domain.com.conf

Add the following virtual host directives to it:

<VirtualHost YOUR_SERVER_IP:80>
ServerAdmin webmaster@your-domain.com
DocumentRoot "/var/www/html/tine"
ServerName your-domain.com
ServerAlias www.your-domain.com
ErrorLog "/var/log/httpd/your-domain.com-error_log"
CustomLog "/var/log/httpd/your-domain.com-access_log" combined
<Directory "/var/www/html/tine/">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Restart the Apache service for the changes to take effect:

systemctl restart httpd

Copy the sample Tine configuration file:

cp /var/www/html/tine/config.inc.php.dist /var/www/html/tine/config.inc.php

Then, edit the newly created ‘config.inc.php’ configuration file. Add the database information and specify login credentials for the setup user. For example:

vi /var/www/html/tine/config.inc.php
<?php
return array(
 'captcha' => array('count'=>0),
 'database' => array(
 'host' => 'localhost',
 'dbname' => 'tinedb',
 'username' => 'tine',
 'password' => 'y0ur_passw0rd',
 'adapter' => 'pdo_mysql',
 'tableprefix' => 'tine20_',
 ),
 'setupuser' => array(
 'username' => 'setupuser',
 'password' => 'Ax6hd35RbM'
 ),

);

Do not forget to change the password for the setup user.

The web server user (Apache) needs to be able to write to certain files and directories, so you can easily accomplish that by executing the following command:

chown apache:apache -R /var/www/html/tine

You may also create an empty ‘config.inc.php’ configuration file, make it writeable to the web server and modify it later via the setup interface:

touch /var/www/html/tine/config.inc.php
chown apache:apache -R /var/www/html/tine/config.inc.php
chmod 644 /var/www/html/tine/config.inc.php

Open http://your-domain.com/setup.php in your favorite web browser to run the Tine installer and log in using the user login credentials defined in the Tine configuration file. Then, follow the installer’s instructions:

Accept the license and privacy agreements, click on ‘Setup Checks’ from the left-hand menu and if all PHP requirements are met, click on ‘Config Manager’ and set /tmp as a temporary file path.

Click on ‘Authentication/Accounts’ and set the admin login credentials, configure password settings and click on ‘Save config and install’ button.

Select ‘Application manager’ and install additional Tine modules, such as calendar, CRM, file manager, FeLaMiMail web-based IMAP email client, tasks etc. If you install FeLaMiMail, do not forget to configure IMAP and SMTP settings via ‘Email menu’.

That is it. The Tine installation is now complete. Log out as setup user and log in to the administrator back-end using the newly created administrator account. Here you can manage users, groups, specify privileges based on groups, manage installed Tine modules etc.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Install Wine 1.8 on Ubuntu 15.x / Centos 7

$
0
0

Wine (Wine Is Not an Emulator)) is a free and open source compatibility layer software application for the implementation of Windows based applications to run on Linux. Different applications have their own dependencies to run on any operating system. Windows programs won’t run on Linux and Linux programs won’t run on the Windows applications because both are the different operating operating systems developed in their own languages. So, in order to run Windows based applications on UNIX like operating system we need an intermediate application called WINE to be installed on Linux. Using WINE whenever a Windows based program tries to perform a function that Linux doesn’t normally understand, it will translate that program’s instruction into one supported by the system.

There are multiple features of using WINE like on the thin clients by simply installing Wine on a Linux server and access from any X Windows terminal by make existing Windows applications available on the Web by using VNC and its Java client.

1) Prerequisites

To install the latest version of Wine 1.8 on your Ubuntu 15 and CentOS 7 operating system, you need to complete the basic OS requirements before moving to the installation setup.

First of all open the command line terminal from the the drop down ‘Applications’ from your Ubuntu 15 or CentOS 7 desktop menu and run the commands below using root privileges to update your operating system with base system and security update.

On Ubuntu:

#apt-get update

On CentOS:

#yum install update

2) Download Wine 1.8 Source

You can download latest package 1.8 version of Wine to download.

Download wine 1.8

You can directly download it on your system using the ‘wget’ command by copying the source link address by using the command below that would be same for both Ubuntu and CentOS systems.

# wget http://dl.winehq.org/wine/source/1.8/wine-1.8.tar.bz2

Wget Wine

3) Extract the Archive

Change your directory to the extracted folder of Wine and then configure the source package by running the below command.

# tar -xvjf wine-1.8.tar.bz2

4) Compiling Wine 1.8

You need to enable 32 bit architecture in your 64 bit operating system for installing 32 Bit supporting packages. So, run the below commands as per your requirements.

For 32 Bit:

# ./configure

For 64 Bit:

# ./configure –enable-win64

You might get few warnings about some missing libraries that you can install on your Desktop system upon requirements and then proceed to with the compilation process by using the below command in your system.

# make

compile wine 1.8

The compilation process would take some time to complete its compilation process. Once the compilation completes the finally run this command to install Wine on your Ubuntu or CentOS 7 system.

# make install

make install

5) Installing Wine 1.8 Through PPA

You have the option to install the latest version of Wine 1.8 from the Official PPA of Ubuntu by using the following below commands on Ubuntu 15.

Enable 32 Bit Architecture

To enable 32 Bit software architecture system run the below command.

#dpkg –add-architecture i386

After adding teh Wine PPA repository Update your system packages by using the below commands.

#apt-get update

# add-apt-repository ppa:wine/wine-builds

More info: https://launchpad.net/~wine/+archive/ubuntu/wine-builds
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp2c2c3jtl/secring.gpg’ created
gpg: keyring `/tmp/tmp2c2c3jtl/pubring.gpg’ created
gpg: requesting key 77C899CB from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp2c2c3jtl/trustdb.gpg: trustdb created
gpg: key 77C899CB: public key “Launchpad PPA for Wine” imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

# apt-get install –install-recommends winehq-devel

You will be prompted to accept or reject by choose from the available options whether to proceed with installation or not.

6) Using Wine 1.8

You can check the version of your currently installed Wine 1.8 by executing the below command and see its version as shown in the image.

For 32 Bit and 64 bit installation of Wine you can execute the following commands respectively on your installation

# wine –version

# wine64 –version

Wine Version check

To get help about using the Wine you can run the following command.

root@ubuntu:~/wine-1.8# wine64 –help
Usage: wine PROGRAM [ARGUMENTS…] Run the specified program
wine –help Display this help and exit
wine –version Output version information and exit

To run any windows based application on your Ubuntu and CentOS 7 Desktop run the below command.

root@ubuntu:~/wine-1.8# wine64 vlc-2.2.1-win64.exe

root@ubuntu:~# wine putty.exe

You can run the windows based applications by doing a right click and openning it with “Wine Windows Program Loader” as shown in the image.

Using Wine 1.8

7) Configure Wine

You can configure your Wine application by opening its configuration panel by running the below command in the terminal and then configure is different settings like adding new applications and Drivers as shown.

Wine Conf

Conclusion

That’s it, we are successful in installing the latest version on Wine 1.8 on Ubuntu 15 and CentOS 7 by following the simple steps mentioned in this post. Now you can easily run your window’s based software applications on your Linux system and enjoy with your best X window operating System on Linux. You will get every thing in your Linux System that you want from your Windows system. Let’s enjoy using Wine on Linux and feel free to leave your comment for your valuable suggestions and comments, Cheers.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Install ManageEngine ServiceDesk Plus on CentOS 7

$
0
0

ManageEngine is the Enterprise IT Management Software division of ZOHO Corporation that simplifies IT management with affordable software that offers the powerful features of largest enterprises demand. It serves a diverse range of enterprise IT, networking and Telecom customers. In our today’s article we are going to show you the installation and configuration of ManageEngine’s ServiceDesk Plus. ServiceDesk Plus is an ITIL-ready help desk software with integrated Asset and Project Management capabilities. With advanced ITSM functionality and easy-to-use capability, ServiceDesk Plus helps IT support teams deliver world-class service to end users with reduced costs and complexity.

ManageEngine’s ServiceDesk Plus helps the enterprises in their incident management, problem management and change management. Create and publish their service catalog with custom service level agreements (SLAs) and multi-stage approvals. You can easily create projects, manage resources, track progress and integrate IT projects with requests and changes to fine-tune overall IT service delivery.

System Requirements

The system requirements for installing ServiceDesk Plus depends upon the number of technicians and nodes to used on the server. In this article will be using the minimum system resources that are required by 5-20 technicians. Following the system resources we are using in our test environment.

  • RAM: 1GB
  • CPU: 2vCPU
  • Disk: 20 GB
  • No. of Nodes: 50-200
  • Technician Login: 5-20
  • Operating System: CentOS 7 Core
  • Database: PostgreSQL

Download ServiceDesk Plus

First you have to download the ServiceDesk Plus package for Linux. Then click on the Linux 64 Bit package to start downloading your ServceDesk package.

ServiceDesk Download

If you wish to download it using ‘wget’ command then copy the download link address and run the command as shown below.

# wget https://www.manageengine.com/products/service-desk/91677414/ManageEngine_ServiceDesk_Plus_64bit.bin

ServiceDesk Installer

Installing ServiceDesk without GUI

To execute .bin type files, we need to assign the executable permission on this by entering the command as given below in your command prompt.

# chmod +x ManageEngine_ServiceDesk_Plus_64bit.bin

Now execute the .bin file to start the installation wizard and follow the instructions to proceed to the Next step as shown below.

# ./ManageEngine_ServiceDesk_Plus_64bit.bin -console

Starting Installation

installing servicedesk

License Agreement

Read the license agreement or type ‘q’ to guit and then choose the option 1 to accept the license agreement.

License Agreement

Technical Support

This is information is optional, if you wish to add your information for the technical support from ManageEngine then mention your details here.

Supprt registration

Select Country

Choose from the available options and update your country number as shown.

select country

Select Edition

We are going to choose the First Enterprise Edition. You can choose from the three available editions, that you want to install for your environment.

Select Edition

Installation Location

Here you need to specify a directory or press Enter to accept the default directory. We are going to choose another location for this as shown in the image below.

installation directory

Installation Details

The system will start preparing the summary of your selected components and then start installing on your server. This may take a while so stay calm and wait for its completion.

installation details

Installation Complete

Once the installation process is complete, you will see the message that InstallShield Wizard has successfully installed ManageEngine ServiceDesk Plus.

servicedesk installed

Starting ServiceDesk Server

After completing the installation process we need to start the server , to do so change your directory to ‘bin’ folder of your installation directory and then run the ‘run.sh’ script to start the serviceDesk server.

# cd /etc/ServiceDesk/bin/

# sh run.sh

This will takes a while to check and setup the JBoss Bootstrap environment andJBoss_HOME as shown in the below image.

start Sever

Make sure that mentioned port is opened in your firewall and SELinux. You can use the following command to allow port 8080 in CentOS 7 firewall

# firewall-cmd –zone=public –permanent –add-port=8080/tcp
# firewall-cmd –reload

ServiceDesk Web Access

Now you can access your ServiceDesk Plus web portal by opening the link as shown above with your server IP and port ‘8080’, then login using the ‘administrator’ credentials as shown.

http://your_servers_ip:8080

ServiceDesk Portal

ServiceDesk Dashboard

After providing the successful login credentials you will be welcomed by the ManageEngine ServiceDesk Plus Portal. Click on any of of the option and you will find a detailed information about its usage and customization.

Here is first look at your ServiceDesk Plus Home Page.

ServiceDesk Home

Installing ServiceDesk as a Linux Service

We need to install Service Desk Plus as a Linux Service on our CentOS 7 server other wise after closing the session the ServiceDesk server will be stopped.

So, the download the servicedesk script or copy this link location and use the ‘wget’ command as shown below.

# wget https://www.manageengine.com/products/service-desk/help/adminguide/servicedesk.txt

Then copy this ‘/etc/init.d’ directory and change it permission to ‘755’ using the below below command.

# cp servicedesk.txt /etc/init.d/servicedesk

# chmod 755 /etc/init.d/servicedesk

Use ‘chkconfig’ command to add the script as a startup process and Create a blank file under ‘/var/log’ directory for logging purposes.

ServiceDesk Service

Conclusion

ServiceDesk Plus is one of the most widely used proprietary product of ManageEngine that has a large number of its features that are required by every organization. You can give it a try by getting its 1 Month trial license. The installation method is simple and quite easy to follow as you have seen in this article. so, thanks for reading and feel free to post your suggestions and leave your valuable comments.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Install Flussonic Streaming Server Ubuntu / CentOS

$
0
0

Hello and welcome to our today’s article on installation Flussonic Streaming Server on Ubuntu15 and CentOS 7. Flussonic is a modern video streaming server written in Erlang. On the delivery end, Flussonic is a true multi screen platform and can serve up live streaming and video on demand content that currently serves millions of live and video on demand feeds per day. It has a complete functionality array for setting up a media resource to distribute files and broadcast satellite video or TV channels.

You can use Flussonic to ingest Flash using RTMP, HLS, MPEG-TS over HTTP or UDP, even RTSP. On the delivery end, Flussonic is a true multi screen platform and can serve up live streaming and video on demand content to iPhones, iPads, Android devices, BlackBerries, Set Top Boxes, IPTV middleware platforms and other streaming platforms.

System Resources

The minimum system requirements to the host server for running Flussonic depends on the number of concurrent connections to Flussonic server. We will be setting up the Flussonic Streaming server with minimum concurrent connections using the following system resources.

RAM: 1Gb
Processor: 2 vCPUs
Disk Space: 20 Gb
Network Adapter: 100 Mbits/s
Operating System: Ubuntu/CentOS
Concurrent Connections: 10

For stable streaming video playback with a high volume of concurrent connections, its recommended to distribute the traffic load among several real servers.

Installing Flussonic on Ubuntu 15

Connect to your Ubuntu server using the root credentials and the run the commands as shown below to add the source key for installing the Flussonic Streaming server from the debian package manager.

# wget -q -O – http://debian.erlyvideo.org/binary/gpg.key | apt-key add -;

# echo “deb http://debian.erlyvideo.org binary/” > /etc/apt/sources.list.d/erlyvideo.list;

Flussonic key

After adding the Flussonic key to the source list, update your system using the update command.

# apt-get update

system update

Once your system is updated then run the command to install the Flussonic and its derivative packages.

# apt-get install flussonic flussonic-ffmpeg flussonic-python

Press ‘Y’ key and hit Enter to continue.

Flussonic installation

Installing Flussonic on CentOS 7

To install Flussonic on CentOS/Red Hat Linux using the ‘YUM’, the first thing we need is to enable its yum repository by adding the RPM GPG key for flussonic.

# cat > /etc/yum.repos.d/Flussonic.repo <<EOF
[flussonic]
name=Flussonic
baseurl=http://debian.erlyvideo.org/rpm
enabled=1
gpgcheck=1
gpgkey=http://debian.erlyvideo.org/rpm/RPM-GPG-KEY-flussonic.com
EOF

Then run the ‘yum’ command as shown below to install the Flussonic server on your CentOS 7 server.

# yum –nogpgcheck install flussonic-erlang flussonic flussonic-ffmpeg flussonic-python

Installing Flussonic

Updating License

After successful installation of flussonic, you need get the trial license or purchase if you wish to use it for long in production by signing up or requesting for a trial lincese using this LINK.

Then open the license key file using any of your command line editor and add the licese key in it and close the file after sving the license key in it as shown below.

# vim /etc/flussonic/license.txt

Starting Services

To start flussonic services on Ubuntu or Linux you can use the same below command.

# /etc/init.d/flussonic restart

To check the status of flussonic service if its working fine or not, run the below command.

# /etc/init.d/flussonic status

flussonic services

You can use the below commands to stop or restart the flusonic services with the help of following commands.

# /etc/init.d/flussonic stop

# /etc/init.d/flussonic restart

To reconfigure with client connections live use the below command to reload its services.

# /etc/init.d/flussonic reload

Flussonic Version

You can check the current installed version of Flussonic on Linux by using the below commands.

On Ubuntu

# dpkg -l | grep flussonic

Flussonic Version

On CentOS

# rpm -qa | grep flussonic

Flussonic version

Flussonic Web Access

After starting the Flussonic services, open the web browser followed by the link as shown below containing your flussonic server’s IP adddress and port ‘8080’. You will be asked to provide the administrative credentials to log in onto admin panel. So use the same credeitials that you will got in with your trial license key.

http://servers_IP:8080

Flussonic Dashboard

Now you can configure and use your flussonic streaming server mainly for IPTV OTT , CDN Organizations and Operator Video surveillance.

Conclusion

You have learned about installation of Flussonic on Ubuntu 15 and CentOS 7. Now get ready to enjoy its awesome features like VOD Streaming including streaming from mp4 and flv files,Multibitrate and multilanguage mp4 streaming, Live streaming including Satellite capturing, IP cameras support, Republishing between servers and Video Streaming including automatic DVR cleanup, timeshifted restreaming, screenshots recording, server side playlists. So, we hope you have got this article much helpful. Feel free to comment us back to show your interests.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Install CPanel 11.52 on CentOS 7

$
0
0

In September 2015, the product was launched. And it is available in the STABLE release tier now. The new brand cPanel 54 version is launched and it is available in the current release tier for this installation. Cpanel & WHM version 11.52 supports the CloudLinux 7/RHEL 7/CentOS 7 operating systems for fresh installations.

In this article, I’m going to discuss about the features/Pre-requisites/installation of latest LTS release of cPanel & WHM 11.52 on CentOS 7 OS version. Before going to the installation, we can take a look on some of the new features of this release comparing the rest of the releases.

New features:

CloudLinux/RHEL/CentOS 7 support
Quota support & XFS file system
Amazon Linux AMI support
Webmail Branding
MultiPHP
Easy Apache 3 to 4 updates
Linux Container support
Common Mail providers tabs to WHM’s Greylisting.

Network Requirements

  • Hostname should be a fully qualified domain name.
  • Should have a valid ipaddress, subnet address and default gateway
  • Ethernet device with a static IP & hostname
  • Disable OS Firewall

Hardware Requirements

  1. Processor : 226 Mhz
  2. RAM : Minimum 1GB ( 2GB recommended for smooth functioning)
  3. Disk Space : Minimun 20 GB (40GB recommended for smooth functioning )

Disable Selinux

Need to edit the selinux configuration file located at : /etc/selinux/config

Modify the SELINUX parameter to disabled and reboot the server.

Installation steps followed for installing cPanel 11.52 on CentOS 7

Before installation make sure the server meets all the pre-requisites.

1. Set hostname to a fully qualified domain

This is how we set the hostname for the server to a fully qualified domain name “server1.centos7-test.com” and confirm the hostname status once it is done.

root@server1 [~]# hostnamectl set-hostname server1.centos7-test.com –static
root@server1 [~]# hostnamectl status
Static hostname: server1.centos7-test.com
Icon name: computer-vm
Chassis: vm
Machine ID: 72863e389b584a4dab36fae7f3bffda2
Boot ID: 8bd4f714d7ba4ebf9d53f059d0a1fe8b
Virtualization: xen
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 4.1.5-x86_64-linode61
Architecture: x86-64
root@server1 [~]#

2. Check for the IP addr, subnet addr and gateway

Make sure we have a static IP with a proper subnet mask and default gateway. In this case our IP address is 45.79.183.73 with a proper subnet mask and gateway.

root@server1 [~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 45.79.183.73 netmask 255.255.255.0 broadcast 45.79.183.255
inet6 fe80::f03c:91ff:fef1:78d9 prefixlen 64 scopeid 0x20<link>
inet6 2600:3c03::f03c:91ff:fef1:78d9 prefixlen 64 scopeid 0x0<global>
ether f2:3c:91:f1:78:d9 txqueuelen 1000 (Ethernet)
RX packets 38095 bytes 13241381 (12.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 41505 bytes 45527241 (43.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

3. Check the OS, disk usage and RAM usage for the server

Our server is installed with CentOS 7.2, having a disk space of 20GB and around 1GB RAM. Please see the results of the hardware checks below:

OS version check:

#cat/etc/redhat-release

root@server1 [~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
root@server1 [~]#

Disk usage check:

#df-h

root@server1 [~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 20G 5.9G 14G 31% /
devtmpfs 492M 0 492M 0% /dev
tmpfs 494M 0 494M 0% /dev/shm
tmpfs 494M 14M 480M 3% /run
tmpfs 494M 0 494M 0% /sys/fs/cgroup
/dev/loop0 662M 736K 627M 1% /tmp
tmpfs 99M 0 99M 0% /run/user/0

RAM usage check:

free -m or cat /proc/meminfo

root@server1 [~]# free -m
total used free shared buff/cache available
Mem: 987 336 275 12 375 607
Swap: 511 1 510

4. Disable Firewall

It is recommended to disable the OS firewalls before the cPanel & WHM installations. First of all we need to save the firewall rules and then stop the firewalld service. And make sure the service is disabled.

iptables-save > ~/firewall.rules
systemctl stop firewalld.service
systemctl disable firewalld.service

root@server1 [~]# systemctl status firewalld.service
● firewalld.service – firewalld – dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)

Jan 09 06:50:28 server1.centos7-test.com systemd[1]: Stopped firewalld – dynamic firewall daemon.

5. Disable Selinux

Modify the SELINUX parameter to disabled in /etc/selinux/config and reboot the server.
root@server1 [~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted – Targeted processes are protected,
# minimum – Modification of targeted policy. Only selected processes are protected.
# mls – Multi Level Security protection.
SELINUXTYPE=targeted

5. Installation of Perl

cPanel is programmed in Perl language. Hence, we need to install Perl prior to the cPanel installation if it isn’t installed in the server before.

yum install -y perl

6. Download/Install/Run cPanel/WHM script.

We need to download the cPanel installation script into the /home directory and run the script from there.

#cd /home
#curl -o latest -L https://securedownloads.cpanel.net/latest
#sh latest

This is how we download and install the cPanel installation script from our server’s home directory.

The script can take half an hour or more to complete the installation procedures.

Installation log

2016-01-07 07:15:51 227 ( INFO): cPanel install finished in 32 minutes and 14 seconds!
2016-01-07 07:15:51 964 ( INFO): Congratulations! Your installation of cPanel & WHM 11.52 is now complete. The next step is to configure your server.
2016-01-07 07:15:51 964 ( INFO):
2016-01-07 07:15:51 964 ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087.
2016-01-07 07:15:51 964 ( INFO): On RHEL, CentOS, and CloudLinux systems, execute /scripts/configure_firewall_for_cpanel to accomplish this.
2016-01-07 07:15:51 964 ( INFO):
2016-01-07 07:15:51 964 ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server.
2016-01-07 07:15:51 964 ( INFO):
2016-01-07 07:15:51 964 ( INFO): 1. Open your preferred browser
2016-01-07 07:15:51 964 ( INFO):
2016-01-07 07:15:51 964 ( INFO): 2. Type https://45.79.183.73:2087 in the address bar
2016-01-07 07:15:51 964 ( INFO):
2016-01-07 07:15:51 964 ( INFO): 3. Enter the word root in the Username text box
2016-01-07 07:15:51 964 ( INFO):
2016-01-07 07:15:51 964 ( INFO): 4. Enter your root password in the Password text box
2016-01-07 07:15:51 964 ( INFO):
2016-01-07 07:15:51 964 ( INFO): 5. Click the Login button
2016-01-07 07:15:51 964 ( INFO):
2016-01-07 07:15:51 964 ( INFO): Visit http://go.cpanel.net/whminit for more information about first-time configuration of your server.
2016-01-07 07:15:51 964 ( INFO):
2016-01-07 07:15:51 964 ( INFO): Visit http://support.cpanel.net or http://go.cpanel.net/whmfaq for additional support
2016-01-07 07:15:51 964 ( INFO):
2016-01-07 07:15:51 964 ( INFO): Thank you for installing cPanel & WHM 11.52!
2016-01-07 07:15:51 835 ( WARN): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

7. Adding ports 2087/2086 to the firewalld service

After completing the installation procedures, we need to ensure that our server allows the required service ports in the firewall.

[root@server1 zones]# firewall-cmd –zone=public –add-port=2087/udp
success
[root@server1 zones]# firewall-cmd –zone=public –add-port=2086/udp
success
[root@server1 zones]# firewall-cmd –zone=public –add-port=2086/tcp
success
[root@server1 zones]# firewall-cmd –zone=public –add-port=2087/tcp

[root@server1 zones]#firewall-cmd –reload

If your server has enough resources, then it is always advised to disable the OS firewall and configure CSF/APF to ensure better security and allow all required cPanel service ports by default. I would recommend to go with CSF for a cPanel server.

CSF Installation steps:

 wget http://configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf & ./install.cpanel.sh

Access the WHM via the URL

You can access WHM using the URL https://server-hostname:2087 or http://server-hostname:2086

After accessing the URL mentioned above, you can put your username as root and its password to login.

Read through the terms and conditions & accept the license agreement.

Now you can do your initial configuration steps one by one as below:

1. Setup Networking
2. Setup IP address
3. Nameservers
4. Services
5. Setup quotas

Visit http://go.cpanel.net/whminit for more information about first-time configuration of your server.

Now you will have your WHM ready to use!!!

cpanelwhm

I believe this article will be a great help for you guys! Thank you for referring to this. I would appreciate your valuable comments for further improvements.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Install Alfrasco ECM on CentOS 7

$
0
0

Alfrasco is a java based Electronic Content Management tool that is available with an Open Source license. This open platform helps you regain control of critical business content, strengthen compliance, optimize processes and make collaboration easy with its simple, smart and secure ways. Alfresco facilitates in multiple solutions like Electronic content management, Web Content Management and Digital Image management. You can organize and consolidate content to improve productivity and regain control of valuable corporate information. Share information and work effectively with people inside and outside the organization, including partners and customers. Using the process management solution of Alfresco you can reduce costs and gain new operating efficiencies. Automate and optimize critical business processes such as invoice processing and expense approvals etc.

Download Alfrasco Community Edition

In order to get Alfresco up and running on CentOS 7 Operating System we will be using the binary installer that is available on Alfrasco site to Download Alfrasco Community Edition .

Alfrasco Download

If you have Internet access then use ‘wget’ command as shown below to directly download the package for your required OS on your server.

# wget http://dl.alfresco.com/release/community/5.0.d-build-00002/alfresco-community-5.0.d-installer-linux-x64.bin

This binary installation script will allows you to install all the components that are needed to run Alfresco, including Java, Tomcat and MySQL etc.

Installing Alfrasco Community Edition

After downloading the binary installer of Alfrasco you need to execute it to start its setup wizard. To do so make sure that the binary script has executable permissions. Before starting installation you should modify your umask to at least “0022” before launching the installer. After the installation has completed, you can reset the umask permissions to your original values.

# chmod +x alfresco-community-5.0.d-installer-linux-x64.bin

# umask 0022

Once you have executed the binary installation script after setting up the proper umask, you will go through a number of steps to complete the installation wizard.

# ./alfresco-community-5.0.d-installer-linux-x64.bin

1) Language Selection

First of all you will be asked for Language Selection. You can simply hit the ‘Enter’ key to choose the default ‘English’ language as shown in below image.

alfresco setup

2) Installation Type

The Alfresco Community Setup Wizard be starts from where you have to choose the Installation Type from the two available options ‘EASY’ and Advance. We will be choosing the First option indicating the Easy installation as a starting user.

installation type

3) Installation Folder

Choose the default option for ‘[/opt/alfresco-5.0.d]’ by pressing the Enter key or specify your own location that you wish to choose for installing the Alfresco tool.

4) Admin Password

Then you need to configure the password to use for the Alfresco administrator account before moving to the next step.

admin password

5) Alfresco as a Service

Type ‘Y’ for Yes to Install Alfresco Community as a service on you Linux server. This will be automatically starting its service every time the machine is started.

alfresco as a service

Warning:
You might need to ignore the following Warning by pressing the “Enter” key to continue if you are using less than the recommended amount of RAM.

—————————————————————————-
Warning!

This environment is not configured optimally for Alfresco – please carefully
review this list before continuing.

While these issues will not prevent Alfresco from functioning, some product
features may be unavailable, or the system may not perform optimally.

Insufficient system RAM (4.0GB+): 3.69GB
Press [Enter] to continue:

—————————————————————————-

7) Starting Setup

Your Alfresco Setup is now ready to begin installing Alfresco Community on your Linux server. Press the ‘Y’ key to continue and wait while Setup installs Alfresco Community on your system. After taking few minutes depending upon your network speed the setup will be finished after installing Alfresco Community. Type ‘Y’ or ‘n’ if you don’t want to view Readme file.

completeing the installation

8) Setup Alfresco Share

This one is the last setup to complete the installation, just hit the ‘y’ key to launch Alfresco Community Share. After this you will that PostgreSQL and Tomcat services will be starts as shown below.

Launch share

The Alfresco server is launched automatically as a service called alfresco. This service is comprises of the “postgresql” and “Tomcat Server”.

9) Starting Alfresco Services Manually

If you did not automatically launch Alfresco at the end of the setup wizard, to start Alfresco, you need to start all the services manually. Use the following commands to stop and start alfresco services on your CentOS 7 server.

[root@alfresco alfresco-5.0.d]# ./alfresco.sh stop

[root@alfresco alfresco-5.0.d]# ./alfresco.sh start

Alfresco services

10) Firewall Access

If you are working under your restricted environment with firewall enabled. Then make sure to allow the following port in your system firewall as well any external firewall and keep. If you find any issue while accessing Alfresco then make sure that your “SELinux” is not permitting it. You can set it to “Permissiove” for the time being.

For Tomcat Server Port:

# firewall-cmd –permanent –zone=public –add-port=8080/tcp

Tomcat Shutdown Port:

# firewall-cmd –permanent –zone=public –add-port=8005/tcp

Tomcat SSL Port:

# firewall-cmd –permanent –zone=public –add-port=8443/tcp

Tomcat AJP Port:

# firewall-cmd –permanent –zone=public –add-port=8009/tcp

Then run the command to reload your firewall and check if you can see the newly added rules in your firewall.

[root@alfresco ~]# firewall-cmd –reload

[root@alfresco ~]# iptables -L -n -v

To configure your SELinux you can use below commands.

For Permissive:

# setenfroce 0

For Inforcing:

# setenforce 1

Firewall rules

Access to Alfresco Dashboard

Once your alfresco services are up and running, then open your web browser using port 8080 and Log on to Alfresco as the admin user. Enter the password that you have specified in the Admin Password window during the wizard.

http://your_servers_ip:8080/share

Alfresco Login

Upon successful login credentials you be greeted to your dashboard, Administrator account. The personal dashboard shows you what’s going on in the sites you belong to. Learn to see what you can do with Alfresco by watching a video tutorial available on your dashboard. Or start create a new site to share content with other site members.

Alfresco Dashboard

Conclusion

Welcome to your new start with Alfresco, there’s never an end in learning. Hope you have enjoyed this article. Now start using Alfresco whether you are using Alfresco offers a fully fledged free version to test and it has an opensource model which will allow for the development of a “best of breed” application. Alfresco offers integration into MS Office Alfresco provides access via CIFs protocol to provide a familiar environment for new users. You can simplify the content control required to meet government regulations, corporate policies and audit requirements etc. Let’s get back to you with awesome articles and don’t forget to comment us back, Cheers.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to compile ngx_pagespeed into Nginx on CentOS 7

$
0
0

ngx_pagespeed is an Nginx module that allows you to automatically optimize the resources of your web pages, it can setup a bunch of really cool cache rules to reduce the bandwidth used across the network, minify & combine elements to reduce the size of the files, optimize images, photos and much more to make your websites blazing fast.

How can I add mod_pagespeed into Nginx on CentOS 7?

If you compiled and installed Nginx from source, then it’s your lucky day because you will have to configure and build Nginx again, it will be really easy. And if you installed Nginx from a binary package like RPM, then you will have to remove it and install from source, but don’t worry, we will guide you during the entire process, it’s easy if you do it carefully.

Requirements

Let’s install some package requirements before we begin.

yum install gcc-c++ pcre-devel zlib-devel make unzip

Get your current Nginx configuration by typing:

nginx -V

This will provide you the current configuration of your Nginx server. The most important options are after “configure arguments:”.

Example:

[root@scalescale.com:~]nginx -V
nginx version: nginx/1.8.0
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_spdy_module --with-cc-opt='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'

Create a backup of your init.d script

cp /etc/init.d/nginx /etc/init.d/nginx.bak

Create a backup of your Nginx configuration files

rsync -avpr /etc/nginx /etc/nginx.bak --exclude="logs"

Download ngx_pagespeed module

cd
NPS_VERSION=1.9.32.10
wget https://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.zip
unzip release-${NPS_VERSION}-beta.zip
cd ngx_pagespeed-release-${NPS_VERSION}-beta/
wget https://dl.google.com/dl/page-speed/psol/${NPS_VERSION}.tar.gz
tar -xzvf ${NPS_VERSION}.tar.gz # extracts to psol/

Download and build Nginx with support for PageSpeed

cd
# check http://nginx.org/en/download.html for the latest version
NGINX_VERSION=1.8.0
wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
tar -xvzf nginx-${NGINX_VERSION}.tar.gz
cd nginx-${NGINX_VERSION}/
./configure your_previous_nginx_config_goes_here--add-module=$HOME/ngx_pagespeed-release-${NPS_VERSION}-beta

If you are running a 32-bit userland with a 64-bit kernel, you will have build a 32 bit version of pagespeed instead:

setarch i686 ./configure --add-module=$HOME/ngx_pagespeed-release-${NPS_VERSION}-beta

A full example of the ./configure command adding the ngx_pagespeed module would be:

./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_spdy_module --with-cc-opt='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --add-module=$HOME/ngx_pagespeed-release-${NPS_VERSION}-beta

Remove Nginx binary package

This will cause you 1 minute of downtime, or less, depending on how powerful your CPU is. We will now remove Nginx RPM package because it may create conflicts with the source package that we will install later.

yum remove nginx

Install Nginx from source

Just run make and make install from the previous directory where you were

make
make install

Restore init.d files and Nginx configuration files

mv /etc/init.d/nginx.bak /etc/init.d/nginx
cp /etc/nginx.bak/nginx/nginx.conf /etc/nginx/ -fv
cp /etc/nginx.bak/nginx/conf.d/* /etc/nginx/conf.d/* -fv
chkconfig nginx on
service nginx restart

And you are done, now you have a full Nginx package compiled from scratch with ngx_pagespeed support.

How can I use ngx_pagespeed?

First, let’s create the ngx_pagespeed_cache directory, and set the right owner to avoid writing issues when you are using the ngx_pagespeed module:

mkdir /var/ngx_pagespeed_cache
chown nginx.nginx /var/ngx_pagespeed_cache

In order t activate pagespeed, you will have to add a few lines to your nginx.conf file or other include files that you may use. Just add this into every server block where you want PageSpeed enabled:

pagespeed on;
pagespeed FileCachePath /var/ngx_pagespeed_cache;

# Ensure requests for pagespeed optimized resources go to the pagespeed handler
# and no extraneous headers get set.
location ~ ".pagespeed.([a-z].)?[a-z]{2}.[^.]{10}.[^.]+" {
add_header "" "";
}
location ~ "^/pagespeed_static/" { }
location ~ "^/ngx_pagespeed_beacon$" { }

After done, reload Nginx to apply changes:

service nginx reload

Now PageSpeed is active, but the hard part starts now, and that is the configuration of the rules. You will have to read the PageSpeed Configuration Documents and start learning which rule is right for your websites and applications: read more

How can I disable PageSpeed Module?

If you ever need to disable ngx_pagespeed then you can disable it easily, edit your nginx.conf file and set:

pagespeed off;

Reload Nginx to apply the changes:

service nginx reload

Conclusion

At this time you should have successfully installed Nginx from source with ngx_pagespeed module fully working. Now it’s up to you to configure it and tune it to get your site speed and performance into the next direction. The only disadvantage from this tutorial is the fact that you will have to update your Nginx installation manually (configuring, making and installing) each time there is a new Nginx version.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Install VestaCP on CentOS 7

$
0
0

How to Install VestaCP on CentOS 7

VestaCP is a Free Open Source Control panel for server systems. It can help ease the burden of common system administration tasks such as website creation, database deployment and management, and more. This guide will help you get up and running with VestaCP on your CentOS. This product must be installed on a freshly deployed, CentOS 7 Server. These instructions should be performed as the “root” user via SSH.

DNS Prerequisites

VestaCP includes options for hosting your own DNS services. If you plan to use a domain name for your nameservers that you will also be hosting DNS services for, then you’ll need to ask your domain name registrar to create DNS glue records based on your server’IP addresses before proceeding.

Install VestaCP

Log into your server as the “root” user via SSH to its IP address (found on the “Remote Access” tab in the server Manager).

  1. Paying attention to setting the hostname, updating the system, and setting the timezone.
  2. Issue the following command to download and install VestaCP:
    cd /temp/
    curl -O http://vestacp.com/pub/vst-install.sh
  1. Run the installer:
    bash vst-install.sh

    Please note, the installation process may take a long time to complete. Once it’s finished, you may access VestaCP at https://12.34.56.78:8083 (replace 12.34.56.78 with your server’s IP address). If your browser displays a warning message like the one below, you can ignore and continue for now.

    A browser warning for an untrusted certificate.

  2. Login with the username “admin” and password displayed in ssh.

Configure VestaCP

  1. Once you’ve logged into VestaCP, I suggest changing your Password. Click on Admin in the top right corner Once your done, click save at the bottom.

Note:

From here you can also change your email address, your hosting package, and other details. I suggest if your hosting your DNS services, to go ahead and put in your default nameservers at the bottom.

Creating your first Domain

  1. Click on Web and I suggest deleting any web domains listed as we’ll be adding them and setting up DNS.
  2. Click on the Green +Add Web Domain button.
  3. Type in yourdomain.tld (replacing with your actual domain).
  4. Select your Servers external IP address from the drop down.
  5. Click on Advanced options and ensure the alias is something similar to www.yourdomain.tld.
  6. Click Add at the bottom of that page.

Setting our DNS

  1. Click on Edit for yourdomain.tld.
  2. Type in your IPv4 address or make sure it’s correct.
  3. In the Template field make sure it’s set to child-ns.
  4. Leave Expiration alone unless you know what your doing.
  5. In SOA field, make sure your ns1 is correct (ex. ns1.yourdomain.tld).
  6. Leave TTL alone.
  7. Click Save.

Note:

By setting the Template field to child-ns it’s telling the system its the template for vanity name servers or our own name servers.

Checking DNS records

  1. Click on DNS.
  2. Click on List next to yourdomain.tld.

Note:

If you had the DNS box checked when you created the Domain, then most of the records will have been created automatically. Minor adjustments may need to be made, which is why we’re looking at the DNS records.

Adding our hostname to DNS

  1. Click on DNS.
  2. Click on List next to yourdomain.tld.
  3. Click green +Add DNS record.
  4. In the Record field add the beginning of your hostname. So if your hostname is sv.yourdomain.tld, you’d add sv.
  5. Type is A.
  6. IP or value is your server IP address.
  7. You can change the priority if you know what your doing, I suggest leaving it blank.
  8. Click Add.

Creating Email Accounts

  1. Click on Mail.
  2. Find yourdomain.tld.
  3. Click on List accounts.
  4. Click the green +Add Mail Account.

Note:

The Domain will be listed but grayed out to prevent adding the email to the wrong domain if you have more than 1 domain. Also, as you type in the information, on the right hand side it will display settings for Outlook, Outlook Express,Thunderbird, or your Email Client.

Adding Databases

  1. Click on DB.
  2. Click the green +Add Database.
  3. Fill out the Database.
  4. Fill out the User.
  5. Fill out the Password or click on generate.
  6. Select the type (the default is mysql only).
  7. Leave the Host field alone as it defaults to localhost.
  8. Select your Charset or leave it at default utf8.
  9. You can have the system email the database credientials to a specified email.
  10. Click on add

Adding Cron Tasks

  1. Click on Cron.
  2. Fill out the Minute, Hour, Day, Month, and Day of week.
  3. Input your command.
  4. Click add.

For example, if we wanted to run a php script everyday: 1. Minute would be * 2. Hour would be * 3. Day would be 1 4. Month would be * 5. Day of week would be * 6. Command would be for example /home/user/public_html/file.php

Note:

VestaCP automatically emails the output of the cronjobs to the address that has been setup for the admin account.

Advanced Settings

Adding IPv6 to DNS

  1. Click on DNS.
  2. Click on List Records for yourdomain.tld.
  3. Click on +Add Record.
  4. In the Record field type in @.
  5. In the Type, select AAAA (thats 4 A’s).
  6. In the IP or Value field add your IPv6.
  7. Click Add at the bottom.

Changing Hosting Template for Domain

  1. Click on Web.
  2. Click on Edit for yourdomain.tld.
  3. Scroll down to find Template.
  4. Click Save.

That’s it! VestaCP should now be properly configured on your server. Please allow 24-48 hours for DNS changes to propagate.

For support please visit VestaCP forums




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Install Apache ServiceMix on CentOS 7

$
0
0

Hi, welcome to our today’s article on Apache ServiceMix. Let me give you an overview of what ServiceMix is and what you can do with it. Apache ServiceMix is a runtime container for service-oriented architecture components, web services or legacy system connectivity services. Apache ServiceMix is an enterprise-class open-source distributed enterprise service bus (ESB) based on the SOA model released under the Apache license. It is one of the most mature, open-source implementations of an enterprise service bus and an Apache top-level project. Apache ServiceMix provides an OSGi container in which we can run, configure and manage Camel and ActiveMQ instances and you can explore the other services that it can provide.

So, in the mean time, we’ll be showing thine stall ServiceMix on CentOS 7 machine to deploy some basic integration routes and extend the container with some additional features.

System Requirements

Before starting the installation, we need to prepare our CentOS 7 server with some basic requirements. Atleast 200 MB of free disk space is required for the Apache, Karaf and few other binary distributions.

Let’s connect to your server using the sudo or root user credentials and perform the following tasks,

OS Update

Run the command as given below to update your Operating system with latest updates and missing patches.

# yum update

Java Setup

For running Apache ServiceMix itself, you’ll need Java Runtime Environment (JRE) 1.6.x (Java 6) or greater. Make sure that the JAVA_HOME environment variable must be set to the directory where the Java runtime is installed.

You check the installed version of Java and current settings of your JAVA_HOME and PATH variables using the below commands.

[root@servicemix ~]# java -version
java version “1.7.0_91”

[root@servicemix ~]# echo $JAVA_HOME
/usr/lib/jvm/jre

[root@servicemix ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin

Apache Maven

Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information. Run the below command get it install on your server before installing Apache ServiceMix.

# ]# wget http://www.eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz

Now extract this to the ‘/usr/local/’ directory using the below command.

# tar -zxvf apache-maven-3.3.9-bin.tar.gz -C /usr/local/

Now change directory to ‘/usr/local/’ folder and create a soft link with below command.

#cd /usr/local/

# ln -s apache-maven-3.3.9 maven

Now we will setup the Maven path system-wide by creating a new file and adding the parameters in as shown below.

# vim /etc/profile.d/maven.sh
export M2_HOME=/usr/local/maven
export PATH=${M2_HOME}/bin:${PATH}

After saving file you have to logout and then login back to implement environment variables. Then to verify successful installation of maven, check the version of maven by using the below command.

# mvn -version

maven version

Download Apache ServiceMix

After setting up the Java, you need to download the Apache ServiceMix by choosing the required package.

download servicemix

Copy the source link address and download it using the wget command in your server.

]# wget http://archive.apache.org/dist/servicemix/servicemix-4/4.5.3/apache-servicemix-4.5.3.tar.gz

Use below command to extract the package.

# tar -zxvf apache-servicemix-4.5.3.tar.gz

Installing Apache ServiceMix

Change your directory to the ‘bin’ directory of your extracted package and execute the the following command to start installation of ServiceMix as shown below.

[root@servicemix ~]# cd apache-servicemix-4.5.3/bin/
[root@servicemix bin]# ./servicemix

installing servicemix

Using Apache ServiceMix Console

We have successfully installed and started Apache ServiceMix. Now we are going to show you that how you can manage your ServiceMix instance, add and remove bundles and install optional features.

Let run the following command to get a list of all bundles currently installed on your server.

karaf@root> osgi:list

installed bundles

If you’re looking for something specific in the list, you can use unix-like pipes and utilities to help you. Just for example run the below command to see all Apache related bundles in the list.

karaf@root> osgi:list | grep Apache

Apache Bundles

Many of the applications you write will have some form of log output. To look at the message in the log file, you can us the log:diplay command.

karaf@root> log:display

karaf@root> log:display-exception

Optional Features

You can open the list of features using ‘features:list’ command. The overview shows you whether or not the feature is currently installed, the version and the name of the feature as shown below.

karaf@root> features:list

list features

To get the web console installed in ServiceMix, install the feature from your console using the command as shown below.

karaf@root> features:install webconsole

Now verify that the feature is marked installed in the overview by executing the below command to grep the webconsole.

karaf@root> features:install webconsole

installing webconsole

Now you will be able to point your browser to http://localhost:8181/system/console and login with user ‘smx’ and password ‘smx’ to access the web console.

Apache Karaft WebConsole

From the webconsole, now you can start and stop bundles, configure settings, install optional features or view system information all from your web console as shown below.

managing from console

Conclusion

At the end of this article we have learned the one of the most mature, open-source implementations of an enterprise service bus and an Apache top-level project that is Apache ServiceMix. ServiceMix for sure is not the first choice for application development, in terms of desktop software. But if you have to deal with more complex environments, where different applications are involved and need to interact with each other, an enterprise service bus can alleviate the burden of dealing with such systems to a great extent.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

How to Install dotProject – Project Management Tool in CentOS 7

$
0
0

dotProject is a free and open source web-based multi-user and multi-language project management application which is designed to provide project layout and control functions. It aims to provide the project manager with a web based efficient tool for managing tasks, schedules, communication and sharing easily. dotProject has a wide range of application and environment from small offices to big companies, government departments, schools and more. This project is completely managed, maintained, developed and supported by a volunteer group and by the users themselves. In this tutorial, we’ll learn how we can setup dotProject in our machine running CentOS 7 linux distribution.

Installing LAMP Stack

First of all, we’ll need to install a complete LAMP Stack in our CentOS 7 machine. A LAMP stack is the combination of Apache Web Server, MySQL/MariaDB Database server and PHP modules installed and configured together in a linux machine. In order to setup, we’ll need to run the following yum command as yum is the default package manager in CentOS 7.

# yum update
# yum install httpd mariadb-server mariadb php php-gd php-mysql php-curl php-ldap php-xsl php-xml php-cli php-mbstring php-pear unzip

Configuring MariaDB server

At first, as we haven’t set any root password for our MariaDB server, we’ll need to configure a root password for it. And after its done, we’ll move forward towards the creation of a database user and a database so that dotProject can be used to store its data. To configure MariaDB, we’ll first need to start our MariaDB server by running the following command.

# systemctl start mariadb

After done, we’ll configure MariaDB and assign a root password, we’ll need to run the following command.

# mysql_secure_installation

This will ask us to enter the password for root but as we haven’t set any password before and its our first time we’ve installed mariadb, we’ll simply press enter and go further. Then, we’ll be asked to set root password, here we’ll hit Y and enter our password for root of MariaDB. Then, we’ll simply hit enter to set the default values for the further configurations.
….
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on…
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
… Success!

installation should now be secure.
Thanks for using MariaDB!

Creating a MariaDB Database

Next, we’ll login to the MariaDB command prompt as root. Here, we’ll need to enter the password of the MariaDB root account that we had set above.

# mysql -u root -p

After we’re logged in into the mariadb command prompt, we’ll gonna create the database.

> CREATE DATABASE dotprojectdb;
> CREATE USER ‘dotprojectuser’@’localhost’ IDENTIFIED BY ‘Pa$$worD’;
> GRANT ALL PRIVILEGES ON dotprojectdb.* TO ‘dotprojectuser’@’localhost’;
> FLUSH PRIVILEGES;
> EXIT;

Creating Database Mysql

Finally, we’ve successfully created a database named dotprojectdb with username dotprojectuser and password as Pa$$worD .

Note: It is strongly recommended to replace the above variables as your desire for the security issue.

Setting PHP configuration

Then, we’ll go for configuring some settings in our PHP configuration which is located inside /etc/php.ini file. Here, we’ll need to open the file using a text editor and edit it.

# nano /etc/php.ini

Once its opened using the text editor, we’ll need to append the file with the configurations shown below.

memory_limit 128M
register_globals = Off
session.auto_start = 1
session.use_trans_sid = 0
date.timezone =America/New_York

Configuring Apache Web Server

In our CentOS machine, we’ll create a file named dotproject.conf under /etc/httpd/conf.d/ directory using a text editor.

# nano /etc/httpd/conf.d/dotproject.conf

Then, we’ll gonna add the following lines of configuration into the file.

<VirtualHost *:80>
ServerAdmin info@dotproject.linoxide.com
DocumentRoot /var/www/dotproject/
ServerName dotproject.linoxide.com
ServerAlias www.dotproject.linoxide.com
<Directory /var/www/dotproject/>
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/dotproject.linoxide.com-error_log
CustomLog /var/log/httpd/dotproject.linoxide.com-access_log common
</VirtualHost>

Configuring dotProject Apache Config

Once done, we’ll simply save the file and exit the editor.

Enabling Services

Now, we’ll gonna restart our Apache web server and MariaDB database server by executing the following systemctl command.

# systemctl restart httpd mariadb

Then, we’ll enable them to start automatically in every system boot.

# systemctl enable httpd mariadb

Downloading DotProject

We’ll now download the latest release of DotProject ie version 2.1.8 during the time of writing this article. We can download the latest release from the official sourceforge download page but as we’re gonna download it via console or terminal, we’ll simply get the link from the sourcefoge site and download it using the following wget command.

# cd /tmp
# wget http://downloads.sourceforge.net/project/dotproject/dotproject/dotProject%20Version%202.1.8/dotproject-2.1.8.tar.gz

–2016-01-19 14:49:08– http://downloads.sourceforge.net/project/dotproject/dotproject/dotProject%20Version%202.1.8/dotproject-2.1.8.tar.gz
Resolving downloads.sourceforge.net (downloads.sourceforge.net)… 216.34.181.59

Resolving ncu.dl.sourceforge.net (ncu.dl.sourceforge.net)… 140.115.17.45
Connecting to ncu.dl.sourceforge.net (ncu.dl.sourceforge.net)|140.115.17.45|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 4529234 (4.3M) [application/x-gzip]
Saving to: ‘dotproject-2.1.8.tar.gz’
100%[=============================>] 4,529,234 2.39MB/s in 1.8s
2016-01-19 14:49:11 (2.39 MB/s) – ‘dotproject-2.1.8.tar.gz’ saved [4529234/4529234]

Once the download is completed, we’ll simply extract the tarball by running the following tar command.

# tar -xzf dotproject-2.1.8.tar.gz

We’ll then move the extracted files and directories to /var/www/dotproject/ directory as we have defined in the above apache configuration.

# mv dotproject /var/www/dotproject

Fixing Ownership

After moving the files and directories, we’ll now need to change the ownership of the directory to apache user so that apache process owner can have full read/write access over the dotproject directory.

# cd /var/www/dotproject/
# sudo chown -R apache: dotproject/

Allowing Firewall

To expose our dotProject site on the internet or inside the same network, we’ll need to allow port 80 from the firewall program. As CentOS 7 is shipped with systemd as the default init system and we’ll have firewalld installed as a firewall solution. To allow port 80 or http service, we’ll need to run the following commands.

# firewall-cmd –permanent –add-service=http
# firewall-cmd –reload

Web Installation

We’ll now go for the web based installation of dotProject. To do so, we’ll need to point our web browser to our server’s ip address or domain name as http://ip-address/ or http://domain.com/ according to the configuration. Here, in this tutorial, we’ll gonna point the url of our web browser to http://dotproject.linoxide.com/ and start the installation process as shown below.

dotProject Installer Requirements

In the start page, we’ll see that all the dependencies and settings required for the installation of dotProject has been successfully installed and configure. To start the installation, we’ll need to click on the button “Start Installation“. After clicking on that, we’ll see a page where we’ll be asked to enter the required information for logging into the database server.

Database Settings Installer

Here, as we’re hosting the database server in the same server where we’re installing dotProject, we’ll assign Database Host Name as localhost, then, we’ll simply enter the Database name, username and password that we had assigned in the above step while creating the database. Once done, we’ll click on “install db and write cfg” button which will setup the database and creates a configuration file named config.php under /var/www/dotproject/includes/ directory.

dotProject Installed

Once done, we’ll see the log generated by the installer and green notifications that our database installation and config file creation has been done successfully. Then, we’ll click on “Login and Configure the dotProject System Environment” link which will ask us the login credentials required for accessing the Admin panel. The default username and password for a fresh installation of dotProject is admin and passwd respectively.

dotProject Admin Login

After we’ve logged in, we’ll see the following page as our dotProject Administration Panel. It is strongly recommended to change the password of administrator as soon as the first login is made.

dotProject Admin Panel

To change the password of the admin user, we’ll need to goto User Management page by navigating to User Admin in the navigation bar. Then, we’ll need to select admin as the user and click on change password link which will popup another small window where we’ll need to enter our old password and new password to be kept.

Conclusion

dotProject has been finally setup and configured successfully in our machine running CentOS 7. It is an awesome web based project management framework that includes modules for companies, projects, tasks (with Gantt charts), forums, files, calendar, contacts, helpdesk, multi-language support, module permissions and themes with good time tracking feature. If you have any questions, suggestions, feedback please write them in the comment box below so that we can improve or update our contents. Thank you ! Enjoy :-)




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

7 new OpenStack guides and tips

$
0
0

Learning how to deploy and maintain OpenStack can be difficult, even for seasoned IT professionals. The number of things you must keep up with seems to grow every day.

Fortunately, there are tons of resources out there to help you along the way, whether you are a beginner or a cloud guru. Between the official documentation, IRC channels, books, and a number of training options available to you, as well as the number of community-created OpenStack tutorials, help is never too far away.

On Opensource.com, every month we take a look back at the best tips, tricks, and tutorials published to the web to bring you some of the most useful. Here are some of the best guides and hints we found last month.

  • First up, let’s take a look at TripleO, an OpenStack deployment tool. Adam Young takes us through the basic steps of his experimentation with getting started with TripleO, by deploying RDO on CentOS 7.1.
  • If you’re looking to deploy applications on top of OpenStack, it can help to have some simple examples at hand. Why not take a look at some simple Heat templates? Cloudwatt gives us new examples this month including MediaWiki, Minecraft, and Zabbix.
  • If you work in OpenStack development, you know that it can be difficult to reproduce bugs. OpenStack has so many moving parts that replicating the exact circumstances that produced your error can be a non-trivial task. In this blog post, learn some best practices in debugging hard-to-find test failures through an example with Glance.
  • Next, explore a new feature from the Liberty release designed to make it easier to share Neutron networking resources between projects and tenants in an OpenStack deployment, Role Based Access Controls (RBAC). Learn the basic commands necessary to manage RBAC policies and how to set up basic controls in your cloud deployment.
  • Another new feature of the Liberty release is on the storage side: the ability to back up in-use volumes in Cinder. In this short article, learn more about how the procedure works and how Cinder manages the process.
  • Also relatively new, from the Kilo release, is the introduction of ML2 port security into Neutron, a useful feature for Network Functions Virtualization. To learn more about how ML2 port security works and how to enable it, see this short walkthrough from Kimi Zhang.
  • Finally, for anyone trying to work out bugs in Neutron network creation using pdb (the Python debugger), this quick step-by-step post from Arie Bregman will get you past some common issues.

Looking for more? Be sure to check out our OpenStack tutorials collection for over a hundred additional resources. And if you’ve got another suggestion which ought to be on our next list, be sure to let us know in the comments.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back

Install Laravel on CentOS 7

$
0
0

laravelLaravel is a free, open-source PHP web application framework with expressive, elegant syntax. It is intended for the development of web applications following the model–view–controller (MVC) architectural pattern.

Some of the features of Laravel are a modular packaging system with a dedicated dependency manager, different ways for accessing relational databases, utilities that aid in application deployment and maintenance etc…

 

In this article we will install Laravel on a Centos 7 VPS.

REQUIREMENTS

We will be using our SSD 1 Linux VPS Hosting plan for this tutorial.

Log in to your server via SSH:

# ssh root@server_ip

UPDATE THE SYSTEM

Make sure your server is fully up to date:

# yum update

Before proceeding, let’s install Apache, MariaDB and PHP 5.6 along with it’s needed dependencies. First, install Remi and Webtatic repositories with the below commands:

# yum install epel-release

# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

You can now install LAMP (Linux Apache, MariaDB & PHP):

# yum install httpd php56w php56w-mysql mariadb-server php56w-mcrypt php56w-dom php56w-mbstring unzip nano

Start MariaDB and Apache, then enable them to start on boot:

# systemctl start mariadb

# systemctl start httpd

# systemctl enable mariadb

# systemctl enable httpd

Next, install Composer which is the tool for dependency management in PHP.

# curl-k -sS https://getcomposer.org/installer | php

Once Composer is installed, you need to move it so that Composer can be available within your machine path. To check your available path locations type the following:

# echo $PATH

The output will provide you with the path locations. Put composer in the /usr/local/bin/ directory:

# mv composer.phar /usr/local/bin/composer

Navigate into a directory where you will download Laravel. We are using /opt :

# cd /opt

Download Laravel and unzip the archive:

# wget https://github.com/laravel/laravel/archive/v4.2.11.zip

# unzip v4.2.11.zip

Then create a directory for your website and move the Laravel installation there:

# mkdir /var/www/html/your_site

# mv laravel-4.2.11/ /var/www/html/your_site

# cd /var/www/html/your_site

Move the files/directories from the laravel-4.2.11 unpacked archive into your website directory and then delete laravel-4.2.11:

# mv laravel-4.2.11/* .

# mv laravel-4.2.11/.* .

# rmdir laravel-4.2.11/

Issue the below command to download and install all dependencies. This can take some time, so feel free to make yourself a cup of tea:

# composer install

Once the installation is completed, set the ownership of your website files/directories to apache:

# chown apache: -R /var/www/html/your_site/

Now, create a virtual host directive for your website. Open a file called let’s say your_site.conf with your favorite text editor. We are using nano:

# nano /etc/httpd/conf.d/your_site.conf

Paste the following:

<VirtualHost *:80>
    DocumentRoot /var/www/html/your_site/public
    ServerName your_domain

    <Directory /var/www/html/your_site/>
        AllowOverride All
    </Directory>
</VirtualHost>

Don’t forget to replace your_domain with your actual domain.

Restart Apache so the changes can take effect:

# systemctl restart httpd

With that out of the way, open your web browser and navigate to http://your_domain to access the Laravel website.

Congratulations, you have successfully installed Laravel on your CentOS 7 VPS.




FacebookTwitterDiggStumbleUponGoogle Plus



RSS Feed Powered by MaxBlogPress Bring My Blog Visitors Back
Viewing all 4268 articles
Browse latest View live