<?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/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>centos &#8211; PhalconHost Blog</title>
	<atom:link href="https://blog.phalconhost.com/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.phalconhost.com</link>
	<description>PhalconHost Blog</description>
	<lastBuildDate>Wed, 02 Nov 2022 06:41:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>การแก้ไขไฟล์ php.ini ใน CentOS 6.7</title>
		<link>https://blog.phalconhost.com/edit-php-ini-on-centos6/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 03 Nov 2016 14:53:06 +0000</pubDate>
				<category><![CDATA[Server, VPS]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[php.ini]]></category>
		<guid isPermaLink="false">http://blog.phalconhost.com/?p=424</guid>

					<description><![CDATA[<p>เมื่อต้องการแก้ไขไฟล์ php.ini ก่อนอื่นต้องรู้ว่าไฟล์ php.ini อยู่ที่ไหน โดยดูง่ายๆด้วยคำสั่ง php --ini ซึ่งจะแสดง path ของไฟล์ php.ini ที่ติดตั้งอยู่ใน VPS ดังรูปที่ 1 เมื่อเรารู้ว่าไฟล์ อยู่ทีไ่หนแล้ว ก็เปิดไฟล์ php.ini มาแก้ไข อาจจะใช้ vi command ก็ได้เช่น vi /usr/local/lib/php.ini เมื่อแก้ไขเรียบร้อยแล้ว ให้ restart apache เพื่อให้ค่าต่างๆที่แก้ไขเปลี่ยนแปลงโดยใช้คำสั่ง service httpd restart</p>
<p>The post <a rel="nofollow" href="https://blog.phalconhost.com/edit-php-ini-on-centos6/">การแก้ไขไฟล์ php.ini ใน CentOS 6.7</a> appeared first on <a rel="nofollow" href="https://blog.phalconhost.com">PhalconHost Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="1024" height="536" src="//i0.wp.com/blog.phalconhost.com/wp-content/uploads/2019/03/6.cover_-1024x536.png" alt="" class="wp-image-687" srcset="https://blog.phalconhost.com/wp-content/uploads/2019/03/6.cover_-1024x536.png 1024w, https://blog.phalconhost.com/wp-content/uploads/2019/03/6.cover_-300x157.png 300w, https://blog.phalconhost.com/wp-content/uploads/2019/03/6.cover_-768x402.png 768w, https://blog.phalconhost.com/wp-content/uploads/2019/03/6.cover_.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>เมื่อต้องการแก้ไขไฟล์ php.ini ก่อนอื่นต้องรู้ว่าไฟล์ php.ini อยู่ที่ไหน โดยดูง่ายๆด้วยคำสั่ง</p>



<pre class="wp-block-preformatted">php --ini
</pre>



<span id="more-424"></span>



<figure class="wp-block-image"><img decoding="async" src="https://support.phalconhost.com/downloads/km/server/show_php_ini.png" alt="แสดง path ของ php.ini"/></figure>



<p>ซึ่งจะแสดง path ของไฟล์ php.ini ที่ติดตั้งอยู่ใน VPS ดังรูปที่ 1<br></p>



<p>เมื่อเรารู้ว่าไฟล์ อยู่ทีไ่หนแล้ว ก็เปิดไฟล์ php.ini มาแก้ไข อาจจะใช้ vi command ก็ได้เช่น</p>



<pre class="wp-block-preformatted">vi /usr/local/lib/php.ini
</pre>



<p>เมื่อแก้ไขเรียบร้อยแล้ว ให้ restart apache เพื่อให้ค่าต่างๆที่แก้ไขเปลี่ยนแปลงโดยใช้คำสั่ง</p>



<pre class="wp-block-preformatted">service httpd restart
</pre>
<p>The post <a rel="nofollow" href="https://blog.phalconhost.com/edit-php-ini-on-centos6/">การแก้ไขไฟล์ php.ini ใน CentOS 6.7</a> appeared first on <a rel="nofollow" href="https://blog.phalconhost.com">PhalconHost Blog</a>.</p>
]]></content:encoded>
					
		
		
		
		<media:thumbnail url="https://blog.phalconhost.com/wp-content/uploads/2019/03/6.cover_-150x150.png" />
		<media:content url="https://blog.phalconhost.com/wp-content/uploads/2019/03/6.cover_.png" medium="image">
			<media:title type="html">6.cover</media:title>
			<media:thumbnail url="https://blog.phalconhost.com/wp-content/uploads/2019/03/6.cover_-150x150.png" />
		</media:content>
		<media:content url="https://blog.phalconhost.com/support.phalconhost.com/downloads/km/server/show_php_ini.png" medium="image">
			<media:title type="html">แสดง path ของ php.ini</media:title>
		</media:content>
	</item>
		<item>
		<title>การติดตั้ง NTP เพื่อ Sync เวลาบน Linux (Cent OS 6/7, Ubuntu)</title>
		<link>https://blog.phalconhost.com/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-ntp-%e0%b9%80%e0%b8%9e%e0%b8%b7%e0%b9%88%e0%b8%ad-sync-%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2%e0%b8%9a%e0%b8%99/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 03 Nov 2016 14:24:54 +0000</pubDate>
				<category><![CDATA[Server, VPS]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://blog.phalconhost.com/?p=420</guid>

					<description><![CDATA[<p>การติดตั้ง NTP เพื่อ Sync เวลาบน Linux เพื่อทำให้เวลาของเครื่องตรงมากที่สุด โดยสามารถติดตั้งง่ายๆ โดยใช้คำสั่งดังต่อไปนี้ CentOS 6 CentOS 7 Ubuntu เรียบร้อยครับ สามารถตรวจสอบว่า เวลาถูกต้องหรือไม่ โดยใช้คำสั่ง</p>
<p>The post <a rel="nofollow" href="https://blog.phalconhost.com/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-ntp-%e0%b9%80%e0%b8%9e%e0%b8%b7%e0%b9%88%e0%b8%ad-sync-%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2%e0%b8%9a%e0%b8%99/">การติดตั้ง NTP เพื่อ Sync เวลาบน Linux (Cent OS 6/7, Ubuntu)</a> appeared first on <a rel="nofollow" href="https://blog.phalconhost.com">PhalconHost Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>การติดตั้ง NTP เพื่อ Sync เวลาบน Linux เพื่อทำให้เวลาของเครื่องตรงมากที่สุด โดยสามารถติดตั้งง่ายๆ โดยใช้คำสั่งดังต่อไปนี้</p>



<span id="more-420"></span>



<h3 class="wp-block-heading">CentOS 6</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
yum install ntp ntpdate -y 
chkconfig ntpd on 
/etc/init.d/ntpd start 
mv /etc/localtime /etc/localtime.bak 
ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime 
hwclock --systohc  
</pre></div>


<h3 class="wp-block-heading">CentOS 7</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
yum -y install ntp
timedatectl set-timezone Asia/Bangkok
timedatectl
service ntpd restart
systemctl enable ntpd.service

</pre></div>


<h3 class="wp-block-heading">Ubuntu</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
apt-get install ntp
timedatectl set-timezone Asia/Bangkok
timedatectl
service ntpd restart
</pre></div>


<p>เรียบร้อยครับ สามารถตรวจสอบว่า เวลาถูกต้องหรือไม่ โดยใช้คำสั่ง</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
date
</pre></div><p>The post <a rel="nofollow" href="https://blog.phalconhost.com/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-ntp-%e0%b9%80%e0%b8%9e%e0%b8%b7%e0%b9%88%e0%b8%ad-sync-%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2%e0%b8%9a%e0%b8%99/">การติดตั้ง NTP เพื่อ Sync เวลาบน Linux (Cent OS 6/7, Ubuntu)</a> appeared first on <a rel="nofollow" href="https://blog.phalconhost.com">PhalconHost Blog</a>.</p>
]]></content:encoded>
					
		
		
		
	</item>
	</channel>
</rss>
