<?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>Knowledge Base &#8211; VeriTeknik</title>
	<atom:link href="https://www.veriteknik.net.tr/en/category/knowledge_base/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.veriteknik.net.tr/en/</link>
	<description>VeriTeknik Bilişim &#124; VeriTeknik Bilişim</description>
	<lastBuildDate>Sat, 03 Jul 2021 16:20:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>How to Install AlmaLinux 8</title>
		<link>https://www.veriteknik.net.tr/en/how-to-install-almalinux-8/</link>
					<comments>https://www.veriteknik.net.tr/en/how-to-install-almalinux-8/#respond</comments>
		
		<dc:creator><![CDATA[Berk Atalay]]></dc:creator>
		<pubDate>Sat, 01 May 2021 13:32:52 +0000</pubDate>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Alma]]></category>
		<category><![CDATA[AlmaLinux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux tutorial]]></category>
		<guid isPermaLink="false">https://www.veriteknik.net.tr/?p=7780</guid>

					<description><![CDATA[<p>First of all, the stable version of AlmaLinux should be downloaded before starting the process. It can be found in the &#8220;Download ISOs&#8221; section of AlmaLinux&#8217;s official site . Minimal.iso = It contains minimum package that requires to a functional Linux system. Doesn’t contain GUI. Dvd.iso= It contains minimal packages plus some utility packages, basic [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/how-to-install-almalinux-8/">How to Install AlmaLinux 8</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p style="font-size:18px"><strong>First of all, the stable version of AlmaLinux should be downloaded before starting the process. It can be found in the &#8220;Download ISOs&#8221; section of AlmaLinux&#8217;s official site </strong>.</p>



<p></p>



<ul class="wp-block-list" style="font-size:18px"><li><strong>Minimal.iso</strong> = It contains minimum package that requires to a functional Linux system. Doesn’t contain GUI.</li></ul>



<ul class="wp-block-list" style="font-size:18px"><li><strong>Dvd.iso</strong>= It contains minimal packages plus some utility packages, basic development packages and contains GUI. It’s size is 3.7 GB that can fit in DVD.</li></ul>



<p></p>



<figure class="wp-block-image size-large is-style-default"><img fetchpriority="high" decoding="async" width="927" height="288" src="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/index-1.jpg" alt="" class="wp-image-7784" srcset="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/index-1.jpg 927w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/index-1-300x93.jpg 300w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/index-1-768x239.jpg 768w" sizes="(max-width: 927px) 100vw, 927px" /></figure>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:18px">Boot the system with the boot device and continue installation with selecting <strong>Install AlmaLinux 8</strong>.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="640" height="480" src="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/install.png" alt="" class="wp-image-7787" srcset="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/install.png 640w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/install-300x225.png 300w" sizes="(max-width: 640px) 100vw, 640px" /></figure>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:18px">Continue the installation with selecting the system language.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="800" height="600" src="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/language.png" alt="" class="wp-image-7789" srcset="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/language.png 800w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/language-300x225.png 300w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/language-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:18px">After choosing the system language, the setup page like the one below will appear.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="800" height="600" src="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/installation-page.png" alt="" class="wp-image-7794" srcset="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/installation-page.png 800w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/installation-page-300x225.png 300w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/installation-page-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:19px">The first thing to do is to set up the network. AlmaLinux needs an active internet connection to download base packages and other necessary files.</p>



<p style="font-size:18px">If connection can not be established with automatic <strong>dhcp</strong> settings, <strong>dhcp</strong> settings should be switched to <strong>manuel</strong> mode and <strong>ipv4</strong> settings should be arranged according to the user&#8217;s information.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="800" height="600" src="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/network.png" alt="" class="wp-image-7796" srcset="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/network.png 800w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/network-300x225.png 300w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/network-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:18px">Next step is setting the <strong>root password</strong>, <strong>keyboard layout</strong> , <strong>time-date</strong> and <strong>disk partitioning</strong>. After the root password is set, set up time, date and keyboard layout. Inside the disk partitioning settings , select the disk that is going to be used and then click the <strong>Done</strong> button.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="800" height="600" src="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/disk.png" alt="" class="wp-image-7800" srcset="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/disk.png 800w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/disk-300x225.png 300w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/disk-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:18px">Next, before clicking the <strong>Begin Installation</strong> button, it should be chosen which packages are going to be installed in the <strong>Software Selection</strong> section.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="800" height="600" src="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/alma-packages.png" alt="" class="wp-image-7802" srcset="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/alma-packages.png 800w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/alma-packages-300x225.png 300w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/alma-packages-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:18px">If everything has been set correctly, there should be no warnings under the sections. After the steps are completed, you can start your installation by clicking the <strong>Begin Installation</strong> button. A proper setup page is as follows.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="800" height="600" src="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/clear-isntal.png" alt="" class="wp-image-7804" srcset="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/clear-isntal.png 800w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/clear-isntal-300x225.png 300w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/clear-isntal-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:18px">After the installation is complete, it is important to download the basic <strong>network</strong> packages as well. These packages can be installed with a single command. Other essential packages can be added to this command.</p>



<p></p>



<p></p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># yum install vim bind-utils net-tools wget rsync netctl openssh-server dnsutils atop</pre>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:18px">If problems are encountered while installing <strong>atop</strong>, it should be downloaded with the <strong>wget</strong> command.</p>



<p></p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># wget http://www.atoptool.nl/download/atop-2.1-1.i586.rpm</pre>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:18px">After the download process is completed, it can be seen which group packages of <strong>AlmaLinux </strong>are installed on the system with the following command and the missing ones should be downloaded in line with the user needs.</p>



<p></p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># yum group list</pre>



<p></p>



<p></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="800" height="600" src="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/ALMA-GROUP-1.png" alt="" class="wp-image-7926" srcset="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/ALMA-GROUP-1.png 800w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/ALMA-GROUP-1-300x225.png 300w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/ALMA-GROUP-1-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:18px">There is no <strong>GUI</strong> in the system due to minimal installation, if a <strong>GUI</strong> is needed: Download should be done with the <strong>Workstation</strong> option. This option will provide the user with the <strong>Gnome Desktop Environment</strong>, as well as most packages that should be on a <strong>Workstation.</strong></p>



<p></p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># yum  group install workstation</pre>



<p></p>



<p></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="800" height="600" src="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/alma-workstation-1.png" alt="" class="wp-image-7928" srcset="https://www.veriteknik.net.tr/wp-content/uploads/2021/05/alma-workstation-1.png 800w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/alma-workstation-1-300x225.png 300w, https://www.veriteknik.net.tr/wp-content/uploads/2021/05/alma-workstation-1-768x576.png 768w" sizes="(max-width: 800px) 100vw, 800px" /></figure>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p style="font-size:18px">After the download is completed, the <strong>desktop</strong> can be activated with the following command.</p>



<p></p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># startx &amp;</pre>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/how-to-install-almalinux-8/">How to Install AlmaLinux 8</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/how-to-install-almalinux-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7780</post-id>	</item>
		<item>
		<title>Shared LVM iSCSI Server and Client configuration for CentOS</title>
		<link>https://www.veriteknik.net.tr/en/shared-lvm-iscsi-server-and-client-configuration-for-centos/</link>
					<comments>https://www.veriteknik.net.tr/en/shared-lvm-iscsi-server-and-client-configuration-for-centos/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Sun, 07 Jun 2020 21:23:27 +0000</pubDate>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Network]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=1126</guid>

					<description><![CDATA[<p>Target: (Server with storage): 10.10.10.2/24Client: 10.10.10.1/24 Target: Install iSCSI Utils if not available Edit targets.conf Paste the configuration below, change target name based on your needs Enable tgtd service Start the service Note: If you don&#8217;t want any volume group to be automatically recognized by the operating system of the target, please filter the volume [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/shared-lvm-iscsi-server-and-client-configuration-for-centos/">Shared LVM iSCSI Server and Client configuration for CentOS</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Target: (Server with storage): 10.10.10.2/24<br />Client: 10.10.10.1/24</p>
<p><strong>Target:</strong></p>
<p>Install iSCSI Utils if not available</p>


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



<p>Edit targets.conf</p>



<pre class="wp-block-code"><code>vi /etc/tgt/targets.conf</code></pre>



<p>Paste the configuration below, change target name based on your needs</p>



<pre class="wp-block-code"><code>backing-store /dev/sdc1 
initiator-address 172.100.100.2 
# add more initiators if you need 
#initiator-address 172.50.50.2 
#incominguser username password</code></pre>



<p>Enable tgtd service</p>



<pre class="wp-block-code"><code>chkconfig tgtd on</code></pre>



<p>Start the service</p>



<pre class="wp-block-code"><code>service tgtd start</code></pre>



<p>Note: If you don&#8217;t want any volume group to be automatically recognized by the operating system of the target, please filter the volume group to be seen on boot.<br>Edit /etc/lvm/lvm.conf and add this global_filter</p>



<pre class="wp-block-code"><code>global_filter = &#91; "a|^/dev/sdc1$|", "r/.*/" ]</code></pre>



<p></p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/shared-lvm-iscsi-server-and-client-configuration-for-centos/">Shared LVM iSCSI Server and Client configuration for CentOS</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/shared-lvm-iscsi-server-and-client-configuration-for-centos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1126</post-id>	</item>
		<item>
		<title>PHP 7 on CentOS 7 with PHP-FPM</title>
		<link>https://www.veriteknik.net.tr/en/php-7-on-centos-7-with-php-fpm-2/</link>
					<comments>https://www.veriteknik.net.tr/en/php-7-on-centos-7-with-php-fpm-2/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Sun, 07 Jun 2020 20:46:37 +0000</pubDate>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[freetds]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP 5.6]]></category>
		<category><![CDATA[PHP 5.6.3]]></category>
		<category><![CDATA[php-fpm]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[systemctl]]></category>
		<category><![CDATA[systemd]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=1053</guid>

					<description><![CDATA[<p>Most of the yum repositories don&#8217;t include PHP7.0.X on current releases for the time being. So if you need PHP7.0.X, you need to compile and build it for your self. I decided to put all required packages to the compilation, so most probably you wouldn&#8217;t need additional packages, just a quick tip, if you need [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/php-7-on-centos-7-with-php-fpm-2/">PHP 7 on CentOS 7 with PHP-FPM</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Most of the yum repositories don&#8217;t include PHP7.0.X on current releases for the time being. So if you need PHP7.0.X, you need to compile and build it for your self. I decided to put all required packages to the compilation, so most probably you wouldn&#8217;t need additional packages, just a quick tip, if you need additional packages you can install via pecl or pear tools.</p>
<h3>Which PHP configure options should I use before compiling?</h3>
<p>If you ever need to get the list of modules installed in your current PHP, type the following command via console:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">php -m</pre>
<p>So, take a list of your current configuration and check the configure list below in order to have a compatible compilation to your existing older version of PHP.</p>
<p>Advice: First of all, you should consider removing PHP packages from your server before compiling PHP, but be aware your codes will be visible till you install the compiled version to your server, consider shutting down your apache server for a while.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">yum erase php*</pre>
<p>Before downloading the code, install &#8220;Development Tools&#8221; by typing:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">yum groupinstall "Development Tools"</pre>
<p>and install other related header files:</p>
<pre class="brush: shell; gutter: true; first-line: 1">yum install wget httpd-devel libtool-ltdl-devel libxml2-devel \
bzip2-devel net-snmp-devel openssl-devel pcre-devel \
curl-devel gd-devel mysql-devel libxslt-devel \
postgresql-devel gmp-devel systemd-devel</pre>
<p>Download &amp; install libmcrypt</p>
<pre class="brush: shell; gutter: true; first-line: 1">cd /usr/src
wget http://downloads.sourceforge.net/project\
/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
tar zxvf libmcrypt-2.5.8.tar.gz 
cd libmcrypt-2.5.8
./configure -libdir=/usr/lib64
make
make install</pre>
<p> </p>
<p>Download &amp; extract PHP 7.0.4 release:</p>
<pre class="brush: shell; gutter: true; first-line: 1">wget http://php.net/get/php-7.0.4.tar.gz/from/this/mirror
mv mirror /usr/src/php-7.0.4.tar.gz
cd /usr/src/
tar zxvf /usr/src/php-7.0.4.tar.gz 
cd php-7.0.4
./configure \
 --with-apxs2 \
 --with-curl=/usr/local/lib \
 --with-config-file-path=/etc \
 --with-config-file-scan-dir=/etc/php.d \
 --with-pic \
 --with-gd \
 --with-gettext \
 --with-jpeg-dir=/usr/local/lib \
 --with-freetype-dir=/usr/local/lib \
 --enable-sockets \
 --with-kerberos \
 --with-openssl \
 --with-mhash \
 --with-mcrypt=/usr/local/lib \
 --with-mysqli=/usr/bin/mysql_config \
 --with-pdo-mysql=/usr \
 --with-pdo-pgsql=/usr \
 --with-pcre-regex=/usr \
 --with-pear \
 --with-gmp \
 --with-pgsql \
 --with-png-dir=/usr/local/lib \
 --with-xsl \
 --with-zlib \
 --with-zlib-dir=/usr/local/lib \
 --with-iconv \
 --with-libxml-dir=/usr \
 --enable-bcmath \
 --enable-calendar \
 --enable-exif \
 --enable-ftp \
 --enable-gd-native-ttf \
 --enable-soap \
 --enable-sockets \
 --enable-mbstring \
 --enable-zip \
 --enable-wddx \
 --enable-shmop \
 --with-libdir=lib64 \
 --disable-debug \
 --with-bz2 \
 --enable-gd-native-ttf \
 --enable-xml \
 --with-snmp=/usr \
 --enable-json \
 --with-fpm-user=apache\
 --with-fpm-group=apache\
 --enable-fpm \
 --with-fpm-systemd
</pre>
<p>Make &amp; Install by typing:</p>
<pre class="brush: shell; gutter: true; first-line: 1">make
make install
cp php.ini-production /etc/php.ini
</pre>
<p>Run the following to enable systemd service for PHP:</p>
<pre class="brush: bash; gutter: true; first-line: 1">cat &lt;&lt;&lt; '
[Unit]
Description=The PHP FastCGI Process Manager - VeriTeknik
After=syslog.target network.target

[Service]
Type=notify
PIDFile=/var/run/php-fpm.pid
ExecStart=/usr/local/sbin/php-fpm --nodaemonize \
--fpm-config /etc/php-fpm.conf
ExecReload=/bin/kill -USR2 $MAINPID

[Install]
WantedBy=multi-user.target
' &gt; /usr/lib/systemd/system/php-fpm.service
systemctl enable php-fpm
</pre>
<p>Get rid of obsolete settings:</p>
<pre class="brush: shell; gutter: true; first-line: 1">sed -i 's#;date.timezone =.*#  date.timezone = "Europe/Istanbul"#' /etc/php.ini
sed -i 's#upload_max_filesize =.*#upload_max_filesize = 200M#' /etc/php.ini
sed -i 's#post_max_size =.*#post_max_size = 200M#' /etc/php.ini
cat &lt;&lt;&lt; ' include=/etc/php-fpm.d/*.conf [global] pid = \ 
/run/php-fpm/php-fpm.pid error_log = /var/log/php-fpm/error.log \
daemonize = no ' &gt; /etc/php-fpm.conf
mkdir /etc/php-fpm.d
</pre>
<p> </p>
<p>You need to create the appropriate user account the fpm process will run on, as a sample, we use <strong>plugged</strong> as a user:</p>
<pre class="brush: shell; gutter: true; first-line: 1">useradd plugged
chmod 755 /home/plugged</pre>
<p>create the php-fpm process config for the specific site:</p>
<pre class="brush: shell; gutter: true; first-line: 1">cat &lt;&lt;&lt; '
[www]
listen = 127.0.0.1:9001
 
listen.allowed_clients = 127.0.0.1
listen.owner = plugged
listen.group = plugged
user = plugged
group = plugged
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35

slowlog = /var/log/php-fpm/www-slow.log
 
catch_workers_output = yes
 
php_admin_value[error_log] = /home/plugged/logs/mphp_error.log
php_admin_flag[log_errors] = on
php_value[session.save_handler] = files
php_value[session.save_path] = /home/plugged/session
' &gt; /etc/php-fpm.d/plugged.conf

mkdir /run/php-fpm/
mkdir /var/log/php-fpm/
touch /var/log/php-fpm/error.log
mkdir {/home/plugged/logs/,/home/plugged/session}
chown -R plugged:plugged /home/plugged
systemctl start php-fpm
sed -i 's/DirectoryIndex index.html.*/  DirectoryIndex index.html index.html.var index.php/' /etc/httpd/conf/httpd.conf</pre>
<p>please let us know if you find any mistake</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/php-7-on-centos-7-with-php-fpm-2/">PHP 7 on CentOS 7 with PHP-FPM</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/php-7-on-centos-7-with-php-fpm-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1053</post-id>	</item>
		<item>
		<title>PHP 7 on CentOS 7 with PHP-FPM</title>
		<link>https://www.veriteknik.net.tr/en/php-7-on-centos-7-with-php-fpm/</link>
					<comments>https://www.veriteknik.net.tr/en/php-7-on-centos-7-with-php-fpm/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Wed, 18 Sep 2019 20:57:42 +0000</pubDate>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[freetds]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP 5.6]]></category>
		<category><![CDATA[PHP 5.6.3]]></category>
		<category><![CDATA[php-fpm]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[systemctl]]></category>
		<category><![CDATA[systemd]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=1076</guid>

					<description><![CDATA[<p>Most of the yum repos doesn&#8217;t include PHP7.0.X on current releases for the time being. So if you need PHP7.0.X, you need to compile and build it for your self or you need to add additional repos to yum, which will be much more easier and much more flexible to update later. So, on a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/php-7-on-centos-7-with-php-fpm/">PHP 7 on CentOS 7 with PHP-FPM</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Most of the yum repos doesn&#8217;t include PHP7.0.X on current releases for the time being. So if you need PHP7.0.X, you need to compile and build it for your self or you need to add additional repos to yum, which will be much more easier and much more flexible to update later. So, on a clean installed server proceed with the installation of Epel and Remi repos, in case you don&#8217;t have wget, also install it:</p>
<pre class="brush: bash; gutter: true; first-line: 1">yum install epel-release
yum install net-tools, bind-utils # optional life savers 
rpm -Uvh http://mirror.veriteknik.net.tr/remi/enterprise/remi-release-7.rpm
yum install php70-php-fpm php70-php-cli php70-php-gd php70-php-json \
php70-php-mbstring php70-php-mcrypt php70-php-mysqlnd php70-php-xml
yum install nginx</pre>
<p>&nbsp;<br />
Please note that if you need additional PHP packages, you can search them with the following command:</p>
<pre class="brush: bash; gutter: true; first-line: 1">yum list php70-*
#Available Packages
#php70-php-opcache.x86_64
#.
#.
#php70-php-pecl-crypto.x86_64
#php70-php-pecl-geoip.x86_64 
#php70-php-pecl-imagick.x86_64
#php70-php-pecl-memcache.x86_64
#php70-php-pecl-xdebug.x86_64
#php70-php-pgsql.x86_64
#php70-php-soap.x86_64
#php70-php-xmlrpc.x86_64
#..
# and to install a package you desire, type the name:
yum install php70-php-pgsql
</pre>
<p>Run the following to enable systemd service for PHP-FPM:</p>
<pre class="brush: bash; gutter: true; first-line: 1">systemctl enable php70-php-fpm
systemctl enable nginx</pre>
<p>Disable SELINUX, set to disabled:</p>
<pre class="brush: bash; gutter: true; first-line: 1">vi /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.
<strong>SELINUX=disabled</strong>
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted</pre>
<p>type SHIFT+ZZ to save and exit, and for the time beign type setenforce 0 to disable SELINUX temproray.<br />
Next step is to get rid of obsolete settings:</p>
<pre class="brush: shell; gutter: true; first-line: 1">sed -i 's#;date.timezone =.*# &nbsp;date.timezone = \ 
"Europe/Istanbul"#' /etc/opt/remi/php70/php.ini
sed -i 's#upload_max_filesize =.*#upload_max_filesize = \
200M#' /etc/opt/remi/php70/php.ini
sed -i 's#post_max_size =.*#post_max_size = \
200M#' /etc/opt/remi/php70/php.ini

</pre>
<p>You need to create the appropriate user account the fpm process will run on, as a sample we use <strong>plugged</strong> as a user:</p>
<pre class="brush: shell; gutter: true; first-line: 1">useradd plugged
chmod 755 /home/plugged
mkdir /home/plugged/{logs,public_html,session}
touch /home/plugged/logs/{mphp_error.log,php-fpm-slow.log}
chown -R vtt:vtt /home/plugged/public_html/</pre>
<p>create the php-fpm process config for the specific site:</p>
<pre class="brush: shell; gutter: true; first-line: 1">cat &lt;&lt;&lt; '[plugged] 
listen = 127.0.0.1:9001
listen.allowed_clients = 127.0.0.1 
listen.owner = plugged 
listen.group = plugged 
user = plugged 
group = plugged 
pm = dynamic 
pm.max_children = 50 
pm.start_servers = 5 
pm.min_spare_servers = 5 
pm.max_spare_servers = 35 
slowlog = /home/plugged/logs/php-fpm-slow.log 
catch_workers_output = yes 
php_admin_value[error_log] = /home/plugged/logs/mphp_error.log 
php_admin_flag[log_errors] = on 
php_value[session.save_handler] = files 
php_value[session.save_path] = /home/plugged/session ' \
&gt; /etc/opt/remi/php70/php-fpm.d/plugged.conf
</pre>
<p>Turn on PHP-FPM by typing:</p>
<pre class="brush: shell; gutter: true; first-line: 1">systemctl start php70-php-fpm.service
</pre>
<p>If it fails to start, you can check the logs by typing<br />
systemctl status php70-php-fpm.service</p>
<p>Also please check the service is running by typing netstat so if the port is open, you should see that:</p>
<pre class="brush: shell; gutter: true; first-line: 1">netstat -tulpn | grep php-fpm
#tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      908/php-fpm: master 
#tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      908/php-fpm: master 
</pre>
<p>please let us know if you find any mistake</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/php-7-on-centos-7-with-php-fpm/">PHP 7 on CentOS 7 with PHP-FPM</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/php-7-on-centos-7-with-php-fpm/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1076</post-id>	</item>
		<item>
		<title>How to add reverse DNS delegation for RIPE</title>
		<link>https://www.veriteknik.net.tr/en/how-to-add-reverse-dns-delegation-for-ripe/</link>
					<comments>https://www.veriteknik.net.tr/en/how-to-add-reverse-dns-delegation-for-ripe/#respond</comments>
		
		<dc:creator><![CDATA[Tunc Yıldırım]]></dc:creator>
		<pubDate>Wed, 18 Sep 2019 20:51:47 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[rdns]]></category>
		<category><![CDATA[ripe]]></category>
		<guid isPermaLink="false">https://www.veriteknik.net.tr/?p=4351</guid>

					<description><![CDATA[<p>Let&#8217;s say we want to add reverse DNS delegation for the IP block 123.234.12.0/24 The first step of the configuration is on the nameserver, BIND on our case. Create the relevant reverse DNS file on /var/named/rev and then edit the file: cd /var/named/rev touch 123.234.12 vim 123.234.12 The file contents should be like the following: [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/how-to-add-reverse-dns-delegation-for-ripe/">How to add reverse DNS delegation for RIPE</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Let&#8217;s say we want to add reverse DNS delegation for the IP block 123.234.12.0/24</p>
<p>The first step of the configuration is on the nameserver, BIND on our case.</p>
<p>Create the relevant reverse DNS file on /var/named/rev and then edit the file:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">cd /var/named/rev
touch 123.234.12
vim 123.234.12</pre>
<p>The file contents should be like the following:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">$TTL 3D
@       IN      SOA     ns1.rackdc.com. postmaster.rackdc.com. (
                        2018112201   ; Serial, todays date + todays serial
                        8H      ; Refresh
                        2H      ; Retry
                        4W      ; Expire
                        1D)     ; Minimum TTL
                                ; Created on http://root0.net 2005-10-27
                 NS             ns1.rackdc.com.
                 NS		ns2.rackdc.com.
                 
$ORIGIN 12.234.123.in-addr.arpa.


12		PTR		rackdc.com.
</pre>
<p>After configuring this file with correct details, edit the file /etc/named.conf to include the file you&#8217;ve just created.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">vim /etc/named.conf</pre>
<p>Add the following line in the file:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">zone "12.234.123.in-addr.arpa" { notify yes; type master; file "/var/named/rev/123.234.12";allow-query { any; };};</pre>
<p>Finally, restart the DNS service.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">service named restart</pre>
<p>It is important to complete this step before creating an object in RIPE.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/how-to-add-reverse-dns-delegation-for-ripe/">How to add reverse DNS delegation for RIPE</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/how-to-add-reverse-dns-delegation-for-ripe/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4351</post-id>	</item>
		<item>
		<title>Get GNU/Linux Version and OS Details</title>
		<link>https://www.veriteknik.net.tr/en/get-linux-version/</link>
					<comments>https://www.veriteknik.net.tr/en/get-linux-version/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Sat, 28 Jan 2017 10:13:04 +0000</pubDate>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Ayırt]]></category>
		<category><![CDATA[distinguish]]></category>
		<category><![CDATA[Fiziksel]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[physical]]></category>
		<category><![CDATA[Sanal]]></category>
		<category><![CDATA[virtual]]></category>
		<guid isPermaLink="false">https://www.veriteknik.net.tr/linux-versiyonu-ve-isletim-sistemi-bilgilerini-ogrenme/</guid>

					<description><![CDATA[<p>LINUX Version Details There is an easy way to learn GNU/Linux version in all distros. For CentOS, RedHat and other flavors you can use the code cat /etc/redhat-release Bu komut size aşağıdakine benzer bir cevap ile dönecektir: [root@veriteknik ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) Sunucunun Sanal ya da Fiziksel olduğunu nasıl anlarsınız Sunucunun [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/get-linux-version/">Get GNU/Linux Version and OS Details</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>LINUX Version Details</h3>
<p>There is an easy way to learn GNU/Linux version in all distros. For CentOS, RedHat and other flavors you can use the code</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">cat /etc/redhat-release</pre>
<p>Bu komut size aşağıdakine benzer bir cevap ile dönecektir:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">[root@veriteknik ~]# cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core)</pre>
<h3>Sunucunun Sanal ya da Fiziksel olduğunu nasıl anlarsınız</h3>
<p>Sunucunun sanal ya da fiziksel olduğunu anlamanın birden çok yolu vardır. Sanallaştırma ortamları üzerinde kolayca sunucu göçü sağlamak için jenerik donanım isimleri kullanılmaktadır. Örneğin fiziksel bir sunucuda işlemcileri görüntülemek için kullandığınız kod aşağıdakine benzer bir çıktı verecektir:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">root@veriteknik:~# cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 62
model name      : Intel(R) Xeon(R) CPU E5-2687W v2 @ 3.40GHz
stepping        : 4
microcode       : 0x428
cpu MHz         : 3603.430
cache size      : 25600 KB
physical id     : 0
siblings        : 16
core id         : 1
cpu cores       : 8
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts
bugs            : cpu_meltdown spectre_v1 spectre_v2
bogomips        : 6800.13
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:</pre>
<p>Ne var ki, sanal bir sunucuda farklılıkları hemen keşfedebilirsiniz</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">[root@www ~]# cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 6
model name      : Common KVM processor
stepping        : 1
microcode       : 0x1
cpu MHz         : 3399.998
cache size      : 16384 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc nopl xtopology eagerfpu pni cx16 x2apic hypervisor lahf_lm
bogomips        : 6799.99
clflush size    : 64
cache_alignment : 128
address sizes   : 40 bits physical, 48 bits virtual
power management:</pre>
<p><strong>model name</strong> satırında &#8220;<strong>Common KVM Processor</strong>&#8221; yazdığını göreceksiniz. Linux sistemlerde kullanılmakta olan KVM sanallaştırma sistemi açtığı bütün sanal sunucularda bu işlemci tipini kullanacaktır.</p>
<h3>İşletim Sistemi Mimarisi</h3>
<p>Günümüzde işletim sistemleri 32 bit ya da 64 bit olarak gelmektedir, kuracağınız uygulamaların da bu mimariye uygun olması gerekir. Mimariyi öğrenmek için:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">root@veriteknik:~# uname -a
Linux veriteknik 4.15.17-1-pve #1 SMP PVE 4.15.17-9 (Wed, 9 May 2018 13:31:43 +0200) x86_64 GNU/Linux</pre>
<p>Satırın en sonunda GNU/Linux yazısından önceki bölümde sistem mimarisini görebilirsiniz, <strong>x86_64</strong> 64 bit, <strong>x86_32</strong> ise 32 bit işletim sistemini temsil etmektedir.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/get-linux-version/">Get GNU/Linux Version and OS Details</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/get-linux-version/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4193</post-id>	</item>
		<item>
		<title>Finding spammer php script in DirectAdmin</title>
		<link>https://www.veriteknik.net.tr/en/finding-spammer-php-script-directadmin/</link>
					<comments>https://www.veriteknik.net.tr/en/finding-spammer-php-script-directadmin/#respond</comments>
		
		<dc:creator><![CDATA[Fehmi Can Tokay]]></dc:creator>
		<pubDate>Sat, 28 Jan 2017 13:13:04 +0000</pubDate>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[spam]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=1113</guid>

					<description><![CDATA[<p>There is an easy method to find spammer php script in your home path. Directadmin logs these spammer scripts which are using phpmailer or similar things. To find this: Go to your home path cd /home Find your log files find ./ -type f -size +1k -name "php-mail.log" After this find operation, you can see [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/finding-spammer-php-script-directadmin/">Finding spammer php script in DirectAdmin</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There is an easy method to find spammer php script in your home path. Directadmin logs these spammer scripts which are using phpmailer or similar things. To find this:</p>
<ol>
<li style="list-style-type: none;">
<ol>
<li>Go to your home path</li>
</ol>
</li>
</ol>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">cd /home</pre>
<ol>
<li style="list-style-type: none;">
<ol>
<li>Find your log files</li>
</ol>
</li>
</ol>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">find ./ -type f -size +1k -name "php-mail.log"</pre>
<p>After this find operation, you can see your log files. It means, users that have this log file are could be the potential spammer.</p>
<ol>
<li style="list-style-type: none;">
<ol>
<li>Tailf your log file.</li>
</ol>
</li>
</ol>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">tailf /home/user/.php/php-mail.log</pre>
<p>&nbsp;</p>
<ol>
<li style="list-style-type: none;">
<ol>
<li>You can see spammer scripts.!!</li>
</ol>
</li>
</ol>
<pre class="brush: bash; gutter: true; first-line: 1">mail() on [/home/user/domains/domain.com.tr/public_html/modules/mod_users_latest/files.php(1947) : eval()'d code:775]: To: user@hotmail.com -- Headers: Date: Sat, 28 Jan 2017 15:51:47 +0300 From: Flora &lt;user@domain.com.tr&gt; Message-ID: &lt;3f796c9fb6de893f060882897f360bea@domain.com.tr&gt; X-Priority: 3 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_3f796c9fb6de893f060882897f360bea" Content-Transfer-Encoding: 8bit</pre>
<ol>
<li style="list-style-type: none;">
<ol>
<li>Remove this peace of shit.</li>
</ol>
</li>
</ol>
<pre class="brush: bash; gutter: true; first-line: 1">rm /home/user/domains/domain.com.tr/public_html/modules/mod_users_latest/files.php</pre>
<p>You can easiliy get rid of these spammer scripts using this method. Don&#8217;t forget to clear your mail queue after this operation.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/finding-spammer-php-script-directadmin/">Finding spammer php script in DirectAdmin</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/finding-spammer-php-script-directadmin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1113</post-id>	</item>
		<item>
		<title>Convert your P7B Certificate to PFX</title>
		<link>https://www.veriteknik.net.tr/en/convert-p7b-certificate-pfx/</link>
					<comments>https://www.veriteknik.net.tr/en/convert-p7b-certificate-pfx/#respond</comments>
		
		<dc:creator><![CDATA[Fehmi Can Tokay]]></dc:creator>
		<pubDate>Fri, 10 Jun 2016 14:05:16 +0000</pubDate>
				<category><![CDATA[LINUX]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=1103</guid>

					<description><![CDATA[<p>When i try to convert my certificates to pfx format, i encountered a problem shown below # openssl pkcs7 -print_certs -in PKCS7.p7b -out certificate.cer unable to load PKCS7 object 140083803338568:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: PKCS7 To solve this issue: 1) Copy your PKCS7.p7b file as PKCS7.crt 2) Open this file with your editor and add these [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/convert-p7b-certificate-pfx/">Convert your P7B Certificate to PFX</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>When i try to convert my certificates to pfx format, i encountered a problem shown below</p>
<p># openssl pkcs7 -print_certs -in PKCS7.p7b -out certificate.cer</p>
<p>unable to load PKCS7 object<br />
140083803338568:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: PKCS7</p>
<p>To solve this issue:</p>
<p>1) Copy your PKCS7.p7b file as PKCS7.crt</p>
<p>2) Open this file with your editor and add these lines.</p>
<p>&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211;</p>
<p>&#8212;&#8211;END CERTIFICATE&#8212;&#8211;</p>
<p>3) openssl pkcs7 -print_certs -in PKCS7.crt -out certificate.cer</p>
<p>4) openssl pkcs12 -export -in certificate.cer -inkey private.key -out PKCS7.pfx -certfile bundle.cer<br />
Enter Export Password:<br />
Verifying &#8211; Enter Export Password:</p>
<p>Voila! Your PFX file is ready.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/convert-p7b-certificate-pfx/">Convert your P7B Certificate to PFX</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/convert-p7b-certificate-pfx/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1103</post-id>	</item>
		<item>
		<title>Centos 7 &#8211; BackupPC Installation Guide</title>
		<link>https://www.veriteknik.net.tr/en/centos-7-backuppc-installation-guide/</link>
					<comments>https://www.veriteknik.net.tr/en/centos-7-backuppc-installation-guide/#respond</comments>
		
		<dc:creator><![CDATA[Fehmi Can Tokay]]></dc:creator>
		<pubDate>Sun, 22 May 2016 08:53:25 +0000</pubDate>
				<category><![CDATA[LINUX]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=1097</guid>

					<description><![CDATA[<p>&#160; This is a complete guide to install BackupPC on your CentOS 7 server. #Install BackupPC and prerequsities yum upgrade -y yum install epel-release yum install backuppc nfs-utils nfs-utils-lib bzip2 systemctl restart backuppc.service #Set permissions cd /usr/share/BackupPC/ chown backuppc:apache sbin/* cd /usr/share/BackupPC/sbin chmod u+s BackupPC_Admin usermod -s /bin/bash backuppc #Set firewall rule for HTTP port. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/centos-7-backuppc-installation-guide/">Centos 7 &#8211; BackupPC Installation Guide</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>&nbsp;</p>
<p>This is a complete guide to install BackupPC on your CentOS 7 server.</p>
<p>#Install BackupPC and prerequsities</p>
<pre>yum upgrade -y
yum install epel-release
yum install backuppc nfs-utils nfs-utils-lib bzip2
systemctl restart backuppc.service</pre>
<p>#Set permissions</p>
<pre>cd /usr/share/BackupPC/
chown backuppc:apache sbin/*

cd /usr/share/BackupPC/sbin
chmod u+s BackupPC_Admin

usermod -s /bin/bash backuppc</pre>
<p>#Set firewall rule for HTTP port.</p>
<pre>firewall-cmd --zone=public --add-port=80/tcp --permanent</pre>
<pre>firewall-cmd --reload</pre>
<p>#Edit BackupPC config</p>
<pre>vi /etc/BackupPC/config.pl</pre>
<p>Edit</p>
<pre class="brush: actionscript3; gutter: true; first-line: 1">$Conf{CgiAdminUserGroup} = '';
 $Conf{CgiAdminUsers} = '';</pre>
<p>TO</p>
<pre class="brush: actionscript3; gutter: true; first-line: 1">$Conf{CgiAdminUserGroup} = '';
 $Conf{CgiAdminUsers} = 'backuppc';</pre>
<p>THEN</p>
<p>Edit</p>
<pre class="brush: actionscript3; gutter: true; first-line: 1">$Conf{PingPath} = '';</pre>
<p>TO</p>
<pre class="brush: actionscript3; gutter: true; first-line: 1">$Conf{PingPath} = '/bin/ping';</pre>
<p>#Edit your apache configuration</p>
<pre>vi /etc/httpd/conf.d/BackupPC.conf</pre>
<pre class="brush: actionscript3; gutter: true; first-line: 1">&lt;Directory /usr/share/BackupPC/&gt;
 # BackupPC requires valid authentication in order for the web interface to
 # function properly. One can view the web interface without authentication
 # though all functionality is disabled.
 #
 # htpasswd -c /etc/BackupPC/apache.users yourusername
 #
AuthType Basic
 AuthUserFile /etc/BackupPC/apache.users
 AuthName "BackupPC"
&lt;IfModule mod_authz_core.c&gt;
 # Apache 2.4
 &lt;RequireAll&gt;
 Require valid-user
 &lt;RequireAny&gt;
 Require local
 # --&gt; In order to access only this specific IP
 Require ip 192.168.16
 # --&gt; Uncomment for access everywhere
 # Require all granted
 &lt;/RequireAny&gt;
 &lt;/RequireAll&gt;
 &lt;/IfModule&gt;
 &lt;IfModule !mod_authz_core.c&gt;
 AllowOverride All
 Order allow,deny
 Deny from all
 &lt;/IfModule&gt;
&lt;/Directory&gt;
Alias /BackupPC/images /usr/share/BackupPC/html/
 ScriptAlias /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin
 ScriptAlias /backuppc /usr/share/BackupPC/sbin/BackupPC_Admin</pre>
<p>#Create username and password for BackupPC GUI</p>
<pre>htpasswd -c /etc/BackupPC/apache.users backuppc</pre>
<p>New password:<br />
Re-type new password:<br />
Adding password for user backuppc</p>
<p>#Restart your services</p>
<pre>systemctl restart backuppc.service
systemctl restart httpd.service</pre>
<p>#Then add your ssh key to your remote server.</p>
<pre>su - backuppc</pre>
<pre>ssh-keygen -t rsa</pre>
<p>Generating public/private rsa key pair.<br />
Enter file in which to save the key (/var/lib/BackupPC/.ssh/id_rsa):<br />
Created directory &#8216;/var/lib/BackupPC/.ssh&#8217;.<br />
Enter passphrase (empty for no passphrase):<br />
Enter same passphrase again:<br />
Your identification has been saved in /var/lib/BackupPC/.ssh/id_rsa.<br />
Your public key has been saved in /var/lib/BackupPC/.ssh/id_rsa.pub.</p>
<pre>ssh-copy-id root@your-remote-ip</pre>
<p>#Test it.</p>
<pre>ssh root@your-remote-ip</pre>
<p>#Then go</p>
<p>http://your-ip/BackupPC</p>
<p>#Enter your username and password that you created before #htpasswd -c /etc/BackupPC/apache.users backuppc</p>
<p>#Go &#8220;Edit Hosts&#8221;</p>
<p>#Click Add</p>
<p>#Then write an hostname or IP of your remote server</p>
<p>#Then click SAVE</p>
<p>#Refresh your page and select your host.</p>
<p>!!! DO NOT FORGET INSTALL RSYNC TO YOUR REMOTE SERVER !!!</p>
<p>#Click &#8220;Edit Config&#8221; for your selected host</p>
<p>#Select Xfer</p>
<p>#Add &#8220;*&#8221; value for &#8220;BackupFilesOnly&#8221; Box</p>
<p>#Write down your path name that you want to create backup in RsyncShareName Box</p>
<p>#Then Click Save.!</p>
<p>#Click Start FULL BACKUP</p>
<p>You are ready to go!</p>
<h2>Windows SMB Backup</h2>
<p>You can also take backup of your Windows clients using BackupPC</p>
<p>The basic steps are</p>
<ul>
<li>Create a backuppc user in your domain/client with backup operator privileges</li>
<li>Create a share on client server and give read and list folder permissions to backuppc user</li>
<li>Create inbound firewall rule for BackupPC server</li>
<li>Test your configuration by typing from BackupPC Server
<ul>
<li>smbclient -U &#8220;Domain\backuppc&#8221; //CLIENTIP/ShareName</li>
<li>You will see smb prompt, try to list the files by typing &#8220;dir&#8221;</li>
</ul>
</li>
<li>Add the client to backuppc and edit the credentials:
<ul>
<li>change Xfer method to SMB</li>
<li>enter username as DOMAIN\user</li>
<li>enter password</li>
<li>change share name from C$ to Share Name given</li>
</ul>
</li>
</ul>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/centos-7-backuppc-installation-guide/">Centos 7 &#8211; BackupPC Installation Guide</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/centos-7-backuppc-installation-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1097</post-id>	</item>
		<item>
		<title>Configuring IPMI Tool for Remote Management</title>
		<link>https://www.veriteknik.net.tr/en/configuring-ipmi-tool-remote-management/</link>
					<comments>https://www.veriteknik.net.tr/en/configuring-ipmi-tool-remote-management/#respond</comments>
		
		<dc:creator><![CDATA[Fehmi Can Tokay]]></dc:creator>
		<pubDate>Sun, 22 May 2016 08:33:54 +0000</pubDate>
				<category><![CDATA[LINUX]]></category>
		<guid isPermaLink="false">http://www.plugged.in/?p=1041</guid>

					<description><![CDATA[<p>You can use IPMI tools for configuring iDrac, CIMC and similar remote management systems quickly. &#8211;&#62; Install IPMI Tools #  yum install OpenIPMI OpenIPMI-tools &#8211;&#62; Start ipmi service automatically #  chkconfig ipmi on &#8211;&#62; Print current configuration. #  ipmitool lan print -1 Set in Progress : Set Complete Auth Type Support : NONE MD2 MD5 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/configuring-ipmi-tool-remote-management/">Configuring IPMI Tool for Remote Management</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>You can use IPMI tools for configuring iDrac, CIMC and similar remote management systems quickly.</p>
<p>&#8211;&gt; Install IPMI Tools</p>
<pre>#  yum install OpenIPMI OpenIPMI-tools</pre>
<p>&#8211;&gt; Start ipmi service automatically</p>
<pre>#  chkconfig ipmi on</pre>
<p>&#8211;&gt; Print current configuration.</p>
<pre>#  ipmitool lan print -1</pre>
<p>Set in Progress : Set Complete<br />
Auth Type Support : NONE MD2 MD5 PASSWORD<br />
Auth Type Enable : Callback :<br />
: User :<br />
: Operator :<br />
: Admin :<br />
: OEM :<br />
IP Address Source : Static Address<br />
IP Address : 1.2.3.4<br />
Subnet Mask : 255.255.255.0<br />
MAC Address : ab:aa:vv:cc:xx:dd<br />
SNMP Community String : public<br />
IP Header : TTL=0x40 Flags=0x00 Precedence=0x00 TOS=0x10<br />
BMC ARP Control : ARP Responses Disabled, Gratuitous ARP Disabled<br />
Gratituous ARP Intrvl : 2.0 seconds<br />
Default Gateway IP : 1.2.3.4<br />
Default Gateway MAC : 00:00:00:00:00:00<br />
Backup Gateway IP : 0.0.0.0<br />
Backup Gateway MAC : 00:00:00:00:00:00<br />
802.1q VLAN ID : Disabled<br />
802.1q VLAN Priority : 0<br />
RMCP+ Cipher Suites : 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14<br />
Cipher Suite Priv Max : XXXaaaXXaaaXaaa<br />
: X=Cipher Suite Unused<br />
: c=CALLBACK<br />
: u=USER<br />
: o=OPERATOR<br />
: a=ADMIN<br />
: O=OEM</p>
<p>&#8211;&gt; Set Ip Adress source static</p>
<pre>#  ipmitool lan set 1 ipsrc static</pre>
<p>&#8211;&gt; Set IP address</p>
<pre>#  ipmitool lan set 1 ipaddr 1.2.3.4</pre>
<p>&#8211;&gt; Set Netmask</p>
<pre>#  ipmitool lan set 1 netmask 255.255.255.0</pre>
<p>&#8211;&gt; Set Default Gateway</p>
<pre>#  ipmitool lan set 1 defgw ipaddr 1.2.3.4</pre>
<p>&#8211;&gt; Print user list.</p>
<pre># ipmitool user list 1</pre>
<p>ID   Name    Callin    Link Auth       IPMI   Msg    Channel Priv Limit<br />
1      admin    true          false              true                ADMINISTRATOR<br />
2                     true          false              true                CALLBACK<br />
3     test         true          false              true                USER</p>
<p>4                     true         false               true                CALLBACK<br />
5                     true         false               true                CALLBACK<br />
6                     true         false               true                CALLBACK<br />
7                     true         false               true                CALLBACK</p>
<p>&#8211;&gt; Create User (3 is the ID of user)</p>
<pre>#  ipmitool user set name 3 test</pre>
<p>&#8211;&gt; Set password for user test</p>
<pre>#  ipmitool user set password 3</pre>
<p>Password for user 3:</p>
<p>&#8211;&gt; Give Administrator Privilege</p>
<p>Possible privilege levels are:<br />
<i>1</i> Callback level<br />
<i>2</i> User level<br />
<i>3</i> Operator level<br />
<i>4</i> Administrator level</p>
<pre># ipmitool channel setaccess 1 2 link=on ipmi=on callin=on privilege=4</pre>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/configuring-ipmi-tool-remote-management/">Configuring IPMI Tool for Remote Management</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/configuring-ipmi-tool-remote-management/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1041</post-id>	</item>
	</channel>
</rss>
