<?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>phpversion Archives - Mr Agus</title>
	<atom:link href="https://mragus.com/tag/phpversion/feed/" rel="self" type="application/rss+xml" />
	<link>https://mragus.com/tag/phpversion/</link>
	<description>Read, Learn and Share Ilmu yang Bermanfaat</description>
	<lastBuildDate>Sun, 27 Aug 2017 10:59:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>

<image>
	<url>https://mragus.com/wp-content/uploads/2017/07/Fav-icon-untuk-mragus.com_-150x150.png</url>
	<title>phpversion Archives - Mr Agus</title>
	<link>https://mragus.com/tag/phpversion/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Mengganti Versi PHP CLI di Ubuntu</title>
		<link>https://mragus.com/mengganti-versi-php-cli-di-ubuntu/</link>
					<comments>https://mragus.com/mengganti-versi-php-cli-di-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[Agus Wiji Suhariono]]></dc:creator>
		<pubDate>Sun, 13 Aug 2017 14:17:00 +0000</pubDate>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php-cli]]></category>
		<category><![CDATA[php7]]></category>
		<category><![CDATA[phpversion]]></category>
		<guid isPermaLink="false">https://mragus.com/?p=2857</guid>

					<description><![CDATA[<p>Mengganti Versi PHP CLI di Ubuntu. Assalamualaikum wr wb, pada kesempatan kali ini saya akan sharing tentang cara mengganti versi PHP CLI di Ubuntu dengan webserver Apache. Pada tutorial saya yang sebelumnya, saya pernah membahas tentang bagaimana cara menginstall php&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://mragus.com/mengganti-versi-php-cli-di-ubuntu/">Mengganti Versi PHP CLI di Ubuntu</a> appeared first on <a rel="nofollow" href="https://mragus.com">Mr Agus</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Mengganti Versi PHP CLI di Ubuntu. </strong>Assalamualaikum wr wb, pada kesempatan kali ini saya akan sharing tentang cara mengganti versi PHP CLI di Ubuntu dengan webserver Apache. Pada tutorial saya yang sebelumnya, saya pernah membahas tentang bagaimana <a href="https://mragus.com/install-php-7-0-dan-php-5-6-di-ubuntu/">cara menginstall php 5 dan php 7</a>. Dalam tutorial itu dijelaskan bagaimana cara mengganti versi php menggunakan <em>a2dismod </em>dan <em>a2enmod.</em><span id="more-2857"></span></p>
<p>Ketika kita mengecek versi php menggunakan phpinfo(), benar bahwa versi php sudah berubah sesuai dengan perintah yang kita masukkan pada command line. Tetapi pada waktu kita mengecek menggunakan perintah <em>php -v</em> pada terminal. Versi PHP masih menunjukkan versi current, atau tidak berubah.</p>
<div id="attachment_2861" style="width: 533px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-2861" decoding="async" class="wp-image-2861" src="https://mragus.com/wp-content/uploads/2017/08/aguswijisuhariono_157-1.png" alt="Mengganti Versi PHP CLI di Ubuntu" width="523" height="307" srcset="https://mragus.com/wp-content/uploads/2017/08/aguswijisuhariono_157-1.png 1354w, https://mragus.com/wp-content/uploads/2017/08/aguswijisuhariono_157-1-300x176.png 300w, https://mragus.com/wp-content/uploads/2017/08/aguswijisuhariono_157-1-768x451.png 768w, https://mragus.com/wp-content/uploads/2017/08/aguswijisuhariono_157-1-1024x601.png 1024w" sizes="(max-width: 523px) 100vw, 523px" /><p id="caption-attachment-2861" class="wp-caption-text">Perbandingan Versi PHP antara PHP CLI &amp; PHP apache module</p></div>
<p>Hal ini terjadi karena PHP yang berjalan pada layanan Apache berbeda dengan PHP yang terdapat command line (PHP CLI), sehingga untuk penyesuaian versi PHP CLI harus menggunakan perintah tambahan.</p>
<h2>Mengganti Versi PHP CLI di Ubuntu</h2>
<p>Kita dapat dengan mudah mengganti versi PHP CLI dengan perintah sebagai berikut.</p>
<h3>PHP 7.1 ke 5.6</h3>
<pre class="lang:default decode:true EnlighterJSRAW">sudo update-alternatives --set php /usr/bin/php5.6</pre>
<h4>PHP 5.6 ke 7.1</h4>
<pre class="lang:default decode:true EnlighterJSRAW">sudo update-alternatives --set php /usr/bin/php7.1</pre>
<p>Di bawah ini adalah contoh dimana saya mengganti versi  PHP dari PHP 5.6 ke PHP 7.1 . Setelah kita eksekusi script di atas, versi PHP antara PHP CLI dan PHP apache module sudah sama.</p>
<div id="attachment_2864" style="width: 532px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-2864" decoding="async" loading="lazy" class="wp-image-2864" src="https://mragus.com/wp-content/uploads/2017/08/aguswijisuhariono_158.png" alt="Mengganti Versi PHP CLI di Ubuntu" width="522" height="308" srcset="https://mragus.com/wp-content/uploads/2017/08/aguswijisuhariono_158.png 1358w, https://mragus.com/wp-content/uploads/2017/08/aguswijisuhariono_158-300x177.png 300w, https://mragus.com/wp-content/uploads/2017/08/aguswijisuhariono_158-768x452.png 768w, https://mragus.com/wp-content/uploads/2017/08/aguswijisuhariono_158-1024x603.png 1024w" sizes="(max-width: 522px) 100vw, 522px" /><p id="caption-attachment-2864" class="wp-caption-text">Mengganti Versi PHP CLI di Ubuntu</p></div>
<p>Cukup mudah bukan <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /> , selanjutnya anda bisa menyesuaikan dengan versi PHP mana yang ingin anda gunakan dan tidak ada lagi perbedaan antara PHP CLI dan PHP apache module. Semoga tulisan saya yang singkat ini dapat bermanfaat. Terimakasih.</p>
<p>The post <a rel="nofollow" href="https://mragus.com/mengganti-versi-php-cli-di-ubuntu/">Mengganti Versi PHP CLI di Ubuntu</a> appeared first on <a rel="nofollow" href="https://mragus.com">Mr Agus</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mragus.com/mengganti-versi-php-cli-di-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
