Author: thekubeadmin

Install maven and integrate with jenkins in centos7

Create a directory named maven under /opt # mkdir /opt/maven Download maven from apache maven link in /opt/maven folder # wget http://mirrors.estointernet.in/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz Note : Always download from binary option. I had to spend hours to fix the issue after installing from source due to following error while mvn --version command Error: Could not find or … Continue reading Install maven and integrate with jenkins in centos7

Install jenkins in centos7

1.sudo yum install -y epel-release sudo yum -y update sudo yum install -y net-tools sudo yum install -y wget 2.sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key sudo yum install -y jenkins sudo yum install -y java-1.8 export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-1.el7_7.x86_64/ export PATH=$PATH:$JAVA_HOME sudo systemctl start jenkins.service sudo systemctl enable jenkins.service 3. Login to jenkins console … Continue reading Install jenkins in centos7

Create multiple vagrant machines in private network on your windows PC

I assume you have already installed vagrant and virtual box on your windows PC. This is the vagrant file I have used to create multiple vagrant centos7 box in my private network for testing purposes. I have used following configuration in Vagrant file # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do … Continue reading Create multiple vagrant machines in private network on your windows PC

codeigniter site inner links showing 403 forbidden access

The site was showing some error and I downgraded the PHP from 5.6 to 5.4. But only home page was loading. Added the following code in the .htaccess file to correct the issue. IfModule mod_rewrite.c RewriteEngine On #RewriteBase /your_project/ RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 … Continue reading codeigniter site inner links showing 403 forbidden access