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
Author: thekubeadmin
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
Understanding and writing ansible playbook
Ansible playbooks are written in YAML language. #vi ngix-install.yml So create with .yml or .yaml extension YAML files begins with --- --- next immediate line starts with - . Name is optional -name: hosts expects all or group hosts: all Do you want to become a root on target server use become become: true what … Continue reading Understanding and writing ansible playbook
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
How to change time zone for a domain using .htaccess
Open your .htaccess file and add the following line: SetEnv TZ location where location is the specific timezone you want to define. A list of Supported Timezones can be found here: http://www.php.net/manual/en/timezones.php
Apache: No space left on device: Couldn’t create accept lock
Within the Apache error logs, this message was appearing over and over: [emerg] (28)No space left on device: Couldn't create accept lock 1. Check the disk space 2. Review filesystem quotas 3. Clear out the active semaphores # ipcs -s If you see a list of semaphores, Apache has not cleaned up after itself, and … Continue reading Apache: No space left on device: Couldn’t create accept lock
database showing ??? ??? marks for Russian/Persian chars
There was issue that I cant read anything written in Russian language in my database through PhpMyAdmin. Fix init-connect=SET NAMES binary to /etc/my.cnf under [mysqld] That should fix the display problems. Note: Make sure to take database backup before the edit.
Logic behind AWS free usage tier
Let me explain about the AWS free usage tier. EBS devices are block devices. This means the service does not know how much data we actually store on them, it only knows how much storage space we have allocated. So the result of df -h doesn't matter. Actually we are only using 16GB of storage … Continue reading Logic behind AWS free usage tier
Issue : no input file specified
Problem was with .htaccess file root@server [/home/bunny/public_html/bunnytech]# cat .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] RewriteBase /bunnytech/ Fix just changed the line RewriteRule ^(.*)$ index.php?/$1 [L]