<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Server &#8211; bunyam.in</title>
	<atom:link href="https://bunyam.in/category/software/server/feed/" rel="self" type="application/rss+xml" />
	<link>https://bunyam.in</link>
	<description>Easy Solutions</description>
	<lastBuildDate>Wed, 16 Apr 2025 11:06:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>
	<item>
		<title>How to install Redmine Properly on centos 7.5</title>
		<link>https://bunyam.in/how-to-install-redmine-properly-on-centos-7-5/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 16 Oct 2019 08:37:27 +0000</pubDate>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Server]]></category>
		<guid isPermaLink="false">https://bunyam.in/?p=67</guid>

					<description><![CDATA[Since 8 years i work in several companies, and almost every company using redmine for reasons. Recently i was looking for installation guide on internet but almost every documentation is outdated even on redmine.org Lets start At first you need to install centos 7.5 clearly, minimal configuration is recommended Update... <a href="https://bunyam.in/how-to-install-redmine-properly-on-centos-7-5/">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[
<p>Since 8 years i work in several companies, and almost every company using redmine for reasons.</p>



<p>Recently i was looking for installation guide on internet but almost every documentation is outdated even on redmine.org</p>



<p>Lets start</p>



<p><strong>At first you need to install centos 7.5 clearly, minimal configuration is recommended</strong></p>



<h2 class="wp-block-heading">Update the system and install necessary packages</h2>



<pre class="wp-block-preformatted">yum update
yum install curl zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel ftp wget ImageMagick-devel gcc-c++ patch readline readline-devel zlib libyaml-devel libffi-devel make bzip2 autoconf automake libtool bison subversion sqlite-devel</pre>



<h2 class="wp-block-heading">Installing Mariadb</h2>



<p>To install the MariaDB package, run:</p>



<pre class="wp-block-code"><code>yum install mariadb-server</code></pre>



<p>After this command first-run-installation shoud done by run:</p>



<pre class="wp-block-code"><code>mysql_secure_installation</code></pre>



<p>Last step for database:</p>



<pre class="wp-block-code"><code>mysql -uroot -p
CREATE DATABASE redmine CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost' IDENTIFIED BY 'redmine_passwd';
FLUSH PRIVILEGES;
exit;</code></pre>



<h2 class="wp-block-heading">Redmine user</h2>



<p>To run redmine , you need to add new user for redmine</p>



<pre class="wp-block-code"><code> sudo adduser --home /opt/redmine --shell /bin/bash redmine
sudo install -d -m 755 -o redmine -g redmine /opt/redmine</code></pre>



<p>Impersonalize as redmine:</p>



<pre class="wp-block-code"><code>sudo su - redmine</code></pre>



<h2 class="wp-block-heading">Installing Ruby using RVM</h2>



<pre class="wp-block-code"><code>curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -sSL https://get.rvm.io | bash -s stable --ruby</code></pre>



<p>Lets start installed rvm</p>



<pre class="wp-block-code"><code>source ~/.rvm/scripts/rvm
rvm --default use ruby</code></pre>



<p>To check for everything is fine:</p>



<pre class="wp-block-code"><code>ruby --version
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]</code></pre>



<h2 class="wp-block-heading">Installing Redmine</h2>



<p>Following codes are install redmine on home state eg(opt/home) and prepeare config files for you.</p>



<pre class="wp-block-code"><code>cd &amp;&amp; svn co http://svn.redmine.org/redmine/branches/3.4-stable redmine
mkdir -p ./redmine/tmp/pids ./redmine/public/plugin_assets
cp ./redmine/config/configuration.yml.example ./redmine/config/configuration.yml
cp ./redmine/config/database.yml.example ./redmine/config/database.yml</code></pre>



<p>Database.yml file should be filled as given password or root password from mariadb.</p>



<pre class="wp-block-code"><code>vi nsno</code></pre>



<pre class="wp-block-code"><code>production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "redmine_passwd"
  encoding: utf8
</code></pre>



<h2 class="wp-block-heading">Installing gems</h2>



<pre class="wp-block-code"><code>cd /opt/redmine/redmine
echo "gem 'puma'" >> Gemfile.local
echo "gem: --no-ri --no-rdoc" >> ~/.gemrc 
gem install bundler
bundle install --without development test postgresql sqlite</code></pre>



<h2 class="wp-block-heading">Migrating and last touch</h2>



<pre class="wp-block-code"><code>rake generate_secret_token
RAILS_ENV=production rake db:migrate
RAILS_ENV=production REDMINE_LANG=en rake redmine:load_default_data</code></pre>



<h2 class="wp-block-heading">Puma installation and configuration</h2>



<p>Create a new configuration file as follows:</p>



<pre class="wp-block-code"><code>vim ./redmine/config/puma.rb</code></pre>



<pre class="wp-block-code"><code>#!/usr/bin/env puma

application_path = '/opt/redmine/redmine'
directory application_path
environment 'production'
daemonize true
pidfile "#{application_path}/tmp/pids/puma.pid"
state_path "#{application_path}/tmp/pids/puma.state"
stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
bind "tcp://0.0.0.0:5000"</code></pre>



<h2 class="wp-block-heading">Start Puma</h2>



<p>Start the puma server with :</p>



<pre class="wp-block-code"><code>cd /opt/redmine/redmine/ &amp;&amp; bundle exec puma --config config/puma.rb</code></pre>



<p>The output should be similar to the following:</p>



<pre class="wp-block-preformatted">Puma starting in single mode...
* Version 3.11.2 (ruby 2.4.1-p111), codename: Love Song
* Min threads: 0, max threads: 16
* Environment: production
* Daemonizing...
</pre>



<h2 class="wp-block-heading">Do not forget Stop firewall</h2>



<p>I prefer stop firewall at this phase, if you wish only allow port, to stop firewall </p>



<pre class="wp-block-code"><code>sudo firewall-cmd --state
sudo systemctl stop firewalld</code></pre>



<h2 class="wp-block-heading">Lets Test 1.2.3.</h2>



<p>Finally your can start your browser and access your new Redmine installation at: <code>http://your_server_ip:5000</code></p>



<p>Happy coding.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Disk Performance Test On Linux</title>
		<link>https://bunyam.in/disk-performance-test-on-linux/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 11 Mar 2017 21:44:44 +0000</pubDate>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Server]]></category>
		<guid isPermaLink="false">http://bunyam.in/?p=54</guid>

					<description><![CDATA[As all know disk performance may effect overall performance. Connection performance , ram , cpu have no means if disk perfomance gets low. For example all SQL queries have a weight for returning results for physical disk just as /tmp directory. We can make IO test for what is happening.... <a href="https://bunyam.in/disk-performance-test-on-linux/">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[<p>As all know disk performance may effect overall performance. Connection performance , ram , cpu have no means if disk perfomance gets low.<br />
For example all SQL queries have a weight for returning results for physical disk just as /tmp directory.<br />
We can make IO test for what is happening. <span id="more-54"></span><br />
Via SSH:<br />
<code>dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync</code></p>
<p>Do not forget:<br />
If test bytes are gets low, and you have single disk; your disk going to die soon,<br />
And if you get unstable results and you are using raid; check your disks status. Maybe one of your disk alredy died.</p>
<p>Happy coding.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
